YesNoOk

Show content

This section allows you to browse the content for this member. Note that you can only see content for which you have sufficient viewing permissions.

******
Valodim is Offline
Contact Valodim:

Valodim

Administrator

Messages by Valodim

    

Re:Ai and Helpers...

 September 24, 2003, 01:58:15 pm View in topic context
 Posted by Valodim  in Re:Ai and Helpers...  (Started by Valodim September 23, 2003, 02:13:28 pm
 Board: Code Library

Yikes, I'd go blind seeing this bad coding. I'll ignore this I hope.

You DO realize Valodim that it is HUMANLY possible to trigger the AI. Not good. I didn't see this. I didn't see this. I sure HOPE I didn't see this.

*rolling on floor laughing and biting in carpet*
aaawwwww gohan, it's really funny seeing you trying to say things supposed to make you look like being a better coder than me (why do I have the feeling that this sentence is a bit messed up...?), but you always kick your own ass ^^

guess what ai-activation code Evil Ken, Evil Ryu, Mechgouki and RyuPlus use...? ;D

@KhMaIBQ and no, your method is not possible, but the one I posted already activates the ai when a direction key is pressed (by ai), even when ai.cheat is 0, what do you want more...?
    

Re:Ai and Helpers...

 September 23, 2003, 02:13:28 pm View in topic context
 Posted by Valodim  in Re:Ai and Helpers...  (Started by Valodim September 23, 2003, 02:13:28 pm
 Board: Code Library

use this ai-trigger, it triggers as soon as any direction key is pushed by the
ai (in other words, as soon as the fight begins):

into cmd:
Code:
[Command]
name = "AI"
command = /$U
time = 1
[Command]
name = "AI"
command = /$D
time = 1
[Command]
name = "AI"
command = /$F
time = 1
[Command]
name = "AI"
command = /$B
time = 1

this also takes less unique commands than the other method

into cns:
Code:
[Statedef 9999]
type = S
movetype= I
physics = N
ctrl = 0
anim = 9999
velset = 0,0
sprpriority = -5

[State 9999, ParentVarSet 1]
type = ParentVarSet
trigger1 = (parent, RoundState=2)&&(parent, Command="AI")&&(Var(58)=0)
v = 59
value = 1

[State 9999, ParentVarSet 2]
type = ParentVarSet
trigger1 = (parent, Var(59)) && (parent, RoundState = 2)&&(Command="AI")&&(parent, Command = "AI")
v = 59
value = 0

[State 9999, VarSet 1]
type = VarSet
trigger1 = Var(58)
v = 58
value = 0

[State 9999, VarSet 2]
type = VarSet
trigger1 = Var(58)&&(parent, RoundState=2)&&(parent, Command="AI")
v = 58
value = 1

[State 9999, destroy self]
type = DestroySelf
trigger1= !roundstate||!(parent,roundstate)
and, of course, put something like this into statedef -2:
Code:
[state -2,ai-switch]
type = Helper
trigger1 = NumHelper(9999)=0
helpertype = Normal
name = ""
id = 9999
pos = 999,999
postype = p1
facing = 0
stateno = 9999
keyctrl = 1
ownpal = 1
supermovetime = 0
pausemovetime = 0