• 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.

Example of Troll Code

Level 2
Joined
Mar 14, 2009
Messages
9
Mana Shield Q
Events
Unit - A unit Acquires an item
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to HeroGroups[1]
((Triggering unit) has an item of type |c001CE6B9Mana Shield|r) Equal to True
ManaShield[1] Less than 11
AbilitiesLearned[1] Equal to 1
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ManaShield[1] Equal to 1
Then - Actions
Unit - Add Mana Shield |cffffcc00(Q)|r to HeroGroups[1]
Unit - Set level of Mana Shield |cffffcc00(Q)|r for HeroGroups[1] to ManaShield[1]
Set ManaShield[1] = (ManaShield[1] + 1)
Set AbilitiesLearned[1] = (AbilitiesLearned[1] + 1)
Item - Remove (Item carried by HeroGroups[1] of type |c001CE6B9Mana Shield|r)
Else - Actions
Do nothing
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to HeroGroups[1]
((Triggering unit) has an item of type |c001CE6B9Mana Shield|r) Equal to True
ManaShield[1] Less than 11
Then - Actions
Unit - Set level of Mana Shield |cffffcc00(Q)|r for HeroGroups[1] to ManaShield[1]
Set ManaShield[1] = (ManaShield[1] + 1)
Item - Remove (Item carried by HeroGroups[1] of type |c001CE6B9Mana Shield|r)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Item being manipulated)) Equal to |c001CE6B9Mana Shield|r
Then - Actions
Player - Add 100 to Player 1 (Red) Current lumber
Game - Display to Player Group - Player 1 (Red) the text: You've already maxe...
Item - Remove (Item carried by HeroGroups[1] of type |c001CE6B9Mana Shield|r)
Else - Actions
Do nothing
Top