• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Segfault problem

Status
Not open for further replies.
Level 11
Joined
Mar 31, 2009
Messages
732
I'm having trouble with a segfault at map initialisation, and have narrowed it down to this chunk of code:

  • Actions
    • For each (Integer A) from 0 to 11, do (Actions)
      • Loop - Actions
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • ((Player((Integer A))) slot status) Equal to Is playing
            • numLosses[(Integer A)] Greater than or equal to NUMCAPTURESTOLOSE
          • Then - Actions
            • Game - Defeat (Player((Integer A))) with the message: Defeat!
          • Else - Actions
Can anyone tell me what I've done wrong? I'm guessing its to do with the player indicies, but... what should they be? 1 to 12?

Edit: solved by making the loop "1 to Game - Number of players". No delete button for this thread.
 
Last edited:
Status
Not open for further replies.
Top