YesNoOk
avatar

slow down lifeadd (Read 289 times)

Started by Continuity, September 09, 2009, 07:36:48 pm
Share this topic:
slow down lifeadd
#1  September 09, 2009, 07:36:48 pm
  • ***
  • 我が名は 「ハクメン」、押して参る!
as far as I know, the minimum value you can set in a lifeadd is 1, so that's pretty much 1 hp per tick, which is a bit too fast for my character, I'm thinking about setting up a variable timer that goes twice as fast, but the lifeadd will only trigger when the variable is an even number or something like that, so the lifeadd will add as much health eventually, but goes at only half the original speed. I can't find the proper expression for my idea so I wonder if anyone can help, or if there's an alternative to slow down lifeadd, that's fine as well. thank you
Re: slow down lifeadd
#2  September 09, 2009, 07:37:58 pm
  • ******
type = lifeadd
trigger1 = !time%2 (or %3 for every 3 ticks or %4 etc.)
value = 1
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: slow down lifeadd
#3  September 09, 2009, 09:51:17 pm
  • ***
  • 我が名は 「ハクメン」、押して参る!
I tried adding that trigger into the state controller and the lifeadd stopped working all together, I'm using a varadd as a timer to limit how long the lifeadd is activated, here's my code

[mcode][state -2,timer] ;here the timer starts
type=varadd
trigger1=var(1)=1
v=4
value=-1

[state -2,clear] ;the timer is switched off when the time is reached
type=varset
trigger1=var(4)=0
var(1)=0

[state -2,focus heal] ;when the timer is on
type=lifeadd
trigger1=var(1)=1
trigger1=var(4)>=0
value=1
ignorehitpause=0 [/mcode]

I can't seem to get it work, I also tried adding trigger1=!var(4)%2, but that stops lifeadd from working as well
Re: slow down lifeadd
#4  September 09, 2009, 10:00:37 pm
  • ******
Do you ever give a non-zero value to var(4) ?

Set var(1) to 1 to ---- why do you even need var(1) in addition to var(4) ? You just need to know if var(4) is > 0 or = 0. if it's 0, the time is off. If it's not, it's on.

So I was saying.
When you activate your move, set var(4) to 600 or however many ticks you want it to last.
Constantly add -1 to var(4) as long as it's > 0.
Put a lifeadd with trigger1 = var(4) && !(time%2).
When var(4) reaches 0, everything turns off by itsellf. Just turn off the rest of whatever your timer involves when it's on and var(4) = 0.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Last Edit: September 09, 2009, 10:09:21 pm by Byakko
Re: slow down lifeadd
#5  September 09, 2009, 10:32:04 pm
  • ***
  • 我が名は 「ハクメン」、押して参る!
thanks for clearing that out, it kinda works now, I'll look into it more