Need pick 3 orbs to open a gate

Status
Not open for further replies.
Level 13
Joined
Oct 28, 2019
Messages
523
I really dont know how do this trigger,
  • PegaORB
    • Events
      • Unit - Sylvanas 0005 <gen> Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Orb of Knowledge
    • Actions
      • Leaderboard - Change the label for Player 1 (Red) in SixLeadersLeaderbord to Obtained Orbs 1/3
A leader board will show 1/3 2/3 orbs etc.... and the third is get a gate opens how do that
 
Level 24
Joined
Feb 27, 2019
Messages
833
Add to trigger
Set OrbCount = OrbCount + 1
If
OrbCount equal to 3
Then
Do actions
Else

Change the label of leaderboard to integer to string(OrbCount) + /3
Edit: A good idea if you decide it should be 5 orbs in the future is to create another variable OrbGoal

Set its initial value to 5 or set it in an initalization trigger so its easily managable. Then all you need to do is change this variable to how many orbs should be collected.

Now you can do this instead

Add to trigger
Set OrbCount = OrbCount + 1
If
OrbCount equal to OrbGoal
Then
Do actions
Else

Change the label of leaderboard to integer to string(OrbCount) + / + integer to string(OrbGoal)
 
Last edited:
Status
Not open for further replies.
Top