• 0

    posted a message on [SOLVED] Some help with the Hyperion map?

    @Eimtr: Go

    Well, atleast I would be interested if you release it, I have no idea how you made it :)

    Posted in: Triggers
  • 0

    posted a message on Trigger Problem

    @BasharTeg: Go

    I know, I did it whit the error messages :P

    Anyways here is the Get ID function:

            General - For each integer ID from 1 to 15 with increment 1, do (Actions)
                Actions
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Unit is in Squadrons[(Triggering player)][ID]) == True
                        Then
                            General - Return ID
                            Variable - Set NotFound = False
                            Debug - Display "SquadronID Found" as debug output using Type 1, and Do display it in the game window
                            General - Skip remaining actions
                        Else
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    NotFound == True
                Then
                    General - Return 0
                    Variable - Set NotFound = False
                    Debug - Display "Warning: Squadron ID Could not be f..." as debug output using Type 1, and Do display it in the game window
                Else
            General - Return 0
    

    And here is the Selection trigger:

    SelectSquadron
        Events
            Unit Selection - Any Unit is Selected by player Any Player
        Local Variables
        Conditions
        Actions
            Unit Selection - Select Squadrons[(Triggering player)][(Get ID of Squadron the (Triggering unit)is in!)] for player (Triggering player)
            Debug - Display "Selecting Squadron... " as debug output using Type 1, and Do display it in the game window
    

    I know it saves the variable(displays through a debug message) but I never get this message: Debug - Display "SquadronID Found" as debug output using Type 1, and Do display it in the game window So something there must be wrong :(

    EDIT: I fixed the error, but it still dosent work :(

    Posted in: Triggers
  • 0

    posted a message on Trigger Problem

    @BasharTeg: Go

    Here it is

    Posted in: Triggers
  • 0

    posted a message on Trigger Problem
    Quote from BasharTeg: Go

    I didn't look at it too much, but this is definitely a problem:

            General - For each integer ID from 1 to 15 with increment 1, do (Actions)
                Actions
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Unit is in Squadrons[(Triggering player)][(Picked integer)]) == True
                        Then
                            General - Return (Picked integer)
                            Variable - Set NotFound = False
                            Debug - Display "SquadronID Found" as debug output using Type 1, and Do display it in the game window
                            General - Skip remaining actions
                        Else
    

    You're using a For Each loop and the Picked Integer function. The Picked Integer function only works when you use a Pick Each Integer loop. Change Picked Integer to the variable "ID".

    @BasharTeg: Go

    I made the quick little fix and I get these warnings:

    [6/15/2012 8:30:53 AM] Warning: Empty trigger element reference removed from Function Call 'If Then Else'
    [6/15/2012 8:30:53 AM] Warning: Orphaned trigger sub-function call removed: Function Call 'For Each Integer' (Function Call, 5D031359, Lib: 0)
    [6/15/2012 8:30:53 AM] Warning: Invalid trigger element reference removed from Function Call 'Return' (Parameter Value, EDFD975B, Lib: 0)
    [6/15/2012 8:30:53 AM] Warning: Invalid sub-function type reference removed from Function Call 'Return' (Sub-Function Type, 00000004, Lib: Ntve)
    [6/15/2012 8:30:53 AM] Warning: Invalid trigger element reference removed from Function Call 'Unit In Unit Group' (Parameter Value, 5F6813E6, Lib: 0)
    [6/15/2012 8:30:53 AM] Warning: Invalid trigger element reference removed from Function Call 'Unit In Unit Group' (Parameter Value, F4D369DC, Lib: 0)
    
    Posted in: Triggers
  • 0

    posted a message on Trigger Problem

    Hey! I got a problem/question!

    Im making a game that uses Squadrons. A squadron is a group of units. When the units are created, I save them in a unit group array called squadrons. It's a 2 dimensional array, first array holds the player, second holds the uniqe ID of the squadron, 15 is max. But when I'm trying to acces one of these squadron through a Pick each Integer it dosent work. It says trough a debug message that it works, but it dosent select the squadron! Link Removed: http://www.mediafire.com/download.php?6bszrh7c5r9r671

    Posted in: Triggers
  • 0

    posted a message on [Request] SC2Mapster client

    @Taintedwisp: Go

    Yeah! You gotta have that!

    Posted in: Third Party Tools
  • To post a comment, please or register a new account.