RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Small script that counts Dead Allies

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 75
What the...?
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.
« Last Edit: September 04, 2010, 06:15:24 PM by IXFURU »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Just do it with an event? Check each party member for whether or not they have the state "incapacitated", add 1 to the variable.

***
Rep:
Level 75
What the...?
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.