HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

help with casting triggers

07-11-2004, 10:02 PM#1
Neksar
as i've stated a couple of times, i'm trying to make an rpg, but first i need to develop hero skills. I already have every skill except one ready, but the problem is that it's a spell that summons a unit that automatically casts a "Big Bad Voodoo" type of spell. I've been trying to figure out how to get the variable i've created to make the unit cast the spell upon summoning, but i can't quite put my finger on it. I've tried the "Issue order without a target" action, but that didn't work, and i also made a variable for each of the spells if i need to use it that way. I could really use some help, thanks.

p.s. and if you're going to flame me, go ahead, i feel like enough of a moron anyway -_-
07-11-2004, 11:03 PM#2
Aelita Lyoko
Code:
[insert trigger name here]
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to [insert ability here] 
    Actions
        Unit - Order (Summoned unit) to Orc Shadow Hunter - Big Bad Voodoo

I think that trigger will do that trick. If it helps, don't forget to take 10 seconds and give me a rep point :-)
07-11-2004, 11:21 PM#3
Neksar
i've tried that, but it looked more like this:
Summon
Events
Unit - A unit Spawns a summoned unit
Conditions
(Unit-type of (Triggering unit)) Equal to Shield Generator (Level 1)
Actions
Unit - Order (Summoned unit) to Orc Shadow Hunter - Big Bad Voodoo

and i haven't been keeping up with teh site, so i don't know what rep points are, i need to look into that...

Edit: thanks for helping though, i just figured out how to add rep points, btw, that's a rather Odd avatar...
07-11-2004, 11:53 PM#4
th15
The reason your trigger doesn't work is that you're using "Triggering unit" in the condition. First of all this is an unspecific reference. Secondly, in this case it references the casting unit that spawned the summoned unit, not the summoned unit. ALWAYS use the most specific event response. In this case you should use "summoned unit".
07-11-2004, 11:53 PM#5
Aelita Lyoko
Quote:
Originally Posted by Neksar
btw, that's a rather Odd avatar...

I take it you watch Code: Lyoko.
If i want to, i can get an animated Gif as my Avatar.
07-12-2004, 12:54 AM#6
Neksar
ok, i'll try that right now, thx

and about the avatar, all i have to say is this:
Neato! anyway... off i go to try it
07-12-2004, 01:00 AM#7
Neksar
aww, nosenuggets :\ it didn't work, i think that if i use the spells as a variable that i could do SOMETHING, so i'll just see if i can find it out, i'd still appreciate some more feedback, though :D

by the way, i also noticed that i said a "Big Bad Voodoo" type of spell, but what i meant to say was that the spell's BASE spell was Big Bad Voodoo, so actually, the spell itself is not the same. I think that might have something to do with the problem...
07-12-2004, 03:07 AM#8
Neksar
to th15: turns out that summoned unit value corresponds to "spawns a summoned unit" function, but actually, "spawns a summoned unit" function only applies to spells such as bear, quillbeast, hawk, and feral spirit. Because my spell summons a unit the way you summon a serpant ward, i have to use different triggering for it

Edit: I have to go to bed now, so I can try a unit spawn based on ability level "If/Then/Else" function, it worked to stop my summoned unit with necropolis model from playing its build animation
07-12-2004, 05:59 AM#9
th15
Umm, trust me, "summoned unit" event response works for sentry ward at least. I use it to simulate grenades.
07-12-2004, 10:44 AM#10
Anitarf
Are you sure the summoned unit has the BBV based ability in the first place? Also, it must have enough mana to cast it, or the ability must have 0 mana cost. Otherwise, this trigger, as th15 already said, has to work (I modified it a bit, because I am guessing you are going to have multiple levels of the spell):

Code:
Events
    Unit - A unit Spawns a summoned unit
Conditions
    or - multiple conditions:
        conditions:
            (Unit-type of (Summoned unit)) Equal to Shield Generator (Level 1)
            (Unit-type of (Summoned unit)) Equal to Shield Generator (Level 2)
            (Unit-type of (Summoned unit)) Equal to Shield Generator (Level 3)
Actions
    Unit - Order (Summoned unit) to Orc Shadow Hunter - Big Bad Voodoo
07-13-2004, 12:21 AM#11
Neksar
turns out that Anitar's suggestion worked, but not at first. I tried it once, but it didn't work, but then when i added mana to the units, it worked, even though the spell had no mana cost... weird, huh? thanks for the help, guys!