YesNoOk
avatar

Meaning of certain code (Read 3205 times)

Started by Diek Stiekem, October 16, 2021, 03:28:49 pm
Share this topic:
Meaning of certain code
#1  October 16, 2021, 03:28:49 pm
  • ***
    • Netherlands
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!"

Re: Meaning of certain code
#2  October 16, 2021, 04:24:30 pm
  • ***
  • Come On You Know LGx
  • biblical (yea)
    • USA
    • Skype - eddsworldtrash
    • remixsparta.wix.com/mugensdawn
Impossible to know unless there's more context given for the variable.
Re: Meaning of certain code
#3  October 16, 2021, 07:19:47 pm
  • avatar
  • ***
  • If you rip sprites i´ll rip your code
    • Mexico
    • www.m3xweb.260mb.com
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.
Code:
[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:
Code:
 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
Re: Meaning of certain code
#4  October 17, 2021, 06:55:01 pm
  • ***
    • Netherlands
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.
Code:
[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:
Code:
 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!"