Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Very basic ai and wait value
#1
Finally I have a use for ai script within my coding abilites aand it doesn't work.

Code:
int ego(){
if (mode == 1 && self.hp < 50 && self.hp > 0 && self.frame == 230 || self.frame == 231){
  DJA();
}
return 0;
}

Basically hunter suppose to use DJA while lying and his hp is lower than 50, and make it happen only in stage mode. There is no any errors in console, yet he's transforming pretty much anytime you send him lying, also in vs mode.

And for second part of this thread, is there a way to make ai wait a bit before performing move? I can't split lying frame into two parts, because using next: in state 14 makes character start blinking, even if another frame also use state 14. So no simple dc solution.
Reply
Thanks given by:
#2
Code:
int ego(){
if (mode == 1 && self.hp < 50 && self.hp > 0 && (self.frame == 230 || self.frame == 231) ){
  DJA();
}
return 0;
}
try adding another set of brackets like this
back from the dead.....kinda
Reply
Thanks given by: The_Hari




Users browsing this thread: 2 Guest(s)