| 07-25-2003, 09:33 PM | #1 |
Got a couple questions. Going TFT all the way. Trigger editting: I am using one of the spellcast events like "Unit - A unit begins casting an Ability". In that trigger, the spellcaster is identified as the "Event Response - Casting Unit". If it is a targetted ability, such as entangling roots, is there a way to get the target unit in the trigger? Pathing issue: I have created a new destructible doodad off of a "Gate" and tried to make it a bigger gate. I changed "Occlusion Height, Selection Size, Min and Max Scale". All good, but, when I look at the pathing...the gate is closed, and yet the pathing does not block as much space as the gate covers. In the game, I see AI units walk right through the gate, closed. What gives? Spell Editing: For now I am trying to stick to the WE for what I am doing, but I get the feeling I am going to have to resort to some of those other editting tools to do custom spells. What one is good, and works with TFT? Thanks in advance. |
| 07-25-2003, 09:41 PM | #2 |
Nope, sorry any spell that has a target wont work with JUST an 'ability being cast' event. You need a second trigger, and a variable to go along with it... IT should look something like this e: Unit is issued an order targeting an object. (or Unit is issued an order targeting point, for points. For spells like blizz and carrion swarm, etc.) c: issued order equal (whatever order string your base spell uses. ex: If you modified Storm Bolt, you would use the 'thunderbolt' order) a: Set variable = target unit of issued order (or target poin of issued order for points natrually) And that's it. Your other 'Ability being cast' trigger will take care of your modified actions. Make sure to use the variable you just set in the first trigger too when you want things to happen to or around the targeted unit or point... |
| 07-26-2003, 12:31 AM | #3 |
Awesome, creative solution. New question: Is there a way to tell in the trigger conditions about the level of the spell being cast? Any thoughts on that pathing weirdness? Many thanks! |
| 07-26-2003, 12:49 AM | #4 |
Yes, it's a bit tricky, but you should be able to do it if you have a bit of a handle on variables and triggers. The way I do it is this... E: unit learns a skill c: hero skill being learned equals to (whatever doesn't really matter, pick blizzard. You'll see why later...) a: Okay here you need an integer variable. We'll call it spellLVL for right now set variable spellLVL = (arithmatic) spellLVL + 1 NOW what you need to do is make another trigger and just plug in the condition ability being cast = to whatever ability we're working with here. And that's all. Now you take that second trigger with just that condition and you convert it to custom text. AFTER you do that you should see a 4 letter + number 'code' Prolly like A002 or A0I4 or something like that. Copy it, then delete that trigger... With that code copied go to your first trigger and then convert THAT one to custom text too. Up top you should see another 4 letter/number code. If you picked blizz it should be Ahbz. Replace that with the one from the second trigger, and boom... now you can track the spell lvl of your custom spell. |
