- Joined
- May 1, 2008
- Messages
- 1,605
Moin moin =)
What's up everyone, I wasn't active in these forums for a long time now. Somehow I got a bit back into the old Wc3 Editor stuff, but I already have problems I can't explain. For example this:
A very simple trigger, tho it doesn't work. The name of the sold unit isn't displayed at all. I hope someone can say what's going on here,, because to be honest, I don't see the mistake by now...
Greetings and Peace
- Dr. Boom
Edit:
- I still use the Jass NewGen Pack v5d and I'll refuse to take the newest one (but this shouldn't be the problem)
- Else JassHelper and Wc3 itself are up-to-date.
Edit 2:
- When I recode the same function with GUI, it works without any problems
What's up everyone, I wasn't active in these forums for a long time now. Somehow I got a bit back into the old Wc3 Editor stuff, but I already have problems I can't explain. For example this:
JASS:
function HSelect_Actions takes nothing returns nothing
call BJDebugMsg(GetUnitName(GetSoldUnit()))
endfunction
function InitTrig_HSelect takes nothing returns nothing
local integer i = 0
set gg_trg_HSelect = CreateTrigger()
loop
exitwhen i == 13
call TriggerRegisterPlayerUnitEvent(gg_trg_HSelect,Player(i),EVENT_PLAYER_UNIT_SELL,null)
call BJDebugMsg("Init: " + I2S(i))
set i = i + 1
endloop
call TriggerAddAction(gg_trg_HSelect,function HSelect_Actions)
call BJDebugMsg("Action was added")
endfunction
Greetings and Peace
- Dr. Boom
Edit:
- I still use the Jass NewGen Pack v5d and I'll refuse to take the newest one (but this shouldn't be the problem)
- Else JassHelper and Wc3 itself are up-to-date.
Edit 2:
- When I recode the same function with GUI, it works without any problems