| 04-01-2004, 07:36 PM | #1 |
Hi. Here's the my trigger. "Kill Vampires During Day" Events Time - Every 2.00 seconds of game time Conditions Actions Set GAMETIME = (In-game time of day) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions DAYWALK Equal to 0 GAMETIME Greater than 6.00 GAMETIME Less than or equal to 18.00 Then - Actions Unit Group - Pick every unit in (Units of type Sengir Vampyre) and do (Actions) Loop - Actions Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Orc\EtherealForm\SpiritWalkerChange.mdl Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 15.00) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions DAYWALK Equal to 1 GAMETIME Greater than 6.00 GAMETIME Less than or equal to 18.00 Then - Actions Unit Group - Pick every unit in (Units of type Sengir Vampyre) and do (Actions) Loop - Actions Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Orc\EtherealForm\SpiritWalkerChange.mdl Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 10.00) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions DAYWALK Equal to 2 GAMETIME Greater than 6.00 GAMETIME Less than or equal to 18.00 Then - Actions Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Orc\EtherealForm\SpiritWalkerChange.mdl Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 5.00) Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions DAYWALK Equal to 3 GAMETIME Greater than 6.00 GAMETIME Less than or equal to 18.00 Then - Actions Trigger - Turn off (This trigger) Else - Actions To make a long story short...The Vampire will burn in sunlight unless he learns his Daywalk ability...Daywalk INTEGER is incremented by one each time he learns the ability via a separate trigger (and i know this works)..However when i run the game, the trigger works fine for DAYWALK = 0 (he burns 15 points / two seconds ) and DAYWALK = 1 (he burns only 10 points every two seconds) .. But when i try to learn level 2 Daywalk, it shuts the burning trigger off COMPLTELY..when it should still be diong 5 damage per second as it say in the above trigger..Does anyone know what is going wrong here? Also... Is there a way to make it so that a non hero unit controlled by a hero can gain experience for the hero...? Like lets say the hero is back at base (away from battle) and he summons his wolf scout, to fight for him. How do i make it so that when the wolf is in the XP gain range (1000 units of a dying enemy) he will gain XP for the hero , but i dont want the Hero gainig double XP when the hero is in the battle WITH the summon..you get what i mean? And... (LOL sorry for all the questions) one finalthing. I CANNOT seem to modify the UNSPENT skillpoints of a hero via a trigger. When i do so, they do not get subtracted or added like they should in game. Does anyone know why this is? And what is the proper way to make a skill point modification to a unit? Thanks to anyone who can answer even ONE of these questions :) |
| 04-01-2004, 08:42 PM | #2 |
It must be the other triggers. Delete the other triggers, DAYWALK varible, and GAMETIME varible. Remove the 6/18 condition from the ifs and add it to the main trigger condition. Do an interger comparisen, level of ability of picked unit equals to X. Also if you create special effect, and dont destroy it, I think it takes up memory, try to fix that. The skill point thing, may have made a simple mistake using set to points, not add or subtract. |
