Chaos_Knight
New Member
- Reaction score
- 39
1st:Im just started off with jass and tested a Ice Skating. lol. I think its beyonde(far) from my abilitys. This one saves and no errors at all.. But it wont work.. check it.
2nd: I want it to enable when red types the message -medium
It doesnt effect. It is on initally off and i use the trigger Strange..
JASS:
function Trig_DanceFast_Actions takes nothing returns nothing
local group g1
local group g2
local location p
local location p2
local unit u
set bj_forLoopAIndex = 1
set bj_forLoopAIndexEnd = 5
loop
exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
set g1 = GetUnitsOfPlayerAndTypeId(ConvertedPlayer(GetForLoopIndexA()), 039;Hpal039;)
set u = GroupPickRandomUnit(g1)
set p = GetUnitLoc(u)
if ( IsUnitAliveBJ(u) == true ) then
if ( GetTerrainTypeBJ(p) == 039;Iice039; ) then
set p2 = PolarProjectionBJ(p,11, GetUnitFacing(u))
call SetUnitPositionLoc( u, p2 )
call RemoveLocation( p2 )
endif
endif
call RemoveLocation( p )
set bj_forLoopAIndex = bj_forLoopAIndex + 1
endloop
endfunction
function InitTrig_DanceFast takes nothing returns nothing
set gg_trg_DanceFast = CreateTrigger( )
call TriggerRegisterTimerEventPeriodic( gg_trg_DanceFast, 0.02 )
call TriggerAddAction( gg_trg_DanceFast, function Trig_DanceFast_Actions )
endfunction
2nd: I want it to enable when red types the message -medium
It doesnt effect. It is on initally off and i use the trigger
Trigger:
- Trigger - Turn on DanceDa