• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Need pick 3 orbs to open a gate

Status
Not open for further replies.
Level 12
Joined
Oct 28, 2019
Messages
481
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
606
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