Fuinur
05-11-2008, 07:19 PM
Soo i was looking through enfos mt 185b triggers with jasscraft but its all greek to me heh im trying to figure out how these 2 triggers work/how to get them in the actual game
if(D8V())then
call CreateNUnitsAtLoc(1,'E00Y',GetTriggerPlayer(),GetR ectCenter(K[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]),270.)
call ConditionalTriggerExecute(EO)
call DisplayTimedTextToForce(KG(GetTriggerPlayer()),20. ,"You're repicking too much, if you like to play as a |cffffcc00Child|r, from now on you'll play as one!")
else
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),Ge tPlayerStartLocationLoc(Player(0)),.3)
call CreateNUnitsAtLoc(1,'ushd',GetTriggerPlayer(),GetP layerStartLocationLoc(GetTriggerPlayer()),bj_UNIT_ FACING)
i've did a search for d8v came up with
function D8V takes nothing returns boolean
return(PV==3)
and a search for PV only turns up
integer PV=0
i've tried repicking like 30 times but it still gave me the same hero as always no idea about that
also saw this trigger
function GIV takes nothing returns boolean
return(QV==false)
endfunction
function GAV takes nothing returns nothing
if(GIV())then
set QV=true
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cffffcc00Gem Activated|r")
else
set QV=false
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cffffcc00Gem Deactivated|r")
endif
endfunction
set IC=CreateTrigger()
call DisableTrigger(IC)
call TriggerAddCondition(IC,Condition(function GRV))
call TriggerAddAction(IC,function GAV)
function GRV takes nothing returns boolean
return(GetSpellAbilityId()=='AIpz')
trigger IC=null
And theres also this one
function GBV takes nothing returns nothing
call DisplayTextToForce(KG(GetTriggerPlayer()),"|cffffcc00Pedro:|r You've found me! Don't waste your time trying to find me again!")
call TriggerSleepAction(.5)
set S=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(S,"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.md l")
call TriggerExecute(ZX)
call ShowUnitHide(GetTriggerUnit())
endfunction
Checked the pedro hero out after i unprotected the map its supposed to be perma invis but i searched the map with maphack on with show invis and didnt see anything
And heres the whole .j file
http://rapidshare.com/files/114243472/war3map.j.html
if(D8V())then
call CreateNUnitsAtLoc(1,'E00Y',GetTriggerPlayer(),GetR ectCenter(K[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]),270.)
call ConditionalTriggerExecute(EO)
call DisplayTimedTextToForce(KG(GetTriggerPlayer()),20. ,"You're repicking too much, if you like to play as a |cffffcc00Child|r, from now on you'll play as one!")
else
call PanCameraToTimedLocForPlayer(GetTriggerPlayer(),Ge tPlayerStartLocationLoc(Player(0)),.3)
call CreateNUnitsAtLoc(1,'ushd',GetTriggerPlayer(),GetP layerStartLocationLoc(GetTriggerPlayer()),bj_UNIT_ FACING)
i've did a search for d8v came up with
function D8V takes nothing returns boolean
return(PV==3)
and a search for PV only turns up
integer PV=0
i've tried repicking like 30 times but it still gave me the same hero as always no idea about that
also saw this trigger
function GIV takes nothing returns boolean
return(QV==false)
endfunction
function GAV takes nothing returns nothing
if(GIV())then
set QV=true
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cffffcc00Gem Activated|r")
else
set QV=false
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cffffcc00Gem Deactivated|r")
endif
endfunction
set IC=CreateTrigger()
call DisableTrigger(IC)
call TriggerAddCondition(IC,Condition(function GRV))
call TriggerAddAction(IC,function GAV)
function GRV takes nothing returns boolean
return(GetSpellAbilityId()=='AIpz')
trigger IC=null
And theres also this one
function GBV takes nothing returns nothing
call DisplayTextToForce(KG(GetTriggerPlayer()),"|cffffcc00Pedro:|r You've found me! Don't waste your time trying to find me again!")
call TriggerSleepAction(.5)
set S=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(S,"Abilities\\Spells\\NightElf\\Blink\\BlinkCaster.md l")
call TriggerExecute(ZX)
call ShowUnitHide(GetTriggerUnit())
endfunction
Checked the pedro hero out after i unprotected the map its supposed to be perma invis but i searched the map with maphack on with show invis and didnt see anything
And heres the whole .j file
http://rapidshare.com/files/114243472/war3map.j.html