YesNoOk
avatar

Button of Command is not working (Read 180 times)

Started by Jadeeye, December 30, 2012, 12:32:56 pm
Share this topic:
Button of Command is not working
#1  December 30, 2012, 12:32:56 pm
  • **
  • KATO KATO KATO KATO KATOOOOOOOOO......!!!!
Hi guys,

I have a problem with button setting on cvsAprile (by 2).
I added a new special for her. Here is a codes:

.cns:
[Statedef 1111]
type   = S
movetype= A
physics = S
juggle  = 0
poweradd= 0
ctrl = 0
velset = 0,0
anim = 1111
sprpriority = 2

[State 1111, Damage]
type = LifeAdd
trigger1 = AnimElem = 9
Persistent = 0
value = 100

[State 1111, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

.air:
[Begin Action 1111]
Clsn2Default: 2
Clsn2[0] = -30,  2, 41,-40
Clsn2[1] = -16,  2, 36,-89
830,0, 0,0, 4
830,1, 0,0, 4
850,0, 0,0, 4
850,1, 0,0, 4
850,2, 0,0, 4
850,2, 0,0, 13
850,2, 0,0, 8
850,2, 0,0, 14
850,2, 0,0, 1
850,2, 0,0, 2
850,2, 0,0, 4
850,2, 0,0, 2
850,2, 0,0, 2
850,2, 0,0, 13

.cmd:
[Command]
name = "heal"
command = ~D, D, x
time = 12

[State -1]
type = ChangeState
value = 1111
triggerall = var(59) = 0
triggerall = roundstate = 2
triggerall = command = "heal"
triggerall = statetype != A
trigger1 = ctrl

-------------------------------------------------------------
I'm sure these code above is correct. Because I put them in another char and they work but didn't work for a char I need to added.
A trouble in command = "heal". When I remove it, a character do a special skill (auto), it proof this skill is correct. But if I put any command, it can't be controlled.
Re: Button of Command is not working
#2  December 30, 2012, 12:41:43 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
Changestates triggered by more difficult commands need to be placed above changestates triggered by less difficult commands.

Code:
type = changestate
trigger1 = command = "down+A"
goes above
Code:
type = changestate
trigger1 = command = "A"
in the statedef -1 or wherever your commands are.

Re: Button of Command is not working
#3  December 30, 2012, 03:12:13 pm
  • **
  • KATO KATO KATO KATO KATOOOOOOOOO......!!!!
Thanks Rajaa, I have solved it.
There is a priority in state and I put this heal's [state -1] on lowest bottom that cause problem. Just put this [state -1] on top.