| 11-14-2004, 07:16 PM | #1 |
Has anyone ever found out that the game crashes if you select a unit? I have a trigger that deselects the unit if you select it and a variable is 0, but whenever i select it I get a fatal error. Any ideas? |
| 11-14-2004, 07:50 PM | #2 |
Perhaps you could give us the whole trigger? You can copy triggers from the world editor by right-clicking on the trigger title and selecting "copy as text". |
| 11-14-2004, 07:56 PM | #3 |
KK will do Code:
Selectable
Events
Player - Player 1 (Red) Selects a unit
Player - Player 2 (Blue) Selects a unit
Player - Player 3 (Teal) Selects a unit
Player - Player 4 (Purple) Selects a unit
Player - Player 5 (Yellow) Selects a unit
Player - Player 6 (Orange) Selects a unit
Player - Player 7 (Green) Selects a unit
Player - Player 8 (Pink) Selects a unit
Player - Player 9 (Gray) Selects a unit
Player - Player 10 (Light Blue) Selects a unit
Conditions
Selectable[((Player number of (Triggering player)) - 1)] Equal to 0
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Attack Magic
(Unit-type of (Triggering unit)) Equal to Defense Magic
(Unit-type of (Triggering unit)) Equal to Limits
(Unit-type of (Triggering unit)) Equal to Summons
Actions
Selection - Remove (Triggering unit) from selection for (Triggering player) |
| 11-19-2004, 07:25 PM | #4 |
Can noone help? it worked before i implimented vexorains spell triggers, but even when i removed that, the game crashes, and all of the versions of the map do that. But i have had another thought, is it possible to remove 'ALOC' from a unit (locust)? this would make it a bit easier. Thx |
| 11-19-2004, 09:28 PM | #5 |
I have no idea what you're trying to do, but I just thought I would make sure that your Selectable array is 0 based. You use this line: Selectable[((Player number of (Triggering player)) - 1)] Equal to 0 Is it possible that one of the values isn't initialized that you are trying to get to? IE, if you fill the Selectable array using their player number, then this would cause an error with Player 1 because Selectable[0] wouldn't have a value yet. This probably isn't the problem, but I thought I'd suggest it anyway. An easy way to find out would be to temporarily remove that line and see if you still have problems. If you do, then it's probably not that line. If you don't, it's something to do with that line, and most likely because you're trying to access a value in the Selectable array that doesn't exist. |
| 11-21-2004, 04:12 PM | #6 | |
Quote:
im pretty sure that thats not the case, but ill check. Thx for the tips. |
