| 08-19-2004, 05:11 PM | #1 |
for some reason... when i run this action: If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions missiletype[(Integer A)] Equal to 6 Then - Actions Unit Group - Pick every unit in (Units in TransferWithr[(Integer A)] owned by Player 12 (Brown)) and do (Actions) Loop - Actions Special Effect - Create a special effect at (Position of (Picked unit)) using Units**Demon**Infernal**InfernalBirth.mdl Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 400.00) Set HasFired[(Integer A)] = True Set missilebought[(((Integer A) x 10) + 6)] = (missilebought[(((Integer A) x 10) + 6)] - 1) Else - Actions Do nothing then run this trigger SeeDead Events Conditions Actions For each (Integer A) from 1 to 8, do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Life of Unit[(Integer A)]) Greater than 0.00 Then - Actions Floating Text - Create floating text that reads (HP: + (Substring((String((Life of Unit[(Integer A)]), 2, 0)), 1, ((Length of (String((Life of Unit[(Integer A)]), 2, 0))) - 2)))) at ((Position of Unit[(Integer A)]) offset by (0.00, -32.00)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency Set HealthText[(Integer A)] = (Last created floating text) Set SHP[(Integer A)] = (Life of Unit[(Integer A)]) Set FireAngel[(Integer A)] = (Facing of Unit[(Integer A)]) Else - Actions Floating Text - Create floating text that reads Dead at ((Position of Unit[(Integer A)]) offset by (0.00, -32.00)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency Set HealthText[(Integer A)] = (Last created floating text) Set Alive[(Integer A)] = False Wait 3.00 seconds For each (Integer A) from 1 to 8, do (Actions) Loop - Actions Trigger - Turn on Buy <gen> Unit Group - Pick every unit in (Units owned by Player 12 (Brown) of type SheepType[(Integer A)]) and do (Unit - Remove (Picked unit) from the game) Unit Group - Pick every unit in (Units in tanks <gen> matching (((Matching unit) belongs to an ally of Player 11 (Dark Green)) Equal to False)) and do (Unit - Remove (Picked unit) from the game) Floating Text - Destroy PowerText[(Integer A)] Floating Text - Destroy HealthText[(Integer A)] Trigger - Run SeeAlive <gen> (ignoring conditions) warcraft3 closes with a FATAL ERROR.. and i have no idea why., replies are greatly appreciated |
| 08-19-2004, 06:14 PM | #2 |
Y are u using integer a in the first trigger when there is no loop. Integer A only last for one trigger, Integer A is a local variable and thats y its crashing. U need a loop if ur gonna use integer a. |
| 08-19-2004, 07:18 PM | #3 |
read further in the beginning... that passage was only 1 action that trigger does consist of a for/next loop but the trigger itself is humungous... i only pasted that action because thats the one causing the memory failure. |
| 08-19-2004, 08:08 PM | #4 |
I think I know the source to all the worlds computer issues... Are you on a Macintosh? |
