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

Started by Jecht Marchrius, February 23, 2019, 02:40:14 am

#### Jecht Marchrius

##### n00b question - What does !Time mean?
#1  February 23, 2019, 02:40:14 am
Some examples would help, thanks!

#### ink

##### Re: n00b question - What does !Time mean?
#2  February 23, 2019, 03:33:12 am
• inktrebuchet

• Online

#### Jecht Marchrius

##### Re: n00b question - What does !Time mean?
#3  February 23, 2019, 08:09:26 am
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

#### Bannana

##### Re: n00b question - What does !Time mean?
#4  February 23, 2019, 08:42:31 am
• preni ĝin kiel estas
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    = SMoveType= APhysics = SJuggle  = 0Ctrl = 0Anim = 212SprPriority = 2Facep2 = 1[State -1]Type = ChangeAnimTriggerAll = Var(59) <= 0Trigger1 = Anim = 212Trigger1 = Var(55) = 1Trigger1 = Time = [4,14]Value = 213[State -1]Type = ChangeStateTriggerAll = Var(59) <= 0Trigger1 = Var(55) = 0Trigger1 = Time = 14Value = 213[State -1]Type = PosAddTrigger1 = Anim = 213Trigger1 = AnimElem = 1X = 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

• Online
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.

#### Jecht Marchrius

##### Re: n00b question - What does !Time mean?
#6  March 01, 2019, 09:34:33 am
Thanks for clearing it up for me Bannana and ink!

#### Odb718

##### Re: n00b question - What does !Time mean?
#7  March 03, 2019, 08:34:55 pm
• Shame on you!
vVv Wheat Stage Released vVv

#### Jecht Marchrius

##### Re: n00b question - What does !Time mean?
#8  March 15, 2019, 04:13:08 am