HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

why doesnt this work?

10-11-2003, 05:16 PM#1
ChronOmega
Code:
Move
    Events
        Player - Player 1 (Red) skips a cinematic sequence
    Conditions
    Actions
        Trigger - Turn off (This trigger)
        Set position = (position + 1)
        For each (Integer A) from 1 to 3, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        position Greater than or equal to 7
                    Then - Actions
                        Set position = 0
                    Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (board3 <gen> contains Peasant 0000 <gen>) Equal to False
                    Then - Actions
                        Unit - Order Peasant 0000 <gen> to Move To (Center of board[position])
                    Else - Actions
                        Dialog - Show dialog[0] for Player 1 (Red)
                Wait until ((board[position] contains (Triggering unit)) Equal to True), checking every 0.10 seconds
        Trigger - Turn on (This trigger)

what this is suppoed to do is that when you press Escape your guy will advance 3 squares and if hes on a certain square you will have a dialog (all this already works it just the repeatedly doing thing that doesn't)
10-12-2003, 03:47 AM#2
ChronOmega
why isnt any one replying?
did i not give enough info?
can i not do it?
are you idiots?
10-12-2003, 05:33 AM#3
Ligature
Is the dialog the part that isn't working? Because I've heard you *must* have a "change title of dialog" for *every* "show dialog for player." So maybe if you put a "change title etc." in right before you "Show dialog[0] for player 1 (red)?"

Good luck.
10-12-2003, 05:17 PM#4
ChronOmega
actully before i tried to do looping i did only single movement and the dialog worked just fine evn wwith out me changing the title

basically what its doing is moving one square then i dont think it ever gets turned back on causethen i cant activate it.

think this mught be it?
Code:
Wait until ((board[position] contains (Triggering unit)) Equal to True), checking every 0.10 seconds
10-12-2003, 05:34 PM#5
LAlakers126
the problem with your trigger is that your first action is "turn off this trigger". This will disable all actions that follow.
10-12-2003, 07:55 PM#6
Illithid
turn off trigger just shuts off the event of the trigger from firing again, it doesn't stop a trigger already being executed from working. The only thing I can possilby see that is wrong, is you have a region there refered to as board3 and you are using a region array variable board[index] in the trigger, have you set all your regions to that variable array? ie it shouldn't be board3 but board[3]
10-12-2003, 08:14 PM#7
ChronOmega
i have all my variables set up in inialazation (i cant spell that) but ill check if that fixes it

PS
board[1] = board1
board[2] = board2
ect.

EDIT i think i may have fpund my problem, but i dont know how to fix it, i think its this action right here
Code:
Wait until ((board[position] contains (Triggering unit)) Equal to True), checking every 0.10 seconds

because even without the turn on/off actions it doesnt work, ill do some more trouble shooting

EDIT2: wow im an idiot, i was using triggering unit instead of the unit i wanted doh, oh well thanks for you help any ways guys