Basically it's as the title says I want to create ...., I can easily create a health potion that can be used in-battle but it gets more complex with an attack potion, xp potion or coin bonus as they should have a timer and I don't how to implement one correctly say I want it 10 secs (btw I have already created a simple inventory system so don't worry about that
here's a guide if you don't know how) try to keep it simple because I'm relatively new to twine and coding
Comments
And then the code for the multiplier (if the opponent's health was a variable named $opponent and you dealt ten damage):
So if someone presses the link to use the potion, it activates a multiplier, which increases the damage you deal to enemies. But in ten seconds, the multiplier goes back to one, so ten times one is still just ten. Tell me if you don't understand or anything.
If you want the contents of the associated hook to only occur a limited number of times then you need to use a (stop:) macro.
a. Occur only once: b. Occur a limited number of times (eg twice):
As greyelf said, you need to use the stop macro. Try this. I've changed the code a bit:
Nice one! Good luck, and from the betas I'm looking forward to this game! And good luck with the best game of 2016 thing too!
thx I'll try my best