YesNoOk
avatar

intermittent (Read 347 times)

Started by sergeus, January 03, 2010, 01:28:03 pm
Share this topic:
intermittent
#1  January 03, 2010, 01:28:03 pm
  • **
    • Spain
    • sergeusmugen.blogspot.com/
Hi, masters!

Maybe this could be a stupid question, but i was looking for it in this topic and i found nothing about it...  :-[

Well, i want to add a palfx to my char, but i want to make it intermittently.
example:
[State -2, lifepal]
type = PalFx
trigger1 = LIFE < 201
trigger1 = LIFE > 0
time = 40
add = 110,0,0

I even thought to use an intermittent variable to do this... but i don´t know how to create it

Waiting for your ideas... Thanks in advise and, by the way, happy new year  ;)
Last Edit: January 03, 2010, 10:00:26 pm by sergeus
Re: intermittent
#2  January 03, 2010, 09:40:02 pm
  • ******
    • www.mugenguild.com/pots/
trigger1 = (GameTime % 2) = 0; rest of game time divided by two is zero, meaning it triggers every 2 ticks

trigger1 = (GameTime % 3) = 0; every 3 ticks

etc

expressions doc said:
%

The remainder or mod operator. If x and y are both ints, x%y returns an int representing the remainder after performing a division x/y. For instance, 7%2 = 1, and 23 % 17 = 6. It is an error to use the % operator on float values, or to compute x%0. The result of such operations will be discussed in the section on SC values.
Use anything you want from my works.  If you need to contact me use email, not private messages.
Re: intermittent
#3  January 03, 2010, 10:02:38 pm
  • **
    • Spain
    • sergeusmugen.blogspot.com/
Great!
Thanks PotS, you´re a geat master  ;)
Now It works exactly how i want