function MultiboardDisplayForPlayer takes integer playerid, multiboard mb, boolean flag returns nothing
local player cplayer = ConvertedPlayer(playerid)
if( cplayer == GetLocalPlayer() ) then
call MultiboardDisplay( mb, flag )
endif
endfunction
Name | Type | is_array | initial_value |
AccusationButtons | button | Yes | |
AccusationDialog | dialog | No | |
AccusedPlayer | integer | No | |
Assemble | boolean | No | |
CamVisiblity | fogmodifier | Yes | |
DetectiveBoard | multiboard | No | |
DetectiveIntro | unit | No | |
Ghosts | unit | Yes | |
GuardGroup | group | No | |
HintPlayer | player | Yes | |
HumanFormDialog | dialog | No | |
HumanFormDialogButtons | button | Yes | |
InitMurder | integer | No | |
initMurderPlayer | player | No | |
IntroRunning | boolean | No | |
isGhost | boolean | Yes | |
LadyFlattery | unit | No | |
LegalPoint | location | No | |
MurderWeapon | item | No | |
nrPropInvestigated | integer | No | |
OriginalNames | string | Yes | |
PercentageButtons | button | Yes | |
PercentDialog | dialog | No | |
PlayerItemRooms | integer | Yes | |
PlayerNameButtons | button | Yes | |
PlayerNameDialog | dialog | No | |
prop_EyeColors | string | Yes | |
prop_HairColor | string | Yes | |
prop_Height | string | Yes | |
prop_Sex | string | Yes | |
prop_Strength | string | Yes | |
QuestionDialog | dialog | No | |
QuestionedUnit | unit | No | |
QuestionsButtons | button | Yes | |
rndInt | integer | No | |
Rooms | rect | Yes |
function Trig_AlarmGuard_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 'A005' ) ) then
return false
endif
if ( not ( GetUnitTypeId(GetSpellTargetUnit()) == 'hfoo' ) ) then
return false
endif
return true
endfunction
function Trig_AlarmGuard_Actions takes nothing returns nothing
local unit Guard
set Guard = GetSpellTargetUnit()
call SetUnitOwner( GetSpellTargetUnit(), Player(PLAYER_NEUTRAL_AGGRESSIVE), false )
call PolledWait( 30.00 )
call SetUnitOwner( Guard, Player(PLAYER_NEUTRAL_PASSIVE), false )
endfunction
//===========================================================================
function InitTrig_AlarmGuard takes nothing returns nothing
set gg_trg_AlarmGuard = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_AlarmGuard, EVENT_PLAYER_UNIT_SPELL_EFFECT )
call TriggerAddCondition( gg_trg_AlarmGuard, Condition( function Trig_AlarmGuard_Conditions ) )
call TriggerAddAction( gg_trg_AlarmGuard, function Trig_AlarmGuard_Actions )
endfunction