HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Targeting

11-11-2002, 07:16 AM#1
Thunder-Hunter
Is it possible to make a trigger where if I have like a guy called {Wizard} selected and then i type {-fireball} like it will de-select my wizard and the next guy i select (as in mainly enemy) it will do damage?

I can get the special effects... :abomHUH?:
11-11-2002, 07:52 AM#2
Saik
Trigger1
Event
Player # ____ types in a chat message containing fireball as an exact match

Condition
(Wizard#<gen> is in (Units currently selected by Player #____)) equal to True

Actions
Turn on (Trigger2)


Trigger2
Event
Player #____ Selects a Unit

Condition

Actions
Pick every unit in (Units Selected by Player #____) and do (Unit - set life of (Picked Unit) to ((Life of (Picked Unit)) - 200))
Trigger - Turn off(This trigger)

Problem is, you can select multiple units you control, so you have to choose either all of them or a random one.
for enemies it should work fine though
11-11-2002, 09:30 AM#3
Thunder-Hunter
cool thx. im also going to add mana to it.

could it work if u had like 3 wizards selected and then u do it like then they will all lose some mana, but will do x3dmg to the enemy?