Creating a 'counter'

Flare

Stops copies me!
Reaction score
662
im making a spell which buffs the casting unit, but if cast too much, itll have some side effects. i wanna create a counter in top-right corner which shows the current amount of casts, and then the total number of casts required for the debuffs to take effect. do i just use a multiboard and set first row to current casts or w/e and set 2nd row to no. of casts before debuff?
 

Sim

Forum Administrator
Staff member
Reaction score
534
Using a multiboard here would be optimal since you need more than 1 row.
 

The Big S

New Member
Reaction score
6
Yep.

Just create a multi-board, like you said, with 2 rows and one column.

To make the counter, make a new trigger:

Code:
Events
- A unit starts the effect of an ability

Conditions
- Ability being cast equal to YOUR ABILITY

Actions
- Set Counter = Counter + 1
- Multiboard - Set the text for (YOUR BOARD) item in column 1, row 1 to (String(Counter))

Just need a global variable called Counter, initially at zero.

This will update it every time the spell is successfully cast.
 

Funky_Luffe

New Member
Reaction score
3
I am making something similar, but I am doing it with the "normal" trigger editor, and cant write free text like that.
All i can do is
Actions:
-set counter = counter

I dont have the possibilty to do
Actions:
-set counter = counter +1

Or at least I cant find it.
Can anyone who uses the "standard" trigger editor walk me through where to find this?

Thanks in advance :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top