| 09-12-2003, 01:46 PM | #1 |
This trigger is causing a serversplit. Can anyone find anything that are known as "serversplit causes"? Morph Part1 Events Unit - A unit Spawns a summoned unit Conditions (Unit-type of (Summoning unit)) Equal to Demon Shapeshifter Actions -------- Remove summoned unit -------- Unit - Remove (Summoned unit) from the game -------- Create SFX -------- Special Effect - Create a special effect at (Position of (Summoning unit)) using Abilities\Spells\NightElf\ManaBurn\ManaBurnTarget.mdl -------- Set stats -------- Set VersutiaMorph_Int[1] = (Hero level of (Summoning unit)) Set VersutiaMorph_Int[2] = (Hero experience of (Summoning unit)) Set VersutiaMorph_Int[3] = (Strength of (Summoning unit) (Exclude bonuses)) Set VersutiaMorph_Int[4] = (Agility of (Summoning unit) (Exclude bonuses)) Set VersutiaMorph_Int[5] = (Intelligence of (Summoning unit) (Exclude bonuses)) -------- Set point of Versutia -------- Set spl_TargetPoint[31] = (Position of (Summoning unit)) -------- Create morphed unit -------- If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Unit-type of (Summoned unit)) Equal to Quilbeast (Level 1) Then - Actions Unit - Create 1 Nether Dragon Form for (Owner of (Summoning unit)) at spl_TargetPoint[31] facing Default building facing degrees Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Unit-type of (Summoned unit)) Equal to Tsunami (Level 1) Then - Actions Unit - Create 1 Granite Golem Form for (Owner of (Summoning unit)) at spl_TargetPoint[31] facing Default building facing degrees Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Unit-type of (Summoned unit)) Equal to Hawk (Level 1) Then - Actions Unit - Create 1 Hydra Form for (Owner of (Summoning unit)) at spl_TargetPoint[31] facing Default building facing degrees Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Unit-type of (Summoned unit)) Equal to Bear (Level 1) Then - Actions Unit - Create 1 Dark Wolf Form for (Owner of (Summoning unit)) at spl_TargetPoint[31] facing Default building facing degrees Else - Actions Trigger - Run Morph Part2 <gen> (ignoring conditions) Morph Part2 Events Conditions Actions -------- Set stats of morphed unit -------- Hero - Set (Last created unit) Hero-level to VersutiaMorph_Int[1], Hide level-up graphics Hero - Set (Last created unit) experience to VersutiaMorph_Int[2], Hide level-up graphics Hero - Modify Strength of (Last created unit): Set to VersutiaMorph_Int[3] Hero - Modify Agility of (Last created unit): Set to VersutiaMorph_Int[4] Hero - Modify Intelligence of (Last created unit): Set to VersutiaMorph_Int[5] Unit - Set life of (Last created unit) to (Percentage life of (Summoning unit))% Unit - Set mana of (Last created unit) to (Percentage mana of (Summoning unit))% -------- Set the variable to the morph -------- Set spl_Unit[31] = (Last created unit) -------- Give the items to the morphed unit -------- For each (Integer A) from 1 to 6, do (Actions) Loop - Actions Hero - Give (Item carried by (Summoning unit) in slot (Integer A)) to (Last created unit) -------- Add the selected units to the unit group -------- Unit Group - Pick every unit in (Units currently selected by (Owner of (Summoning unit))) and do (Unit Group - Add (Picked unit) to VersutiaMorph_select) -------- Hide the summoning unit -------- Unit - Hide (Summoning unit) -------- Select and remove the units in the unit group for the player -------- Selection - Select VersutiaMorph_select for (Owner of (Summoning unit)) Unit Group - Remove all units from VersutiaMorph_select -------- Move the morphed unit to the position of Versutia -------- Unit - Move (Last created unit) instantly to spl_TargetPoint[31] -------- Set duration of the morph -------- If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Unit-type of (Last created unit)) Equal to Nether Dragon Form Then - Actions Wait 30.00 game-time seconds Else - Actions Wait 40.00 game-time seconds Trigger - Run Morph Back <gen> (ignoring conditions) Morph Back Events Conditions Actions -------- Unhide Versutia -------- Unit - Unhide (Summoning unit) -------- Set life & mana of Versutia to match the morphed unit's -------- Unit - Set life of (Summoning unit) to (Percentage life of spl_Unit[31])% Unit - Set mana of (Summoning unit) to (Percentage mana of spl_Unit[31])% -------- Set the stats of Versutia to match the Morphed unit's -------- Hero - Set (Summoning unit) experience to (Hero experience of spl_Unit[31]), Hide level-up graphics Hero - Modify Strength of (Summoning unit): Set to (Strength of spl_Unit[31] (Exclude bonuses)) Hero - Modify Agility of (Summoning unit): Set to (Agility of spl_Unit[31] (Exclude bonuses)) Hero - Modify Intelligence of (Summoning unit): Set to (Intelligence of spl_Unit[31] (Exclude bonuses)) -------- Set the variable to the position of the morphed unit -------- Set spl_TargetPoint[31] = (Position of spl_Unit[31]) -------- Give the morphed unit's items to Versutia -------- For each (Integer A) from 1 to 6, do (Actions) Loop - Actions Hero - Give (Item carried by spl_Unit[31] in slot (Integer A)) to (Summoning unit) Set VersutiaMorph_itm[(Integer A)] = No item -------- Remove the morphed unit from the game -------- Unit - Remove spl_Unit[31] from the game -------- Move Versutia to the position of the morphed unit -------- Unit - Move (Summoning unit) instantly to spl_TargetPoint[31] I know it's LOTS of text, but it's really bugging me. I tried splitting it up in 3 triggers, but it didn't help(it was earlier 1 trigger). I'm not using Wait but Wait game-time. |
| 09-13-2003, 01:53 PM | #2 |
Only thing I can mention is that the wait call resets the Summoning unit. |
| 09-13-2003, 02:16 PM | #3 |
Ok, thanks. I will set the summoning unit to a variable, that won't reset will it? |
| 09-13-2003, 03:20 PM | #4 |
No variables won't reset just keep them in a variable array. I'm not sure why it would be splitting...try the unit summoning part, that COULD be it. Usually splits occur when player cameras are altered. Best of luck to you. |
