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.
[RESOLVED] event question

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 88
In XP is it possible for an event to take place only once the char has lost a certain percentage of their health?
I think it might be done through variables, yet I am unsure of how to make this happen
any ideas?
« Last Edit: April 30, 2007, 12:04:59 PM by Zeriab »

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
yes.

Control varaibles = actor HP
Control varibles = Actor MAXhp

now lets say when 80% of the health is full.

Control varibles * 80 (multiply) (this is for MAx hp)
Control varibles /100 (divide) (this is also for max hp)

now condtional branch. Actor HP less then or equal to actor maxhp.

now when any where under 80% health you will get what is set up in the condtional branch
Watch out for: HaloOfTheSun

**
Rep:
Level 88
Thnx for that It helped a lot
BTW anyone know the percentage of when the char's health goes yellow in battle?

***
Rep:
Level 87
RMU Admin
It should be 50%

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
eh i'm not sure on that problem so sorry I won't have the answer.

but 50% might be correct I guess, half health.

anyways is your question Solved? Add [RESOLVED] to topic title
Watch out for: HaloOfTheSun

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
=x zeriab has spoken.
* Nouman points the event's he wrote....
zeriab taught me. =D
Watch out for: HaloOfTheSun

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
If you are unsure and not comfortable with looking in the scripts you can conclude this from the event I have attached.
Just change how many percent HP should be removed by changing the variable Percent.

**
Rep:
Level 88
Thanx for all your help guys
This is what I have
However to make it work in battle I have to have it in each of the troop selections
I was wondering if there was a way just to put it into the common events but still have it register during the battle sequence.

(Hopefully this should be the last in this topic  ;) )
« Last Edit: April 29, 2007, 12:22:25 PM by Arithon »

pokeball :)OfflineMale
********
Cheese
Rep:
Level 95
?
that would have to be ascript and I sorta see what your trying to do...take a look at this:

http://rmrk.net/index.php/topic,14548.0.html
Watch out for: HaloOfTheSun

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
You can copy what you have into a common event.
Then use the Call Common Event... - 1 page, left column, number 3 from bottom.
Select the common event you pasted it into.

You would still have to do it for each troop, but it is at least only 1 line.

I suggest that you the Condition to a switch instead of 99% or less hp.
That way you can turn the option on and off by changing a switch. You can also have the event happen with full actor HP in case you wanted it.

I know this is not what you asked for, but parallel common events do not run during battles.

**
Rep:
Level 88
No, that works great thanx

However I've noticed that the condition doesn't leave until the next turn though, like this:

Turn1: Hit, underHp for limit break to activate
(command) No limit break
Turn2: defend/attack, limit break condition initiates
(command) limit break option
Turn3: Heal, limit break cond cancelled but still registers
(command) limit break option still avilable
Turn4: limit break command = wasted turn, limit break cond vanishes

Is there a way to fix this without scripting?
I did try the moment option but that just paused the entire battle and no action could be taken.

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
I am afraid you will have to script your way out of that problem.
I know of no way to fix it eventing. Sorry

**
Rep:
Level 88
np
thnx for all your help