YesNoOk
avatar

trigger issue with time content (solved) (Read 309 times)

Started by Zodiac Uchiha, September 22, 2010, 11:46:30 pm
Share this topic:
trigger issue with time content (solved)
#1  September 22, 2010, 11:46:30 pm
  • **
    • Germany
hello guys
this time my problem is connected with triggers. i want to code housenka no jutsu for sasuke. there is a start state, a maintain state and an end state. and of course the helpers.
in the maintain state, i have 3 helpers. thats the 3 flames building housenka no jutsu. and the trigger for those helpers are the following: trigger1 = animelemtime(1) >= 0 && animelemtime(3) <= 0
as it is now, the flames come out, but leave too much space between them and the next flammes. that means it takes too much time to create the next flame animation, which is the cause of the opponent getting more time to escape. that should not be the case. can anyone help ? i hope i described the problem clearly enough. if not, just ask.
my problem put into one question would be : what trigger do i use if i want the animation to trigger every 5 ticks during the maintain state ( for example) ?
Last Edit: September 23, 2010, 08:15:11 pm by Zodiac Uchiha
Re: trigger issue with time content
#2  September 23, 2010, 12:00:55 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Persistent is your friend here.

Trigger1 = animelemtime(3) >= 0
persistent = 5

Will trigger every 5 ticks from animelem 3.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: trigger issue with time content
#3  September 23, 2010, 01:37:02 am
  • **
    • Germany
oh man ...
i saw the word persistent in many state templates, but i never imagined it could be used under the triggers .
i couldnt test this until now, because i didnt save the character after coding the hyper move..... -.-
but i will write it again and then i will test the issue and report if it worked.
btw..if i write this:
trigger1 = animelem > 22 && stateno = 888
persistent = 5

...then it will trigger after animation element 22 and from then on every 5 ticks during state888.
is that correct ?

and again. thx for your help again cyanide
Last Edit: September 23, 2010, 01:40:30 am by Zodiac Uchiha
Re: trigger issue with time content
#4  September 23, 2010, 01:47:18 am
  • ****
  • HAHAHAHAHAHAHAHA
    • Chile
persistent = 5 mean the trigger will be valid 5 timesif nonzero, if you set persistent = 7 will be 7 times.

persistent = 1 (standard) mean always the trigger is valid (if truth) and persistent = 0 mean only one time the trigger is nonzero, no matter what trigger is. Also, If you want do it for every x ticks, you would use

time%x = 0

in your case

time%5 = 0

This means, when the time divided by 5 and the rest is 0 (all the numbers perfectly divided by 5, like 0, 5,10,15, 20...) the trigger will be true.
Re: trigger issue with time content
#5  September 23, 2010, 02:22:12 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
That's not how i've had persistent work ever. For example

[mcode][state makedust]
type = makedust
trigger1 = 1
pos = 0,-2
persistent = 2[/mcode]
For me that triggers every 2 ticks forever until i leave the state. Time%3 = 0 although OK won't necessarily START when he wants it to. The docs may talk about it as you've written it, but this is what happens when you use it.

You can't use it in state -1/-2/-3 mind you. Also, animelem > 22 is not a valid trigger. Animelemtime(22) > 0 is.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: trigger issue with time content
#6  September 23, 2010, 04:02:33 am
  • **
    • Germany
ok that were very interesting posts there. first of all, it works now =) so thank you both very much for solving another problem of mine
@ hero:
if i understood this trigger correctly, then
trigger1 = time % 10 = 1
would trigger at every tick divided by 10 with rest 1, which would mean
(11,21,31,41,51,61 etc)  correct ? but before 11, there has to be another one number. which one is it and why? because any number below 11 doesnt give rest 1.thats why i am asking. so i understood this trigger not to its fullest
and @ Cyanide:
thx for mentioning animelem > 22 is not a valid trigger.

 
Re: trigger issue with time content
#7  September 23, 2010, 04:55:28 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: trigger issue with time content (solved)
#8  September 23, 2010, 08:16:31 pm
  • **
    • Germany
ok that was a good explanation, too.
i understood. thx for all the help.
and the problem is solved and the thread can be considered closed.