ID:267826
 
Hi

How do you make turn based combat.

I am trying to make an NPC that fires back at you when you fire at him, but when you click the fire verb you can not press it again untill the NPC has fired back at you.


Thanks
Mousie
Mousie_kebabs wrote:
I am trying to make an NPC that fires back at you when you fire at him, but when you click the fire verb you can not press it again untill the NPC has fired back at you.

After you have fired at an NPC, remove the 'fire' verb from the attacker. You should also set a variable to know what mob you attacked, so that you can regain the verb after that mob has counterattacked. Once the enemy has done so, then add the 'fire' verb to the original attacker once more.