| 07-02-2003, 03:16 PM | #1 |
okay, theoreticly, this should work... e: Unit owned by player one begins casting an ability c: (abilitiy being cast) equal to Surge a: set variable = last created unit unit create 1 priest for netural hostitle at position of triggering unit. unit order last created unit to Orc Shaman Bloodlust target unit of issued order wait 1 second kill laster created unit but for some reason in the TFT editor it doesn't. :P What gives? And yes, I already tried it with event response - targeted unit too. the orc shaman bloodlust represents another custom ability i gave to the priest that uses bloodlust as it's order string. I made another spell almost the same exact way before tft and now the same method don't seem to work. What gives? :P |
| 07-02-2003, 06:49 PM | #2 |
Guest | Here's the test I did...modify the abilities and what not as you will. Of course if I were doing this as a final thing I'd do something about making the unit that appears to cast your buff invisible. e: Unit - A unit Begins casting an ability c: (Abilitiy being cast) Equal to Roar a: Unit - Create 1 Necromancer for Player 1 (Red) at (Position of (Casting unit)) facing Default building facing degrees Unit - Order (Last created unit) to Undead Necromancer - Unholy Frenzy (Casting unit) Wait 1.00 seconds Unit - Remove (Last created unit) from the game The problems I see with the way you were doing it...you have a hostile unit casting a friendly buff on a player, don't think that works. Second, you're not dealing with an issued order...you're dealing with someone casting a spell. Hence the (Casting Unit) Yes this works, because I just tested it in TFT |
| 07-02-2003, 07:59 PM | #3 |
Hmm. Actually the spell being cast is a modified unit ability. It's a hero skill now that buffs. What you're saying works, yes, but it's not exactly what I want to do. What I was trying to do is have another unit appear when the spell is cast, and have THAT unit cast another spell on the targeted unit, alongside the first one, at the same time... y'see? aside from that, just so you know, you CAN cast a 'friendly' buff on an enemy unit if you modifiy the targets... And I tried creating the unit for triggering player too, and that didn't work either. |
| 07-02-2003, 09:15 PM | #4 |
Guest | Ah...when you used Bloodlust as an example ability I was thinking the actual ability or something with similar behavior., didn't notice the comment about it being a placeholder. Hmm...let me test some stuff and see if I can get that to work |
| 07-02-2003, 11:51 PM | #5 |
ok basically what he is asking is how would you designate the target unit of an ability throught tha "begins casting an ability trigger". i think you might need a spell enhancer for this tho... |
| 07-03-2003, 12:04 AM | #6 |
ok, i haven't tested this, don't hav WEdit infront of me but: e: Unit is issued an order targeting a point Unit begins casting an ability c:ability being cast = bloodlust a:whatever, use target unit of issued order i'm guessing the unit is issued an order targeting a point event should create a local target unit variable for that trigger, yet scince there is no ability being cast it will only fire when it receivs it from the begins casting event... try it out, i will too once i get around to it. |
| 07-03-2003, 12:15 AM | #7 |
i think the whole point of the tft we's new 'spell casting' events is so you dont have to use any kind of enchancers or anything. Lemme make it clear here, so maybe it'll be easier for everybody to help. I have two abilities, one is a modified unholy frenzy (a hero spell, the one intially being cast) and the other is a booster spell that simulates the extra effects of the first one. The second spell is based off bloodlust and is a unit ability. So what I want to happen is to have BOTH spells cast on the same target unit at the same time. The method in my first post worked with the old we, but now all the sudden, it doesn't seem to want to. The modified bloodlust still uses the 'bloodlust' order, so when you order the created unit to 'Orc Shaman - Bloodlust' is should cast whatever ability it has that has the 'bloodlust' order string.... For some reason it doesn't seem to want to though because the rest of the trigger actions are being carried out just fine, except for that one. |
| 07-03-2003, 02:16 AM | #8 |
the problem you are having is that the unit - begins casting an ability does not have a trigger response for the unit at whom the spell is issued... like i said above. "target unit of issued order" is generated when the event "unit is geven an order targeting a point" is thrown. the "target unit" is generated when the "unit aquires a target trigger is thrown. See if my method works, that is the only way i can think of for it to work. |
| 07-03-2003, 06:10 AM | #9 |
okay now I tried it your way and still no dice. it kinda sucks too because I thought these new 'spell cast' events were supposed to make stuff like this EASIER, not even more annoying. If anybody comes up with a method let me know because I'm completely stumped now. :P |
| 07-03-2003, 05:17 PM | #10 |
i guess we're just going to have to use a spell enhancer... e: unit is issued an order targeting a poin c: order = blahblah a: turn on trigger 2 turn on trig 3 caster = triggering unit target = targeted unit trig2: e: unit begins casting a spell c: unit = caster ability being cast = blahblah a: do whatever to target trig 3 e: all the unit it issued order commands c: order != blahblah a: turn off trig 2 turn off this trig |
| 07-03-2003, 05:40 PM | #11 |
Guest | *nod* I just the did the same thing to test it...did a little test using Invisibility and Inner Fire. I'll just put the trigs below. Trig 1: E: Unit - A unit Is issued an order targeting an object C: Issued order Equal to Order(invisibility) A: Set InvisTarg = Target unit of issued order Trig 2: E: Unit - A unit Begins casting an ability C: Ability being cast Equal to Invisibility A: Unit - Create 1 Priest for Player 1 at Position of InvisTarg Unit - Order Last created unit to Inner Fire Invis Targ Wait 1.00 seconds Unit - Remove Last created unit from the game Of course you probably want to make sure to give the priest a non-model to keep him from suddenly appearing out of nowhere. If you want to test the exact example I gave here make sure to edit the Abilities so that you don't have to research them (or make them researched at game start) |
| 07-03-2003, 07:12 PM | #12 |
now that i think about it, that works too lol... i guess i was going around inexistant problems. a few notes: -many generic unit events would theoretically cause uber lag -better to make a seperate trigger for removing i.e. generic unit finishes casting a spell (whatever) remove him from the game. you only need one trigger for all the unit in your map so that won't mess with the above note, and you won't need to wait 1 second and risk some incompatibilities. |
| 07-03-2003, 11:02 PM | #13 |
Thanks alot guys, and yeah I know to blank out the model for the preist. I was just using him to test the method, to get it to work... On a side note, actually a wisp is the best model to use for invisible 'booster' units because wisps have no shadow and when you blank out the model they really do become invisible. I'm sure this will help alot of people out too. Thanks for finding out for me. |
| 07-04-2003, 02:27 AM | #14 |
Guest | Yeah, there is one problem with this method and I'm pretty sure it would be a bitch to fix. Alright let's say you have two units with the ability and they both go to cast the spell on units far away from them. Let's call the casters Sorc1 and Sorc2 and the targets Tar1 and Tar2. Sorc1 orders invisibility on Tar1, since Tar1 is out of range she begins moving towards him. Note the InvisTarg variable now = Tar1 Sorc2 then orders invisibility on Tar2, and as he is out of range she begins moving towards him. Now, InvisTarg = Tar2. Sorc1 reaches Tar1 and casts invisibility on him...suddenly our modeless wisp appears next to Tar2 and cast Inner Fire on him. Shit Forunately this ability works just fine if it's on say, a hero and you use a seperate variable per player. However if you've got this ability on a standard unit you're up shit creek unless you come up with a clever fix. If this is the case just reply here and I'm sure someone will come up with said clever fix. |
