HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Problem Here

09-24-2004, 09:04 PM#1
Arkidas
Why doesnt this trigger work? At least I know its the condition because the text doesnt appear. Tell me if you don't understand what this should do.(I am sure the other team did have more lumb er that the other but nothing happened)

First of here is the trigger that sets the current bonus points(lumber) of the players every 2seconds.

Code:
Team Bonus Points
    Events
        Time - Every 2.00 seconds of game time
    Conditions
    Actions
        Set Nigthelfbonuspoints = (Player 1 (Red) Current lumber)
        Set Undeadbonuspoints = (Player 7 (Green) Current lumber)

And here's the trigger to run those bonus spawns.

Code:
Bonus growth
    Events
        Time - Every 30.00 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Real(Nigthelfbonuspoints)) Greater than (Real(Undeadbonuspoints))
            Then - Actions
                Game - Display to (All players) the text: |c0000ddddThe Night...
                Trigger - Run NE SPAWN 1 Copy <gen> (ignoring conditions)
                Trigger - Run NE SPAWN 2 Copy <gen> (ignoring conditions)
                Trigger - Run NE SPAWN 3 Copy <gen> (ignoring conditions)
                Trigger - Run NE SPAWN 4 Copy <gen> (ignoring conditions)
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Real(Nigthelfbonuspoints)) Greater than (Real(Undeadbonuspoints))
                    Then - Actions
                        Game - Display to (All players) the text: |c0000ddddThe Undea...
                        Trigger - Run UD SPAWN MEN 1 Copy <gen> (ignoring conditions)
                        Trigger - Run UD SPAWN MEN 2 Copy <gen> (ignoring conditions)
                        Trigger - Run UD SPAWN MEN 3 Copy <gen> (ignoring conditions)
                        Trigger - Run UD SPAWN MEN  4 Copy <gen> (ignoring conditions)
                    Else - Actions
                        Do nothing
09-24-2004, 09:13 PM#2
Moose-Head_Man
not sure, but under the first if, then, statement: there is a thing that says real(nightelflumber) or w/e ... i dont think lumber is a real, try making the condition integer based. and the variables integer based
09-24-2004, 09:32 PM#3
Dead-Inside
Also you have the same condition for both checks... (NE greater then UD and then the same stuff all around again, which I recon is severly wrong :P)
09-24-2004, 09:49 PM#4
Arkidas
I changed this, what si wrong now?

Code:
Bonus growth
    Events
        Time - Every 30.00 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Integer((Real((Player 1 (Red) Current lumber))))) Greater than (Integer((Real((Player 7 (Green) Current lumber)))))
            Then - Actions
                Game - Display to (All players) the text: |c0000ddddThe Night...
                Trigger - Run NE SPAWN 1 Copy <gen> (ignoring conditions)
                Trigger - Run NE SPAWN 2 Copy <gen> (ignoring conditions)
                Trigger - Run NE SPAWN 3 Copy <gen> (ignoring conditions)
                Trigger - Run NE SPAWN 4 Copy <gen> (ignoring conditions)
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Integer((Real((Player 7 (Green) Current lumber))))) Greater than (Integer((Real((Player 1 (Red) Current lumber)))))
                    Then - Actions
                        Game - Display to (All players) the text: |c0000ddddThe Undea...
                        Trigger - Run UD SPAWN MEN 1 Copy <gen> (ignoring conditions)
                        Trigger - Run UD SPAWN MEN 2 Copy <gen> (ignoring conditions)
                        Trigger - Run UD SPAWN MEN 3 Copy <gen> (ignoring conditions)
                        Trigger - Run UD SPAWN MEN  4 Copy <gen> (ignoring conditions)
                    Else - Actions
                        Do nothing
09-24-2004, 11:41 PM#5
Arohk
try this,
Code:
Bonus growth
    Events
        Time - Every 30.00 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Integer((Real((Player 1 (Red) Current lumber))))) Greater than (Integer((Real((Player 7 (Green) Current lumber)))))
            Then - Actions
                Game - Display to (All players) the text: |c0000ddddThe Night...
                Trigger - Run NE SPAWN 1 Copy <gen> (ignoring conditions)
                Trigger - Run NE SPAWN 2 Copy <gen> (ignoring conditions)
                Trigger - Run NE SPAWN 3 Copy <gen> (ignoring conditions)
                Trigger - Run NE SPAWN 4 Copy <gen> (ignoring conditions)
            Else - Actions
                Game - Display to (All players) the text: |c0000ddddThe Undea...
                        Trigger - Run UD SPAWN MEN 1 Copy <gen> (ignoring conditions)
                        Trigger - Run UD SPAWN MEN 2 Copy <gen> (ignoring conditions)
                        Trigger - Run UD SPAWN MEN 3 Copy <gen> (ignoring conditions)
                        Trigger - Run UD SPAWN MEN  4 Copy <gen> (ignoring conditions)
                   

the first trigger that run all 2 seconds to store lumber in variables is unnecessary,
you also run in trouble if both players have the same amount of lumber
09-26-2004, 02:37 AM#6
Rafael Br
Quote:
Originally Posted by Arkidas
(Integer((Real((Player 1 (Red) Current lumber))))) Greater than (Integer((Real((Player 7 (Green) Current lumber)))))
Wy making all that conversions, just do:
(Player 1 (Red) Current lumber) Greater than (Player 7 (Green) Current lumber)
09-26-2004, 08:51 AM#7
Dead-Inside
Quote:
Originally Posted by Rafael Br
Wy making all that conversions, just do:
(Player 1 (Red) Current lumber) Greater than (Player 7 (Green) Current lumber)

Doesn't really matter but w/e.