| 02-08-2004, 12:05 AM | #1 |
k i have made a kind of multi spell.. its based on frost nova... when it is fired on a unit, the casting unit has the chance to get storm bolt or chainlightning, then fire the added spell directly after and then the fired spell should be removed from the unit.... my problem is that it works fine with the storm bolt.. but when it comes to the chain lightning, then the game crashes and a FATAL ERROR pup-up... do any have an idea how to solve this ? thx in advance ~chemo |
| 02-08-2004, 12:14 AM | #2 |
It sounds like a trigger is involved... Post the trigger, it's undoubtedly an error in the trigger and not the Chain Lightning (unless the CL is really bizarre). |
| 02-08-2004, 03:12 AM | #3 |
k, here is the trigger: E: Unit - A unit Begins casting an ability C: (Ability being cast) Equal to Strike of the Mad Man (Unit-type of (Casting unit)) Equal to Demon Summoner Mad Man A: Set MadManUnit = (Casting unit) Set MadMan_Target = (Target unit of ability being cast) Unit - Set mana of (Casting unit) to ((Mana of (Casting unit)) - 125.00) Set MadMan_Integer = (Random integer number between 1 and 2) If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions MadMan_Integer Equal to 1 Then - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Strike of the Mad Man for (Casting unit)) Equal to 1 MadMan_Integer Equal to 1 Then - Actions Unit - Add MadMan_Chain_1 to MadManUnit Unit - Order MadManUnit to Orc Far Seer - Chain Lightning MadMan_Target Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Strike of the Mad Man for (Casting unit)) Equal to 2 MadMan_Integer Equal to 1 Then - Actions Unit - Add MadMan_Chain_2 to MadManUnit Unit - Order MadManUnit to Orc Far Seer - Chain Lightning MadMan_Target Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Strike of the Mad Man for (Casting unit)) Equal to 3 MadMan_Integer Equal to 1 Then - Actions Unit - Add MadMan_Chain_3 to MadManUnit Unit - Order MadManUnit to Orc Far Seer - Chain Lightning MadMan_Target Else - Actions Do nothing Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Strike of the Mad Man for (Casting unit)) Equal to 1 MadMan_Integer Equal to 2 Then - Actions Unit - Add MadMan_Storm_1 to MadManUnit Unit - Order MadManUnit to Human Mountain King - Storm Bolt MadMan_Target Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Strike of the Mad Man for (Casting unit)) Equal to 2 MadMan_Integer Equal to 2 Then - Actions Unit - Add MadMan_Storm_2 to MadManUnit Unit - Order MadManUnit to Human Mountain King - Storm Bolt MadMan_Target Else - Actions Do nothing If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Level of Strike of the Mad Man for (Casting unit)) Equal to 3 MadMan_Integer Equal to 2 Then - Actions Unit - Add MadMan_Storm_3 to MadManUnit Unit - Order MadManUnit to Human Mountain King - Storm Bolt MadMan_Target Else - Actions Do nothing well hope ya guys can solve this problem... cause i cant :/ |
| 02-08-2004, 03:16 AM | #4 |
You're probably removing the ability while the unit is casting it. Chain lightning is cast until all of the lightning bolts are gone... |
| 02-08-2004, 03:24 AM | #5 |
thx, u solved my problem :D |
