| 01-28-2003, 02:42 AM | #1 |
Hello all, I've posted a question about this in the map Dev forum, but to be honest i dont think I'm going to get any response on the matter. http://www.wc3campaigns.com/forums/s...threadid=10623 What im trying to discover is how to accurately detect when spells are cast, (as opposed to when some order is issued). So the casting of the spell can be enhanced with various triggers. Like a crown of command spell that returns the target to your control after x minutes, or a summon spell that brings up gates and creates circles of flame, etc. The point is to just get that trigger functionality. I have a method but I'm really not convinced that its the most accurate, and i was hoping that someone who actually knows jass could comment on it. http://www.wc3campaigns.com/forums/s...threadid=10637 Thanks to anyone who responds, this is a pretty important problem, and its the key to taking spell editing wayyy above and beyond the small set of "templates" that blizzard offers us. Sincerely, Fm_TertiaryEye |
| 01-28-2003, 10:28 AM | #2 |
I've made a lot of spells with triggers... they work perfect.. check em out here: http://www.wc3sear.ch/Dragon1.zip Illusion Mental Domination Infest Shape Shift Freezing Field Time Stop all those are trigger enhanced spells |
| 01-29-2003, 10:21 AM | #3 |
Hey Darky, Unfortunately that map exibits pretty much the same problem. (although Its not really bad in single player) What i'm trying to emulate is the magesty discipline from VOTM, it basically does the same thing as mental domination, turns a unit to your control for 30 seconds. Your's works because the range for your spell exceeds the boundaries of the entire map and its a single player map, so you cant target beyond your own vision. (unless you send another converted unit out and have him supported by your metamorph dragon). What I'm trying to do though (and came pretty close) is to make a triggered spell, based upon a unit targeted order that has a finite range. In other words the trigger is fired when the spell is cast, not when it's ordered. I think though, the best route is to just check the range and order a stop if its out of range, it makes it a bit hard to pursue fleeing heroes but i think thats a small price to pay for it actually working :P Anyway, thanks. |
