YesNoOk
avatar

[Help] removeexplod isn't working + doubt (Read 7381 times)

Started by ijkorn, October 16, 2017, 06:08:15 am
Share this topic:
[Help] removeexplod isn't working + doubt
#1  October 16, 2017, 06:08:15 am
  • avatar
  • *
    • Argentina
Hey! Sorry for annoying you but I need help with something for any reason removeexplod isnt working with anim or command trigger it just works with  time trigger here is the code

Code:
[Statedef 3101];p2
type    = S
movetype= H
physics = N
juggle  = 1
velset = 0,0
anim = 888
sprpriority = 2
ctrl = 0
facep2 = 1

[State 430, 31]
type = playsnd
trigger1 = time = 3
value = 3,0 + 2*(random%2)
channel = 3

[State 0, Explod]
type = Explod
trigger1 = time = 0
anim = 5812
scale = const(size.xscale), const(size.yscale)
removetime = -1
sprpriority = 2


[State 0, Explod]
type = Explod
trigger1 = time = 10
anim = 43051
scale = const(size.xscale), const(size.yscale)
pos = 0,-140
bindtime = 1
vel = 0,0
accel = 0,0.4
removetime = -1
sprpriority = 2

[State 0, RemoveExplod]
type = RemoveExplod
trigger1 = command = "b"


[State 430, 31]
type = playsnd
trigger1 = time%19 = 0 && time < 100
value = f5,152
volumescale = 90

And another thing how do I make the last trigger happen to the enemy (2 player) since when I use it my own player dead instead of the enemy

Code:
[State 430, 32]
type = changeanim
trigger1 = anim = 3101 & command = "b"
value = anim
elem = animelemno(0)

[State 430, 32]
type = changeanim
trigger1 = anim = 3101 & command = "b"
value = 7782

[State 867033, 3] ;this is what I want to happen againts the 2 player (enemy)
type = lifeadd
trigger1 = anim = 7782
value = -9999

Thanks in advance!

Last Edit: October 16, 2017, 06:55:58 am by ijkorn
Re: [Help] removeexplod isn't working + doubt
#2  October 17, 2017, 12:48:58 am
  • ******
  • Hedgehog Whisperer
  • Red Bull addict
    • Spain
    • xgargoyle.mgbr.net
You need to assign an ID to the both the explod and removeexplod controllers
XGargoyle: Battle posing since 1979
http://xgargoyle.mgbr.net
http://www.pandorabots.com/pandora/talk?botid=e71c0d43fe35093a  <-- Please click that link
http://paypal.me/XGargoyle  <-- Donations welcome!
Re: [Help] removeexplod isn't working + doubt
#3  October 17, 2017, 01:45:36 am
  • avatar
  • *
    • Argentina
Already did it but nothing happens it works with trigger time but it doesnt with command or anim trigger
Re: [Help] removeexplod isn't working + doubt
#4  October 17, 2017, 10:17:15 am
  • *
Is this a custom state for p2 or is it a state for p1 ? What does this state do exactly ??? So that I can help you

If this is a custom hit state for p2 ofc its not gonna work cause it has to be p2 who presses "b".
Re: [Help] removeexplod isn't working + doubt
#5  October 17, 2017, 10:21:44 am
  • *****
  • Estoy siempre listo para un desafĂ­o.
    • Puerto Rico
    • im41784@yahoo.com
Is this a helper, hitstate? What is it? And yup you need to add ids to explod and removeexplod so it knows what explod to remove. Post the whole code.
Re: [Help] removeexplod isn't working + doubt
#6  October 18, 2017, 01:31:16 am
  • avatar
  • *
    • Argentina
Here is the code what basically I wanna do is a fatality like mortal kombat armaggedon when you press X it hits the 2nd player and remove a part of his body (with some explods) and when you press B the player has to hit him again and remove the last part of his body but this part is what I cant do.

Code:
;p1 command x

[Statedef 3100]
type    = S
movetype= A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0

[State 430, 31]
type = changeanim
trigger1 = command = "x" ;Time < 30
value = anim
elem = animelemno(0)

[State 430, 31]
type = changeanim
trigger1 = command = "x" ;Time = 30
value = 3100

[State 9130, SetFatal]
type = Varset
trigger1 = 1
V = 4
value = 1

[State 3010, 1]
type = HitDef
trigger1 = !movecontact
attr = S, HA
hitflag = MAF
priority = 7
sparkno = -1
hitsound = 5,21
p2stateno = 3101
p2facing = 1
envshake.ampl = 8
envshake.time = 50
envshake.freq = 70

[State 430, 31]
type = playsnd
trigger1 = movecontact
value = 30, 5
volumescale = 200
persistent = 0

[State 3000, 2]
type = targetbind
trigger1 = movecontact
pos = 100,0
time = 3
persistent = 0

[State 3000, 2]
type = Helper
trigger1 = movecontact = 2
pos = 0,-90
postype = P2
stateno = 7440
persistent = 0

[State 3000, 2]
type = Helper
trigger1 = movecontact = 2
pos = 0,-80
postype = P2
stateno = 7450
persistent = 0

[State 430, 31]
type = changeanim
trigger1 = movecontact = 150
value = 3101

[State 3000, 3]
type = selfState
trigger1 = anim = 3101 && AnimTime = 0
value = 0
ctrl = 1

;*************************
;p1 command b

[State 430, 31]
type = changeanim
trigger1 = command = "b" ;Time < 30
value = anim
elem = animelemno(0)

[State 430, 31]
type = changeanim
trigger1 = command = "b" ;Time = 30
value = 7782

[State 9130, SetFatal]
type = Varset
trigger1 = 1
V = 4
value = 1

[State 3010, 2]
type = HitDef
trigger1 = !movecontact
attr = S, HA
hitflag = MAF
priority = 7
sparkno = -1
hitsound = 5,21
p2stateno = 3102
p2facing = 1
envshake.ampl = 8
envshake.time = 50
envshake.freq = 70

[State 430, 31]
type = playsnd
trigger1 = movecontact
value = 30, 5
volumescale = 200
persistent = 0

[State 3000, 2]
type = targetbind
trigger1 = movecontact
pos = 100,0
time = 3
persistent = 0

[State 3000, 2]
type = Helper
trigger1 = movecontact = 2
pos = 0,-90
postype = P2
stateno = 7440
persistent = 0

[State 3000, 2]
type = Helper
trigger1 = movecontact = 2
pos = 0,-80
postype = P2
stateno = 7450
persistent = 0

[State 430, 31]
type = changeanim
trigger1 = movecontact = 150
value = 7783

[State 3000, 3]
type = selfState
trigger1 = anim = 7783 && AnimTime = 0
value = 0
ctrl = 1

;*************************
;p2 command x

[Statedef 3101];p2
type    = S
movetype= H
physics = N
juggle  = 1
velset = 0,0
anim = 888
sprpriority = 2
ctrl = 0
facep2 = 1

[State 430, 31]
type = playsnd
trigger1 = time = 3
value = 3,0 + 2*(random%2)
channel = 3

[State 0, Explod]
type = Explod
trigger1 = time = 0
id = 640
anim = 5812
scale = const(size.xscale), const(size.yscale)
removetime = -1
sprpriority = 2


[State 0, Explod]
type = Explod
trigger1 = time = 10
anim = 43051
scale = const(size.xscale), const(size.yscale)
pos = 0,-140
bindtime = 1
vel = 0,0
accel = 0,0.4
removetime = -1
sprpriority = 2


[State 430, 31]
type = playsnd
trigger1 = time%19 = 0 && time < 100
value = f5,152
volumescale = 90

;********************************************************
;p2 command b

[State 3102]
type = RemoveExplod
trigger1 = time = 1
id = 640