| 07-29-2004, 12:05 AM | #1 |
Why dosent this work? If I have to redo it all, Im going to go insane since it took so damn long! :( Code:
Events
Player - Player 1 (Red) types a chat message containing ' as A substring
Player - Player 2 (Blue) types a chat message containing ' as A substring
Player - Player 3 (Teal) types a chat message containing ' as A substring
Player - Player 4 (Purple) types a chat message containing ' as A substring
Player - Player 5 (Yellow) types a chat message containing ' as A substring
Player - Player 6 (Orange) types a chat message containing ' as A substring
Player - Player 7 (Green) types a chat message containing ' as A substring
Player - Player 8 (Pink) types a chat message containing ' as A substring
Conditions
(Substring((Entered chat string), 1, 1)) Equal to '
Actions
Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 13)) Equal to animatedead
Then - Actions
Unit - Add Animate Dead to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to attributebonus
Then - Actions
Unit - Add Attribute Bonus to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to avatar
Then - Actions
Unit - Add Avatar to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to banish
Then - Actions
Unit - Add Banish to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to bash
Then - Actions
Unit - Add Bash to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to battleroar
Then - Actions
Unit - Add Battle Roar to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to bigbadvoodoo
Then - Actions
Unit - Add Big Bad Voodoo to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to blackarrow
Then - Actions
Unit - Add Black Arrow to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to bladestorm
Then - Actions
Unit - Add Bladestorm to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to blink
Then - Actions
Unit - Add Blink to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to blizzard
Then - Actions
Unit - Add Blizzard to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to breathoffire
Then - Actions
Unit - Add Breath of Fire to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to brillianceaura
Then - Actions
Unit - Add Brilliance Aura to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to carrionbeetles
Then - Actions
Unit - Add Carrion Beetles to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to carrionswarm
Then - Actions
Unit - Add Carrion Swarm to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to chainlightning
Then - Actions
Unit - Add Chain Lightning to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to channel
Then - Actions
Unit - Add Channel to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to charm
Then - Actions
Unit - Add Charm to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to cleavingattack
Then - Actions
Unit - Add Cleaving Attack to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to clusterrockets
Then - Actions
Unit - Add Cluster Rockets to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to coldarrows
Then - Actions
Unit - Add Cold Arrows to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to commandersendurance
Then - Actions
Unit - Add Commanders Endurance to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to criticalstrike
Then - Actions
Unit - Add Critical Strike to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to darkconversion
Then - Actions
Unit - Add Dark Conversion (Malganis) to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to darkportal
Then - Actions
Unit - Add Dark Portal (Archimonde) to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to darkritual
Then - Actions
Unit - Add Dark Ritual to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to deathanddecay
Then - Actions
Unit - Add Death And Decay to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to deathcoil
Then - Actions
Unit - Add Death Coil to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to deathpact
Then - Actions
Unit - Add Death Pact to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to demolish
Then - Actions
Unit - Add Demolish to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to devotionaura
Then - Actions
Unit - Add Devotion Aura to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to divineshield
Then - Actions
Unit - Add Divine Shield to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to doom
Then - Actions
Unit - Add Doom to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to drunkenbrawler
Then - Actions
Unit - Add Drunken Brawler to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to drunkenhaze
Then - Actions
Unit - Add Drunken Haze to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to earthquake
Then - Actions
Unit - Add Earthquake to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to enduranceaura
Then - Actions
Unit - Add Endurance Aura to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to engineeringupgrade
Then - Actions
Unit - Add Engineering Upgrade to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to entanglingroots
Then - Actions
Unit - Add Entangling Roots to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to evasion
Then - Actions
Unit - Add Evasion to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to fanofknives
Then - Actions
Unit - Add Fan of Knives to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to farsight
Then - Actions
Unit - Add Far Sight to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to feralspirit
Then - Actions
Unit - Add Feral Spirit to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to fingerofdeath
Then - Actions
Unit - Add Finger of Death (Archimonde) to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to firebolt
Then - Actions
Unit - Add Firebolt (Neutral Hostile) to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to flamestrike
Then - Actions
Unit - Add Flame Strike to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to forceofnature
Then - Actions
Unit - Add Force of Nature to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to forkedlightning
Then - Actions
Unit - Add Forked Lightning to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to frostarmor
Then - Actions
Unit - Add Frost Armor (Autocast) to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to frostarrows
Then - Actions
Unit - Add Frost Arrows to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to frostnova
Then - Actions
Unit - Add Frost Nova to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to healingwave
Then - Actions
Unit - Add Healing Wave to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to hex
Then - Actions
Unit - Add Hex to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to holylight
Then - Actions
Unit - Add Holy Light to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to howlofterror
Then - Actions
Unit - Add Howl of Terror to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to imomolation
Then - Actions
Unit - Add Immolation to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to impale
Then - Actions
Unit - Add Impale to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to inferno
Then - Actions
Unit - Add Inferno to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to lifedrain
Then - Actions
Unit - Add Life Drain to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to locustswarm
Then - Actions
Unit - Add Locust Swarm to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to manaburn
Then - Actions
Unit - Add Mana Burn to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to manashield
Then - Actions
Unit - Add Mana Shield to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to massteleport
Then - Actions
Unit - Add Mass Teleport to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to metamorphosis
Then - Actions
Unit - Add Metamorphosis to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to mirrorimage
Then - Actions
Unit - Add Mirror Image to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to monsoon
Then - Actions
Unit - Add Monsoon to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to phoenix
Then - Actions
Unit - Add Phoenix to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to pocketfactory
Then - Actions
Unit - Add Pocket Factory to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to poisonarrows
Then - Actions
Unit - Add Poison Arrows to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to reignofchaos
Then - Actions
Unit - Add Rain of Chaos (Archimonde) to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to rainoffire
Then - Actions
Unit - Add Rain of Fire to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to reincarnation
Then - Actions
Unit - Add Reincarnation to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to ressurection
Then - Actions
Unit - Add Resurrection to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to robo-goblin
Then - Actions
Unit - Add Robo-Goblin to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to scout
Then - Actions
Unit - Add Scout to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to searingarrows
Then - Actions
Unit - Add Searing Arrows to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to serpentward
Then - Actions
Unit - Add Serpent Ward to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to shadowstrike
Then - Actions
Unit - Add Shadow Strike to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to shockwave
Then - Actions
Unit - Add Shockwave to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to silence
Then - Actions
Unit - Add Silence to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to siphonmana
Then - Actions
Unit - Add Siphon Mana to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to sleep
Then - Actions
Unit - Add Sleep to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to soulpreservation
Then - Actions
Unit - Add Soul Preservation (Malganis) to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to spikedcarapace
Then - Actions
Unit - Add Spiked Carapace to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to spiritbeast
Then - Actions
Unit - Add Spirit Beast to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to stampede
Then - Actions
Unit - Add Stampede to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to starfall
Then - Actions
Unit - Add Starfall to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to stormbolt
Then - Actions
Unit - Add Storm Bolt to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to stormearthandfire
Then - Actions
Unit - Add Storm, Earth, And Fire to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to summonbear
Then - Actions
Unit - Add Summon Bear to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to summonhawk
Then - Actions
Unit - Add Summon Hawk to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to summonmisha
Then - Actions
Unit - Add Summon Misha (Rexxar) to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to summonprawns
Then - Actions
Unit - Add Summon Prawns to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to summonquillbeast
Then - Actions
Unit - Add Summon Quilbeast to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to summonwaterelemental
Then - Actions
Unit - Add Summon Water Elemental to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to thornsaura
Then - Actions
Unit - Add Thorns Aura to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to thunderclap
Then - Actions
Unit - Add Thunder Clap to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to tornado
Then - Actions
Unit - Add Tornado to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to tranquility
Then - Actions
Unit - Add Tranquility to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to trueshotaura
Then - Actions
Unit - Add Trueshot Aura to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to unholyaura
Then - Actions
Unit - Add Unholy Aura to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to vampiricaura
Then - Actions
Unit - Add Vampiric Aura to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to vengeance
Then - Actions
Unit - Add Vengeance to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to voodoospirits
Then - Actions
Unit - Add Voodoo Spirits to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to warstomp
Then - Actions
Unit - Add War Stomp to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to wateryminion
Then - Actions
Unit - Add Watery Minion to (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 50)) Equal to windwalk
Then - Actions
Unit - Add Wind Walk to (Picked unit)
Else - Actions
Do nothing |
| 07-29-2004, 12:11 AM | #2 |
First of all if you are going to make any serious changes to this you're going to have to convert it to JASS. What I suggest doing first is copy pasting the JASS it to wordpad or something and doing Replace All 50 with StringLength(GetEventPlayerChatString()) |
| 07-29-2004, 12:13 AM | #3 |
Maye you want to test if your substring checker condition works... Try 0\putting a text message action in one of the actions then we can isolate teh problem, find out if its the giving ability part thats screwing up or your substring detection. |
| 07-29-2004, 12:27 AM | #4 |
Ok I changed the Else - Do Nothing to Else - DIsplay Text: ERROR It did display the text: ERROR, so I am confused now.. |
| 07-29-2004, 05:50 AM | #5 |
*bump, i need a short quick answer to what I should add/ remove* |
| 07-29-2004, 11:45 AM | #6 |
Try doing just this for now, disable your trigger and make a smaller, more manageable version. You really should check your triggers BEFORe you apply it like that. Saves a LOT of your time. Code:
Events
Player - Player 1 (Red) types a chat message containing ' as A substring
Conditions
(Substring((Entered chat string), 1, 1)) Equal to '
Actions
Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Substring((Entered chat string), 3, 13)) Equal to animatedead
Then - Actions
Unit - Add Animate Dead to (Picked unit)
Game- Display text message "Boing!"
Else - Actions
Do nothingIf the "Boing!" message works then you know that your substring checking is fine and there's something wrong with your ability or the add abiltiy action. |
| 07-29-2004, 12:39 PM | #7 |
Yeah, it is possible that something is wrong with the "add ability" action. You do know that you cannot add hero abilities with this action, do you? There are two possibilities: a) The action doesn't work with hero abilities at all or b) The action only adds a level 1 Hero ability and doesn't add the ability to the "learn ability" list If it's the a) option, then that's your problem. If it's the b) option, then your problem is someplace else. Try changing one of the spells in your trigger to a unit spell and run the map again, trying to give the unit that spell, and seing if it works. That will tell you if it's the a) or b) option. And really, this is a tragic example of the lack of "proofing of concept". Before writing such long triggers, it's always good to make sure the concept works first. Yeah, I know, lame of me to tell you this now, but it's not meant for you, it's meant for everybody else, as a lesson. |
| 07-29-2004, 07:51 PM | #8 |
thankyou anitarf, you solved my problem. Im giving u a rep point :) |
