| 01-29-2003, 07:54 PM | #1 |
Guest | Triggers aren't my strong point. I'm trying to create a trigger to instantly "teleport" the "casting-only" unit anywhere on the map that is pathable. Basically, Mass Teleport for only the caster without the limitation of having to Teleport "TO" another unit. I know that this can't be done with simple spell editing (changing target to terrain doesn't work, it still requires a unit nearby). I tried to get a trigger working on this for a couple of hours last night...no luck. Any ideas? |
| 01-29-2003, 07:57 PM | #2 |
Im not sure if you can get the offset data and conver it to a region just by clickin the mouse while the MT spell is looking for a target... if you can, thats how you need to do it |
| 01-29-2003, 10:06 PM | #3 |
Guest | what bout target: trees? u can click old mass tele anywhere and spell selected the next target........ |
| 01-29-2003, 11:29 PM | #4 |
Guest | BL: Tried trees and just about every target. Needs a unit or structure to work. Dakan: Don't follow you there. I can't see needing a region. As I see it, if I can get the target as a point, I could just "Move - Instantly" to that point. I made a trigger that did the following and it didn't work (effects not included): Trigger: Teleport Event: A unit owned by Player X is issued an order with no target Condition: IssuedOrder = Order(massteleport) Action: Unit - Moved (Ordered Unit) instantly to target point of issued order Maybe I'm not understanding the Event correctly, but I thought if you try to use the spell, an order is issued regardless of whether or not the spell is successful. |
| 01-30-2003, 12:14 AM | #5 |
The point of the area you want to click would need to be converted to a region if there is no unit/doodad that can be targeted. Think of a region as a set of points that defines a small area, cuz that is what a region really is, 4 points that enclose a area, so at the minium you would need 1 point (coordinites x,y maybe z for the hight of terrain.. not sure). THere is a convert points to region when picking "Move unit to region" If somehow you could detect where the player is clicking, copy the coordinates and store them in a interger varible for X and Y coords.. then you could order the unit using MT to "stop" after you detected him using it and store the info. then move unit instanly to those points. Its the only way i can see it happening You have the event right, but the move unit to point you would use convert points to region.. thats the info you need to get, and i dont think that is possable |
| 01-30-2003, 09:59 AM | #6 | |
Guest | OK. Been playing around with this all night. I decided that Mass TP might not be the perfect spell as the base spell. So I decided to try dispel magic (which I'm not using) to see if I could get it to work. Now the humanfunc.txt file doesn't have an order= for Dispel. Not being a trigger genius, I decided to see if making one would work. So I used a made up one called "teleport" and put it in the func.txt and used this trigger: Quote:
This had a very interesting effect. The above trigger worked in the follwing manner... All orders without a target (including the new spell based off dispel and normal movement) caused the trigger to work and moved the unit. Since it also worked when I clicked the new spell, this lead me to believe that I just needed to get the Event and condition worked out. Next I went into the NuetralFunc.txt and looked up the creep dispel. This one had an order, "order=dispel", that I could use. I added this to my new spell and edited the trigger to use the "dispel" order instead. And...no luck. Over the process of several hours, I tried several different spells with the same luck. During this process, I also started some "test" triggers to display a simple game message if the event/condition were correct. Under no circumstances was I able to get this game message to pop up if I had the condition: IssuedOrder = Order(X). Why? Why? Why? Why? --------------------------------------------- On a different note, I did find a work around to get the effect I wanted. I increased the range on inferno to 99999 and then moved the summoning unit to the summoned unit. However, I had to use the Event: Player X summoned a unit. |
