Main Menu
  • Welcome to The RPG Maker Resource Kit.

Small script that counts Dead Allies

Started by IXFURU, September 04, 2010, 06:11:48 PM

0 Members and 1 Guest are viewing this topic.

IXFURU

Trying to make a revival station which charges x amount of Gold per Dead Party member.
Variable(members in current state) x Variable(dead members combined levels) or something like that.

Store that in an in-game variable.

modern algebra

Just do it with an event? Check each party member for whether or not they have the state "incapacitated", add 1 to the variable.

IXFURU

That would require a great many conditional branches, wouldn't it?
There's no set party members in the project, and there may be any number of actors in the party.  So, I'd have to make a conditional branch in order to check If actor is in party, and then a sub branch If actor has "dead" state for each one.  I started to do it that way.  But I feel like a script could store it as sort of a parallel process, which could add and subtract the number on its own.