YesNoOk
avatar

n00b question - What does !Time mean? (Read 788 times)

Started by Jecht Marchrius, February 23, 2019, 02:40:14 am
Share this topic:
n00b question - What does !Time mean?
#1  February 23, 2019, 02:40:14 am
  • avatar
  • *
    • Philippines
Some examples would help, thanks!

ink

Re: n00b question - What does !Time mean?
#2  February 23, 2019, 03:33:12 am
  • ****
  • inktrebuchet
    • USA
    • s236.photobucket.com/albums/ff271/inktrebuchet/?
Re: n00b question - What does !Time mean?
#3  February 23, 2019, 08:09:26 am
  • avatar
  • *
    • Philippines
Thanks ink! I have another noob question but it's off-topic. There are times when I see other coders use the Anim trigger without putting any values whatsoever afterwards (ex. "trigger1 = anim" or "value = anim"), and I don't know what it actually means
Re: n00b question - What does !Time mean?
#4  February 23, 2019, 08:42:31 am
  • ***
  • preni ĝin kiel estas
    • USA
    • doubletrend-zeta.neocities.org/
Do you have an example?

Generally anim has a value afterward to define a different animation than the current state, otherwise it returns the current anim
For example here's a selection from the 212 state of (9)'s Sion:
Code:
;---------------------------------------------------------------------------
;E5B
[Statedef 212]
Type    = S
MoveType= A
Physics = S
Juggle  = 0
Ctrl = 0
Anim = 212
SprPriority = 2
Facep2 = 1

[State -1]
Type = ChangeAnim
TriggerAll = Var(59) <= 0
Trigger1 = Anim = 212
Trigger1 = Var(55) = 1
Trigger1 = Time = [4,14]
Value = 213

[State -1]
Type = ChangeState
TriggerAll = Var(59) <= 0
Trigger1 = Var(55) = 0
Trigger1 = Time = 14
Value = 213

[State -1]
Type = PosAdd
Trigger1 = Anim = 213
Trigger1 = AnimElem = 1
X = 10
If the PosAdd was Anim without definition then it should refer to 212.

im buggin out man
Buriki OneMONSTER

ink

Re: n00b question - What does !Time mean?
#5  February 23, 2019, 02:02:37 pm
  • ****
  • inktrebuchet
    • USA
    • s236.photobucket.com/albums/ff271/inktrebuchet/?
So the way I think of it, if a condition of a trigger is true it will return 1 if not it will return 0.

For example
Trigger1 = 0 will not trigger at all, trigger1 = 1 will always trigger.

I say this because all triggers work this way.
Code:
Trigger1 = anim ; if anim = 0, this will not trigger 
Code:
Trigger1 = time ; if time = 0 this will not trigger. But will trigger 1 tick later.


You’ll see ones like this too:
Code:
Trigger1 = !time ; which means time does NOT = 1 or is the same as time = 0. I prefer to write my code the long way for clearity.

!Time, Time = 0, Time < 1 are all the pretty much the same.


Value = Anim ; means the value of the current animation(at the time of trigger) will be what’s used for the value. I would say this is not a common one to see.
Re: n00b question - What does !Time mean?
#6  March 01, 2019, 09:34:33 am
  • avatar
  • *
    • Philippines
Thanks for clearing it up for me Bannana and ink!
Re: n00b question - What does !Time mean?
#7  March 03, 2019, 08:34:55 pm
  • *****
  • Shame on you!
    • USA
vVv Wheat Stage Released vVv
Re: n00b question - What does !Time mean?
#8  March 15, 2019, 04:13:08 am
  • avatar
  • *
    • Philippines