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.
help condition

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 87
i need help with condition
i want to make it so when a cetain condition activates when hp goes 15% or below

*
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
Use variables.

Make one variable = current HP
another variable = maxHP

Then multiply current HP by 100 and divide that number by max HP

Then set the condition so that that variable is less than 15

So, like this:

Control Variables: [XXX: HP %] = [Actor]'s HP
Control Variables: [YYY: maxHP] = [Actor]'s maxHP
Control Variables: [XXX: HP %] * (100)
Control Variables: [XXX: HP %] / Variable [YYY: maxHP]
Conditional Branch: [XXX: HP %] <= 15
    <Whatever you want to happen
Branch END

***
Rep:
Level 87
im a noob so where do u go to do this

*
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
You place it in an event. Do you want your conditions to occur in battle, or outside battle is a question I should have asked first1. Also, by "where do u go to do this" do you mean in what type of event, or do you not know what an event is, or do you not know where to find variables and conditional branches?


1 I should have asked that first, because battle events have that condition as a default, and you set them up in the Troops Database. The solution I posted is for outside of battle
« Last Edit: May 06, 2007, 05:31:17 PM by modern algebra »

***
Rep:
Level 87
Let me give u the details
character:Magis....he's the only charcter i want this condition happing to
condition:rage(titleworking progress)......a b c d e sucseeabillity 100%
refects skills and cannot change eqiupment  and evades attack

condition always abates after 7 turns

doubble attack defence agility inteligence
recover per turn 20%+8 hp and mp
presist after battle

***
Rep:
Level 87
and im no t good at events
like i dnt no how to stop events
and im using rpg 2003
« Last Edit: May 06, 2007, 05:42:00 PM by ChaosSoldier92 »

*
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
I don't get it. So you want to inflict that state whenever your character is at less than 15% health?

I would advise against making such a state because it is totally imbalanced and makes him invincible, but whatever. You'd need to put that as an event in each battle event, and simply have it as condition: Actor: Magis less than 15% health and on Turn, then you'd just inflict that state.

***
Rep:
Level 87
less then ten%....im gonna change it but i need help
and i took of defelct and evade