| 11-04-2003, 03:41 PM | #1 |
Why the H*ll, won't this summoned unit get the skill?! Falling Stars LvL 1 Events Unit - A unit Spawns a summoned unit Conditions (Unit-type of (Summoned unit)) Equal to Star [Level 1-5] Virtue_FallingStars Equal to 1 Actions Game - Display to (Triggering player), at offset (0.00, 0.00) the text: star level 1 cast Unit - Add Falling Stars [Level 1] to (Summoned unit) Unit - Order (Summoned unit) to starfall Wait 20.00 seconds Game - Display to (Triggering player), at offset (0.00, 0.00) the text: star level 1 dead Unit - Kill (Summoned unit) The texts I've set in, shows up, so the spell IS being cast. It's just not either getting the skill, or executing the order... I have another map, where I made this spell, and it works perfectly there... Anyone have any idea why this isn't working now? |
| 11-04-2003, 03:50 PM | #2 |
does it have enough mana ? if it's a hero ability, does the dummy hero match required level ? (starfall is lev6) how much mana does that spell cost ? |
| 11-04-2003, 03:57 PM | #3 | |
Quote:
Yes, i does Ur saying something there...the unit getting the ability isn't a hero...and the given skill used to be a unit ability I think...maybe not. Either way, it shouldn't really matter, as I have another spell that gives 2 auras to a unit, and that one works flawlessly... 0 mana :) I'll look into the hero bit... After I transfered these skills, 3 of them stopped working totaly...I frikkin hate it... |
| 11-04-2003, 04:00 PM | #4 |
what do you mean with Star[1 - 5] Do you mean there are 5 different versions of star? If that's the case make sure these conditions are or ed. |
| 11-04-2003, 04:02 PM | #5 |
The Star[Level 1-5] is simply the unit summoned, the [] is the editor surfix, so I know what it's used for. Has nothing to say. Here is another: If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Virtue_Miracle_Random Equal to 2 Then - Actions Game - Display to (Owner of (Summoning unit)), at offset (0.00, 0.00) the text: Miracle cast with t... Unit - Hide (Summoned unit) Unit - Add Sun Fire [Miracle Spell Lvl 1] to (Summoned unit) Environment - Create at (Rect centered at (Position of (Summoning unit)) with size (400.00, 400.00)) the weather effect Rays Of Light Environment - Turn (Last created weather effect) On Unit Group - Pick every unit in (Units within 250.00 of (Position of (Summoned unit)) matching (((Matching unit) belongs to an enemy of Player 2 (Blue)) Equal to True)) and do (Actions) Loop - Actions Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 200.00) Special Effect - Create a special effect at (Position of (Picked unit)) using Abilities\Spells\Orc\AncestralSpirit\AncestralSpiritCaster.mdl (trigger cut as the rest works fine, only the bold part is important) It doesn't get the Sun Fire ability added... |
| 11-04-2003, 04:13 PM | #6 |
zach try doing this. first give the unit starfall in the editor so he already has the skill. than at map initialization do an action that says... action- --disable starfall for player(color) do this for all players than after that make the trigger so it says this as the action instead of making the summoned unit learn starfall action- --enable starfall for triggering player than he will have the spell you make him cast it than kill him than do this one action- --disable starfall for triggering player and there you have it. now that i think about it you may need starfall for other units. if this is so just create a copy of starfall and give it a diff name than the original and do the trigger with the copy abilty rather than the original. that will work. |
| 11-04-2003, 04:19 PM | #7 |
My problem is, that my triggers work....in the other map, no flaws there.. The triggers RUN, and do EVERYTHING but get the skills added to the units... I simply don't get it... |
| 11-04-2003, 04:56 PM | #8 |
OK, no idea what was wrong, but I replaced the triggers and now they work....frikkin wierd :P Thanks all :) |
