Meaning of certain code

Started by Diek Stiekem, October 16, 2021, 03:28:49 PM

Previous topic - Next topic

Diek Stiekem

Can someone please tell me what is the meaning of the bold part?
Currently it is a helper that drags in the opponent, but it does not destroy itself when done.
The opponent still gets pulled towards p1 randomly afterwards.

Quote
;Bringer Helper
[StateDef 3001]
type = S
physics = N
moveType = A
velSet = 0,0
anim = 3003

[State 0, PlayerPush]
type = PlayerPush
trigger1 = 1
value = 0

[State 200, Hit]
type = HitDef
trigger1 = 1
attr = C,NA
damage = 0,0
guardflag = L
hitflag = MF
getpower = 0,0
givepower = 0,0
priority = 1, Hit
pausetime = 0, 0
guard.pausetime = 0, 0
sparkNo = -1
guard.sparkNo = -1
hitsound = -1
guardsound = -1
animType = Light
air.animType = Back
fall.animType = Back
ground.type = High
air.type = Low
ground.slidetime = 48
ground.hittime  = 48
guard.hittime = 48
ground.velocity = 3
guard.velocity = -1
numhits = 0

[State 0, DestroySelf]
type = DestroySelf
trigger1 = root, Var(49) = 1
"Such Heroic Nonsense!"


Dawn de Era

Impossible to know unless there's more context given for the variable.

MaligeX

Quote from: Diek Stiekem on October 16, 2021, 03:28:49 PM
Can someone please tell me what is the meaning of the trigger part?
Currently it is a helper that drags in the opponent, but it does not destroy itself when done.
[State 0, DestroySelf]
type = DestroySelf
trigger1 = root, Var(49) = 1


that roughly means that the helper self-destructs when the root player who cast it (the parent character who summoned it) has its variable 49 with a value of 1.
If you modify the trigger, many things can happen depending on the behavior of the characters with respect to that helper.
You can try a simple: trigger1 = 1 It means that it will self-destruct only when it does its job without any other given condition, like time, distance or any thing that variable was made for.
There is no knowledge that is not power
--------------------------------------
My Web Site

Diek Stiekem

Quote from: MangeX on October 16, 2021, 07:19:47 PM
Quote from: Diek Stiekem on October 16, 2021, 03:28:49 PM
Can someone please tell me what is the meaning of the trigger part?
Currently it is a helper that drags in the opponent, but it does not destroy itself when done.
[State 0, DestroySelf]
type = DestroySelf
trigger1 = root, Var(49) = 1


that roughly means that the helper self-destructs when the root player who cast it (the parent character who summoned it) has its variable 49 with a value of 1.
If you modify the trigger, many things can happen depending on the behavior of the characters with respect to that helper.
You can try a simple: trigger1 = 1 It means that it will self-destruct only when it does its job without any other given condition, like time, distance or any thing that variable was made for.

Thanks!
"Such Heroic Nonsense!"