AdamGriffith
You can change this now in User CP.
- Reaction score
- 69
Hello,
I was just wondering why this function does not work.
(All the BJDebugMsg's are displayed.)
I was just wondering why this function does not work.
(All the BJDebugMsg's are displayed.)
JASS:
function Trig_AI_Actions takes nothing returns nothing
local integer i = GetPlayerState(Player(1), PLAYER_STATE_RESOURCE_GOLD)
call BJDebugMsg("Running.")
call BJDebugMsg(I2S(i))
if i > 50000 then
call IssueImmediateOrderById(gg_unit_h01A_0015, 039;n00D039;)
elseif i > 30000 then
call IssueImmediateOrderById(gg_unit_h01A_0015, 039;u002039;)
elseif i > 20000 then
call IssueImmediateOrderById(gg_unit_h01A_0015, 039;n009039;)
elseif i > 15000 then
call IssueImmediateOrderById(gg_unit_h01A_0015, 039;n004039;)
elseif i > 12000 then
call IssueImmediateOrderById(gg_unit_h01A_0015, 039;n006039;)
elseif i > 10000 then
call IssueImmediateOrderById(gg_unit_h01A_0015, 039;n00B039;)
elseif i > 7500 then
call IssueImmediateOrderById(gg_unit_h01A_0015, 039;n003039;)
elseif i > 4000 then
call IssueImmediateOrderById(gg_unit_h01A_0015, 039;n002039;)
elseif i > 2000 then
call IssueImmediateOrderById(gg_unit_h01A_0015, 039;o000039;)
elseif i > 1000 then
call IssueImmediateOrderById(gg_unit_h01A_0015, 039;h01H039;)
elseif i > 750 then
call IssueImmediateOrderById(gg_unit_h00T_0014, 039;h01B039;)
elseif i > 350 then
call IssueImmediateOrderById(gg_unit_h00T_0014, 039;n007039;)
elseif i > 200 then
call IssueImmediateOrderById(gg_unit_h00T_0014, 039;u001039;)
elseif i > 160 then
call IssueImmediateOrderById(gg_unit_h00T_0014, 039;n00A039;)
elseif i > 100 then
call IssueImmediateOrderById(gg_unit_h00T_0014, 039;n000039;)
elseif i > 75 then
call IssueImmediateOrderById(gg_unit_h00T_0014, 039;h00U039;)
elseif i > 60 then
call IssueImmediateOrderById(gg_unit_h00T_0014, 039;n005039;)
elseif i > 40 then
call IssueImmediateOrderById(gg_unit_h00T_0014, 039;u000039;)
elseif i > 22 then
call IssueImmediateOrderById(gg_unit_h00T_0014, 039;u003039;)
elseif i > 10 then
call IssueImmediateOrderById(gg_unit_h00T_0014, 039;n00C039;)
elseif i > 5 then
call IssueImmediateOrderById(gg_unit_h00T_0014, 039;n00E039;)
endif
call BJDebugMsg("Completed.")
endfunction
//===========================================================================
function InitTrig_AI takes nothing returns nothing
set gg_trg_AI = CreateTrigger()
call TriggerRegisterTimerEvent(gg_trg_AI, 1.00, true)
call TriggerAddAction(gg_trg_AI, function Trig_AI_Actions)
endfunction