HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Whats Wrong?

07-28-2004, 04:57 AM#1
Ninja73
Can some1 help me find the problem in this trigger:
_________________________________________________________________

function Trig_KogaJass_Conditions takes nothing returns boolean
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(9) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(10) ) ) then
return false
endif
if ( not ( GetOwningPlayer(GetEnteringUnit()) != Player(11) ) ) then
return false
endif
return true
endfunction

function Trig_Test_Actions takes nothing returns nothing
call AddSpecialEffectTargetUnitBJ( "overhead", GetTriggerUnit(),
"Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl" )
call DestroyEffectBJ( GetLastCreatedEffectBJ() )
call KillUnit( GetTriggerUnit() )
end function

//========================================================
function InitTrig_KogaJass takes nothing returns nothing
set gg_trg_KogaJass = CreateTrigger( )

call TriggerRegisterEnterRectSimple( gg_trg_KogaJass, gg_rct_Region_001)
call TriggerRegisterEnterRectSimple( gg_trg_KogaJass, gg_rct_Region_002)
call TriggerRegisterEnterRectSimple( gg_trg_KogaJass, gg_rct_Region_003)
call TriggerRegisterEnterRectSimple( gg_trg_KogaJass, gg_rct_Region_004)
call TriggerRegisterEnterRectSimple( gg_trg_KogaJass, gg_rct_Region_005)

call TriggerAddCondition( gg_trg_KogaJass, Condition( function Trig_KogaJass_Conditions ) )
call TriggerAddAction( gg_trg_KogaJass, function Trig_KogaJass_Actions )
endfunction
07-31-2004, 07:43 AM#2
PitzerMike
Ok, as I see it this script does the following:

If a unit owned by player 1,2,3,4,5,6,7,8 or 9 enters a region it will be instantly killed.
The special effect won't appear of course, because you destroy the effect direclty after having created it.
Can you tell us what your problem is?
08-04-2004, 05:14 AM#3
Ninja73
Quote:
Originally Posted by PitzerMike
Ok, as I see it this script does the following:

If a unit owned by player 1,2,3,4,5,6,7,8 or 9 enters a region it will be instantly killed.
The special effect won't appear of course, because you destroy the effect direclty after having created it.
Can you tell us what your problem is?

Actually, the special effect will b created and shown even if u destroy it right away, its for a maze so i need it so when they walk off they die, but anyway, i finished my program. I make alot of mazes so doing thousands of events - unit enters region then kill is a pain, so i made a program that u just enter the start and end region numbers, then u can also add special effects with it, name the triggers, make certin players not die when entering regions (good for computers) and a few more little things. Im pretty sure it works perfectly, try it out and tell me what u think. (it comes with step by step instructions, READ THEM!)
08-05-2004, 10:21 PM#4
GeneralStonewal
So you don't have a problem then?
08-06-2004, 01:26 AM#5
Ninja73
not anymore, i got it.