05-07-2014, 03:30 PM
I didn't realize how easy it was to do AI scripting. You just add a file and then do C programming? Damn if I knew it was that simple (compared to like hex shiiiii~) I would have done it earlier lol
Anyways I have a problem. As you guys may know my DBZ characters can recharge their mana by using DJA A A A A...
I tried to implement this in scripting when they have low MP they wil charge if enemies aren't around.
Whatever the MP number I use, they will only charge up to that value. So if they have less than 250 mp they will only charge till they hit 250.
I tried this and it didn't work either if I recall.
So, are there loops available to use like while loop? Or are the only conditions available if statements?
Thanks!
Basically I want them to recharge their ki (mana) when enemies are far away and their mp is low and they stop when they hit 500 or an enemy draws near.
ALSO! The AI charge like 3x faster than humans, they press that attack button really fast!!!!!!!!!!!!!!!!!!!!!
Anyways I have a problem. As you guys may know my DBZ characters can recharge their mana by using DJA A A A A...
I tried to implement this in scripting when they have low MP they wil charge if enemies aren't around.
Code:
int ego(){
if (((target.x-self.x) >= 300) && self.mp < 50) {
DJA();
A(1,0);
}
}
Whatever the MP number I use, they will only charge up to that value. So if they have less than 250 mp they will only charge till they hit 250.
Code:
int ego(){
if (((target.x-self.x) >= 300) && self.mp < 50) {
DJA();
if (self.mp < 500) {
A(1,0);
}
else {
A(0,0);
}
}
I tried this and it didn't work either if I recall.
So, are there loops available to use like while loop? Or are the only conditions available if statements?
Thanks!
Basically I want them to recharge their ki (mana) when enemies are far away and their mp is low and they stop when they hit 500 or an enemy draws near.
ALSO! The AI charge like 3x faster than humans, they press that attack button really fast!!!!!!!!!!!!!!!!!!!!!
DBZ LF2 website
DBZ LF2 v0.4.3 - Namek Goku Update Trailer - September 25, 2024
DBZ LF2 mod v0.4.3 (September 28, 2024): Download
DBZ LF2 v0.4.3 - Namek Goku Update Trailer - September 25, 2024
DBZ LF2 mod v0.4.3 (September 28, 2024): Download