• 🏆 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!

[Trigger] want trigger code (-random)(-ar)

Status
Not open for further replies.
Level 3
Joined
Dec 9, 2009
Messages
35
Ok here are triggers :
[trigger=First]First
Events
Time - Elapsed game time is 0.01 seconds
Conditions
Actions
Set NumberofHeroes = (NumberofHeroes + 1)
Set Hero[NumberofHeroes] = Paladin
Set NumberofHeroes = (NumberofHeroes + 1)
Set Hero[NumberofHeroes] = Archmage
Set NumberofHeroes = (NumberofHeroes + 1)
Set Hero[NumberofHeroes] = Mountain King
Set NumberofHeroes = (NumberofHeroes + 1)
Set Hero[NumberofHeroes] = Blood Mage
Set NumberofHeroes = (NumberofHeroes + 1)
Set Hero[NumberofHeroes] = Blademaster
Set NumberofHeroes = (NumberofHeroes + 1)
Set Hero[NumberofHeroes] = Far Seer
Set NumberofHeroes = (NumberofHeroes + 1)
Set Hero[NumberofHeroes] = Tauren Chieftain
Set NumberofHeroes = (NumberofHeroes + 1)
Set Hero[NumberofHeroes] = Shadow Hunter
Set NumberofHeroes = (NumberofHeroes + 1)
Set Hero[NumberofHeroes] = Death Knight
Set NumberofHeroes = (NumberofHeroes + 1)
Set Hero[NumberofHeroes] = Lich
Set NumberofHeroes = (NumberofHeroes + 1)
Set Hero[NumberofHeroes] = Dreadlord
Set NumberofHeroes = (NumberofHeroes + 1)
Set Hero[NumberofHeroes] = Crypt Lord[/trigger]
[trigger=Random]Random
Events
Player - Player 1 (Red) types a chat message containing -random as An exact match
Player - Player 2 (Blue) types a chat message containing -random as An exact match
Player - Player 3 (Teal) types a chat message containing -random as An exact match
Player - Player 4 (Purple) types a chat message containing -random as An exact match
Player - Player 5 (Yellow) types a chat message containing -random as An exact match
Player - Player 6 (Orange) types a chat message containing -random as An exact match
Player - Player 7 (Green) types a chat message containing -random as An exact match
Player - Player 8 (Pink) types a chat message containing -random as An exact match
Player - Player 9 (Gray) types a chat message containing -random as An exact match
Player - Player 10 (Light Blue) types a chat message containing -random as An exact match
Player - Player 11 (Dark Green) types a chat message containing -random as An exact match
Player - Player 12 (Brown) types a chat message containing -random as An exact match
Conditions
Actions
For each (Integer A) from 1 to 100, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PlayerHaveHero[(Player number of (Triggering player))] Equal to False
Then - Actions
Set RandomNumber = (Random integer number between 1 and NumberofHeroes)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
HeroUsed[RandomNumber] Equal to False
Then - Actions
Unit - Create 1 Hero[RandomNumber] for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
Set PlayerHaveHero[(Player number of (Triggering player))] = True
Set HeroUsed[RandomNumber] = True
Else - Actions
Else - Actions[/trigger]
[trigger=Ar]Ar
Events
Player - Player 1 (Red) types a chat message containing -ar as An exact match
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
For each (Integer A) from 1 to 100, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
PlayerHaveHero[(Player number of (Picked player))] Equal to False
Then - Actions
Set RandomNumber = (Random integer number between 1 and NumberofHeroes)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
HeroUsed[RandomNumber] Equal to False
Then - Actions
Unit - Create 1 Hero[RandomNumber] for (Picked player) at (Center of (Playable map area)) facing Default building facing degrees
Set PlayerHaveHero[(Player number of (Picked player))] = True
Set HeroUsed[RandomNumber] = True
Else - Actions
Else - Actions[/trigger]
Only player one can chose -ar.
 
Status
Not open for further replies.
Top