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

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