• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Need pick 3 orbs to open a gate

Status
Not open for further replies.
Level 13
Joined
Oct 28, 2019
Messages
528
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 25
Joined
Feb 27, 2019
Messages
846
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