So I'm currently building a stealth game and I'm creating some sort of abilities to use on the map to sneak around. I have things like a short range teleport, an invisibility and so on.
However I'm struggling with two points at the moment :
- I set a limited number of use per map using this method :
Each time the ability is used : "control variable : #000XX ability count +=1" and I then a second event page with a condition "if Variable XX > 4(number of use) then read the text : You can't use ABILITY anymore.
--> Right now it is working, however I would like to implement some for of HUD in which I can see the amount of uses remaining. The way I see it is to just display the content of the variable, but I would need to have my variable decrease instead of increase. So it would look like 4>3>2>1>0 (can't use anymore). How could I set up my variable to work in that way ?
- My second issue is that I want the invisibility ability to last for a set number of step. Like player uses Invisibility, walks 4 steps and then he is reavealed. I'm struggling to create a step counter. From what I read the best way is to record the old step value in a variable then the current step value in a new one and substract, but I'm really struggling to do this, can anyone show me how ? Or if there is a better way / plugin that would allow that ?
Or if anyone know if there is such plugin as an ability manager (different from skills from combat) ?
Thanks in advance 🙂
However I'm struggling with two points at the moment :
- I set a limited number of use per map using this method :
Each time the ability is used : "control variable : #000XX ability count +=1" and I then a second event page with a condition "if Variable XX > 4(number of use) then read the text : You can't use ABILITY anymore.
--> Right now it is working, however I would like to implement some for of HUD in which I can see the amount of uses remaining. The way I see it is to just display the content of the variable, but I would need to have my variable decrease instead of increase. So it would look like 4>3>2>1>0 (can't use anymore). How could I set up my variable to work in that way ?
- My second issue is that I want the invisibility ability to last for a set number of step. Like player uses Invisibility, walks 4 steps and then he is reavealed. I'm struggling to create a step counter. From what I read the best way is to record the old step value in a variable then the current step value in a new one and substract, but I'm really struggling to do this, can anyone show me how ? Or if there is a better way / plugin that would allow that ?
Or if anyone know if there is such plugin as an ability manager (different from skills from combat) ?
Thanks in advance 🙂