HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

i need help with this trig

01-03-2003, 03:05 AM#1
ChronOmega
i having problems :(
[IMG]
http://www.geekshelf.com/gallery/driffin/HeresHow/untitled.bmp
[/IMG]
if you want here the trigger in custom text



PHP Code:
function Trig_collect_items_Copy_Func010002 takes nothing returns boolean
    
return ( GetUnitTypeId(GetEnteringUnit()) == 'HC01' )
endfunction

function Trig_collect_items_Copy_Func011002 takes nothing returns boolean
    
return ( GetUnitTypeId(GetEnteringUnit()) == 'HC01' )
endfunction

function Trig_collect_items_Copy_Func012002 takes nothing returns boolean
    
return ( GetUnitTypeId(GetEnteringUnit()) == 'HC01' )
endfunction

function Trig_collect_items_Copy_Func013002 takes nothing returns boolean
    
return ( GetUnitTypeId(GetEnteringUnit()) == 'HC01' )
endfunction

function Trig_collect_items_Copy_Func014002 takes nothing returns boolean
    
return ( GetUnitTypeId(GetEnteringUnit()) == 'HC01' )
endfunction

function Trig_collect_items_Copy_Func015002 takes nothing returns boolean
    
return ( GetUnitTypeId(GetEnteringUnit()) == 'HC01' )
endfunction

function Trig_collect_items_Copy_Func016002 takes nothing returns boolean
    
return ( GetUnitTypeId(GetEnteringUnit()) == 'HC01' )
endfunction

function Trig_collect_items_Copy_Func017002 takes nothing returns boolean
    
return ( GetUnitTypeId(GetEnteringUnit()) == 'HC01' )
endfunction

function Trig_collect_items_Copy_Func018002 takes nothing returns boolean
    
return ( GetUnitTypeId(GetEnteringUnit()) == 'HC01' )
endfunction

function Trig_collect_items_Copy_Func019002 takes nothing returns boolean
    
return ( GetUnitTypeId(GetEnteringUnit()) == 'HC01' )
endfunction

function Trig_collect_items_Copy_Func020002 takes nothing returns boolean
    
return ( GetUnitTypeId(GetEnteringUnit()) == 'HC01' )
endfunction

function Trig_collect_items_Copy_Func001003001 takes nothing returns boolean
    
return ( udg_items[( GetForLoopIndexA() - )] == true )
endfunction

function Trig_collect_items_Copy_Func003001 takes nothing returns boolean
    
return ( udg_run == true )
endfunction

function Trig_collect_items_Copy_Func005001001 takes nothing returns boolean
    
return ( udg_randomnumber == )
endfunction

function Trig_collect_items_Copy_Func005001002 takes nothing returns boolean
    
return ( udg_randomnumber == )
endfunction

function Trig_collect_items_Copy_Func005001 takes nothing returns boolean
    
return GetBooleanOrTrig_collect_items_Copy_Func005001001(), Trig_collect_items_Copy_Func005001002() )
endfunction

function Trig_collect_items_Copy_Func006001001 takes nothing returns boolean
    
return ( udg_randomnumber == )
endfunction

function Trig_collect_items_Copy_Func006001002 takes nothing returns boolean
    
return ( udg_randomnumber == )
endfunction

function Trig_collect_items_Copy_Func006001 takes nothing returns boolean
    
return GetBooleanOrTrig_collect_items_Copy_Func006001001(), Trig_collect_items_Copy_Func006001002() )
endfunction

function Trig_collect_items_Copy_Func007001001 takes nothing returns boolean
    
return ( udg_randomnumber == )
endfunction

function Trig_collect_items_Copy_Func007001002 takes nothing returns boolean
    
return ( udg_randomnumber == )
endfunction

function Trig_collect_items_Copy_Func007001 takes nothing returns boolean
    
return GetBooleanOrTrig_collect_items_Copy_Func007001001(), Trig_collect_items_Copy_Func007001002() )
endfunction

function Trig_collect_items_Copy_Func008001001 takes nothing returns boolean
    
return ( udg_randomnumber == )
endfunction

function Trig_collect_items_Copy_Func008001002 takes nothing returns boolean
    
return ( udg_randomnumber == )
endfunction

function Trig_collect_items_Copy_Func008001 takes nothing returns boolean
    
return GetBooleanOrTrig_collect_items_Copy_Func008001001(), Trig_collect_items_Copy_Func008001002() )
endfunction

function Trig_collect_items_Copy_Func009001001 takes nothing returns boolean
    
return ( udg_randomnumber == )
endfunction

function Trig_collect_items_Copy_Func009001002 takes nothing returns boolean
    
return ( udg_randomnumber == )
endfunction

function Trig_collect_items_Copy_Func009001 takes nothing returns boolean
    
return GetBooleanOrTrig_collect_items_Copy_Func009001001(), Trig_collect_items_Copy_Func009001002() )
endfunction

function Trig_collect_items_Copy_Actions takes nothing returns nothing
    set bj_forLoopAIndex 
1
    set bj_forLoopAIndexEnd 
11
    loop
        exitwhen bj_forLoopAIndex 
bj_forLoopAIndexEnd
        
if ( Trig_collect_items_Copy_Func001003001() ) then
            set udg_run 
false
        
else
            
set udg_run true
        
endif
        
set bj_forLoopAIndex bj_forLoopAIndex 1
    endloop
    set bj_forLoopBIndex 
1
    set bj_forLoopBIndexEnd 
CountPlayersInForceBJ(GetPlayersByMapControl(MAP_CONTROL_USER))
    
loop
        exitwhen bj_forLoopBIndex 
bj_forLoopBIndexEnd
        call TriggerSleepAction
0.01 )
        
set bj_forLoopBIndex bj_forLoopBIndex 1
    endloop
    
if ( Trig_collect_items_Copy_Func003001() ) then
        call DoNothing
(  )
    else
        return
    endif
    
set udg_randomnumber GetRandomInt(18)
    if ( 
Trig_collect_items_Copy_Func005001() ) then
        call UnitAddItemToSlotById
GetTriggerUnit(), 'pspd')
    else
        
call DoNothing(  )
    endif
    if ( 
Trig_collect_items_Copy_Func006001() ) then
        call UnitAddItemToSlotById
GetTriggerUnit(), 'gobm')
    else
        
call DoNothing(  )
    endif
    if ( 
Trig_collect_items_Copy_Func007001() ) then
        call UnitAddItemToSlotById
GetTriggerUnit(), 'flag')
    else
        
call DoNothing(  )
    endif
    if ( 
Trig_collect_items_Copy_Func008001() ) then
        call UnitAddItemToSlotById
GetTriggerUnit(), 'pnvu')
    else
        
call DoNothing(  )
    endif
    if ( 
Trig_collect_items_Copy_Func009001() ) then
        call DoNothing
(  )
    else
        
call DoNothing(  )
    endif
endfunction

//===========================================================================
function InitTrig_collect_items_Copy takes nothing returns nothing
    set gg_trg_collect_items_Copy 
CreateTrigger(  )
    
call TriggerRegisterEnterRegiongg_trg_collect_items_Copygg_rct_1Condition(function Trig_collect_items_Copy_Func010002) )
    
call TriggerRegisterEnterRegiongg_trg_collect_items_Copygg_rct_2Condition(function Trig_collect_items_Copy_Func011002) )
    
call TriggerRegisterEnterRegiongg_trg_collect_items_Copygg_rct_3Condition(function Trig_collect_items_Copy_Func012002) )
    
call TriggerRegisterEnterRegiongg_trg_collect_items_Copygg_rct_5Condition(function Trig_collect_items_Copy_Func013002) )
    
call TriggerRegisterEnterRegiongg_trg_collect_items_Copygg_rct_4Condition(function Trig_collect_items_Copy_Func014002) )
    
call TriggerRegisterEnterRegiongg_trg_collect_items_Copygg_rct_6Condition(function Trig_collect_items_Copy_Func015002) )
    
call TriggerRegisterEnterRegiongg_trg_collect_items_Copygg_rct_7Condition(function Trig_collect_items_Copy_Func016002) )
    
call TriggerRegisterEnterRegiongg_trg_collect_items_Copygg_rct_8Condition(function Trig_collect_items_Copy_Func017002) )
    
call TriggerRegisterEnterRegiongg_trg_collect_items_Copygg_rct_9Condition(function Trig_collect_items_Copy_Func018002) )
    
call TriggerRegisterEnterRegiongg_trg_collect_items_Copygg_rct_10Condition(function Trig_collect_items_Copy_Func019002) )
    
call TriggerRegisterEnterRegiongg_trg_collect_items_Copygg_rct_11Condition(function Trig_collect_items_Copy_Func020002) )
    
call TriggerAddActiongg_trg_collect_items_Copy, function Trig_collect_items_Copy_Actions )
endfunction 

edit What wheres my Image?
oh well just right click, go to properties copy that images URL and got to that URL directly
01-03-2003, 04:10 AM#2
sameng
The image is broken.....
01-03-2003, 06:50 AM#3
DemonicSoul
http://www.geekshelf.com/gallery/dri...w/untitled.bmp

thats the url for it.... anyways

well first, you dont need a comparison in the event for any of those, you can just use a single condition, i have no idea whats being tried with those integer actions, and you must refer to the unit as entering unit, not triggering unit
01-03-2003, 08:33 PM#4
ChronOmega
ya well i figured it out just changed the conditionalthings to regular enters

btw way all those integer actions are to give a random item to the entering racer