hyper break

Started by BC, August 31, 2008, 05:17:55 PM

Previous topic - Next topic

BC

is it possible for p2(when in a superpause)-(superpause set time to 40) to escape the move using a command that i set?

so say p2 has been grabbed in a S,HT i want to make it possible for p2 enter a command in a short space of time during the superpause(command for eg:  D,F,B,F,B,a+b+c) and if successful, p2 jumps out of it...ending the hyper throw.


is that possible?


reason i want this, is because im making my hyper throw very strong, like 600 damage(not confirmed), but it has a disadvantage which allows p2 to escape it using a special command.
Accepting commissions

Fallen_angel

you could send the enemy to a custom state instead of pausing him (for the anim to stay the same use a change anim..value = anim)   ...and in the custom state use a changestate when the enemy has used that command....maybe you should need to use vars to kep track of the buttons the enemy has used

BC

yea i been putting p2 in custom states, instead of pausing him, allows you to work with p2 a little better.

trigger1 = command = "hyper break"
v = 10
value = 1


so for eg, say i set var(10) to equal 1 if the command press has been successfull, would the changestate trigger be


trigger1 = target, var(10)=1

or

trigger1 = emeny, var(10)=1


or am i way off lol?
Accepting commissions

Fallen_angel

To be honest I dont think that you put command="name"...because if the enemy doesnt have that command he will not be able  to use snap out.....what I think is that in the enemy state, use a var, that checks when the enemy press each button, to limit the order you could use a triggerall that use the value of the var....for example var(10)=1 ...trigger1= command ="d"..so th next button should be......var(10)=2....triggerall =var(10)=1....trigger1 = command ="f"........and in your char you can use as a changestate ...time >=xxx && enemy, stateno !=xxx................to resume it....in the enemy you should check each button he uses, and he change when it is succesful....and in your char, you only check if the enemy is on that state

BC

ok cool thanks for the info.
Accepting commissions

Bastard Mami

unless you standarize the commands, the actual command bit is tricky, also, never ever overwrite his vars, that's the most riskful part of your code.