HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Are u able to add trigger functions in UMSWE4?

07-20-2003, 04:02 AM#1
STURMguy22
i want to know because blizzard did not put in 2 VERY useful functions in the trigger editor

1. A unit casted upon detection type thing


so bascially -- Event -- unit cast spell
Conditions -- casted spell is equal to storm bolt
Actions -- destroy target of casted spell

i need the taget of casted spell function

2. A hero spell level detection

pretty self explanitory

so basically -- Event -- unit casts a spell
Condition -- Casted spell is storm bolt
Condition -- casted spell level is equal to 2
Action -- Destroy taget of casted spell


These would be UNBELIEVABLY helpful when making trigger spells
Plz can u tell me if these can be added?
07-20-2003, 03:56 PM#2
ChronOmega
YOU cant add these, but its a possibilty thayt Scio could, though even he has limits to what he can add to the WE
07-20-2003, 06:53 PM#3
Scio
if blizzard made the code for them, I can add them, drop a note i nthe wishlist
07-27-2003, 04:53 AM#4
junbin
First one:

Use 2 triggers. First one is the one where "Unit issued orders targeting another unit" The name of the target unit will be the unit of targetted order. Set the unit to a variable. 2nd trigger is "unit starts the effects of an ability" and you have the name of the unit in the variable. Both times, you need to check that the spell is the same. For the issue order, you need to make sure the name of the order AND the caster are both correct.



Second one:

Use another trigger to keep track of when the spell is "learned" and increase a variable to reflect the number of times "learned". This variable will be your spell level.