• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need pick 3 orbs to open a gate

Status
Not open for further replies.
Level 12
Joined
Oct 28, 2019
Messages
475
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 20
Joined
Feb 27, 2019
Messages
593
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