H
Hazedge
Guest
Hey guys!
I was trying to program one specific AI and got stuck in something thats not working (or I'm doing it the wrong way).
Code: [Select]
My intention is to remove the status BLIND when the varDD gets to 5 or more and make the enemy use BERSERK when self.varDE gets to 3, but the program don't recognize the minus in self.status - BLIND.
Is there a right way to make it work?
I can't make variables do the same thing too, all I could do is put then to = 0 instead of - value.
EDIT:
Taking advantage of this post, what code should I use to change one enemy's resistence?
In this case I want to make him immune to BLIND when BERSERK is used.
I was trying to program one specific AI and got stuck in something thats not working (or I'm doing it the wrong way).
Code: [Select]
Code:
if (self.status == BLIND) { self.varDD += 1 if (self.varDD >= 5) { self.status - BLIND self.varDE += 1 }}
Is there a right way to make it work?
I can't make variables do the same thing too, all I could do is put then to = 0 instead of - value.
EDIT:
Taking advantage of this post, what code should I use to change one enemy's resistence?
In this case I want to make him immune to BLIND when BERSERK is used.
Last edited: