0 votes
by (2.7k points)
edited by
I want to make a real-time boss fight. This requires that the boss damages you repeatedly after X number of seconds. But how to do it? The <<timed>> macro works only once.

Clarification: the player and the boss must be able to "fire" multiple weapons. The player must click links to fire their weapons. The Health variable displayed in the sidebar must update as well.

2 Answers

+2 votes
by (68.6k points)
selected by
 
Best answer

You want the <<repeat>> macro—it's, literally, the next macro above <<timed>> in the docs.

–1 vote
by (690 points)
I can think of three ways to do this.

1.) Have the passage refresh each time the boss attacks by adding a link command that loops back on itself. (this goes in the hook.) This should make the fight code reset (without resetting health)

2.) Have the timer reset. I personally don't know how to reset the timer, but I'm sure it is possible.

3.) Have more than one <<timer>> macro. This one is not recommended, as you will end up with a lot of code filling up your passage, making it very distracting while you edit it.

 

I'm sure someone else can give you a better answer, but I figure I might as well try to help.
...