Computer Difficulty problem

ZelNaga

New Member
Reaction score
5
Ok so I've got a small problem, I have this trigger that if a computer is set to easy, normal, or insane it activates corresponding triggers that gives them periodic upgrades.
(So for an easy computer it gives upgrades say every 5 minutes, for normal it does every 3 minutes, and insane lets say 1.5 minutes.)

My problem is that it seems to always be set to the same difficulty or something. I have a 3 computer one on each difficulty and they always upgrade at the same time like it doesn't even bother to look at this trigger....Help? =D

Code:
Player 1 Computer
    Events
        Map initialization
    Conditions
        (Player 1 (Red) controller) Equal to Computer
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Difficulty level) Equal to Easy
            Then - Actions
                Player Group - Add Player 1 (Red) to Player_1_Easy
                Trigger - Turn on Player 1 Easy Upgrades <gen>
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Difficulty level) Equal to Normal
            Then - Actions
                Player Group - Add Player 1 (Red) to Player_1_Normal
                Trigger - Turn on Player 1 Normal Upgrades <gen>
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Difficulty level) Equal to Hard
            Then - Actions
                Player Group - Add Player 1 (Red) to Player_1_Insane
                Trigger - Turn on Player 1 Insane Upgrades <gen>
            Else - Actions
        Trigger - Turn on Player 1 Computer 1 <gen>
        Unit - Create 1 Base Tower for Player 1 (Red) at (Player 1 (Red) start location) facing Default building facing degrees
        Wait 500.00 seconds
        Trigger - Turn on Player 1 Computer 2 <gen>
        Wait 500.00 seconds
        Trigger - Turn on Player 1 Computer 3 <gen>
 

Emu.Man00

New Member
Reaction score
41
I assume that when its called it takes a player number, e.g. 1 = red, and returns the difficulty of the computer for that player. You should ask in jass section if no1 finds a solution in gui, cause i don't know how to use 'aidifficulty' :3
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top