- Joined
- Jun 25, 2012
- Messages
- 6
Disclaimer: The following is in no means an attempt to infringe upon, steal and/or duplicate another persons work without their implicit authorization, but is rather a (hopefully not) vain, last ditch attempt to solve a certain problem that I have been having with a certain map.
I have recently been playing a map - Pokemon Diamond and Pearl V2.6 - and have been pulling out my hair because of it. I need to find a way to acquire certain "legendary Pokemon" or "high value monsters (if you aren't familiar with Pokemon >.>)", which like most Pokemon maps require a special set of circumstances to spawn. I have nearly everything that you can do to spawn one of these Pokemon, but to no avail (I seriously have spent hours with a friend trying to figure this out.) Now I, void of all means to relieve myself of this problem, am trying to see if I can puzzle out how to do this through the maps triggers, something which I am very bad at, and require assistance with. So without further ado:
This all the scripting I could find related to this particular legendary Pokemon. Now correct me if I am wrong, but isn't this saying that if I go to this location (gg_rct_uxie) with item (I00A) in my sixth slot, an UXIE will spawn at (gg_rct_uxie) or be moved from a predefined location? Or is the information the guy put in quest info, some kind of cruel jape to get us players running around trying to catch something that aint there. Thanks for the help, it's the best I can do before I give up on the map.
I have recently been playing a map - Pokemon Diamond and Pearl V2.6 - and have been pulling out my hair because of it. I need to find a way to acquire certain "legendary Pokemon" or "high value monsters (if you aren't familiar with Pokemon >.>)", which like most Pokemon maps require a special set of circumstances to spawn. I have nearly everything that you can do to spawn one of these Pokemon, but to no avail (I seriously have spent hours with a friend trying to figure this out.) Now I, void of all means to relieve myself of this problem, am trying to see if I can puzzle out how to do this through the maps triggers, something which I am very bad at, and require assistance with. So without further ado:
JASS:
call InitTrig_Uxie()
JASS:
rect gg_rct_Uxie=null
JASS:
trigger gg_trg_Uxie=null
JASS:
set gg_rct_Uxie=Rect(7392.0,4800.0,7648.0,5056.0)
JASS:
function Trig_Uxie_Func005C takes nothing returns boolean
if ((GetItemTypeId(UnitItemInSlotBJ(GetEnteringUnit(),6))=='I00A')) then
return true
endif
return false
endfunction
function Trig_Uxie_Conditions takes nothing returns boolean
if (not Trig_Uxie_Func005C()) then
return false
endif
return true
endfunction
function Trig_Uxie_Actions takes nothing returns nothing
call SetUnitPositionLoc(gg_unit_U00Q_0788,GetRectCenter(gg_rct_Uxie))
call SetUnitOwner(gg_unit_U00Q_0788,Player(PLAYER_NEUTRAL_AGGRESSIVE),true)
call AddSpecialEffectLocBJ(GetRectCenter(gg_rct_Uxie),"Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
call RemoveItem(UnitItemInSlotBJ(GetEnteringUnit(),6))
endfunction
function InitTrig_Uxie takes nothing returns nothing
set gg_trg_Uxie=CreateTrigger()
call TriggerRegisterEnterRectSimple(gg_trg_Uxie,gg_rct_Uxie)
call TriggerAddCondition(gg_trg_Uxie,Condition(function Trig_Uxie_Conditions))
call TriggerAddAction(gg_trg_Uxie,function Trig_Uxie_Actions)
endfunction
This all the scripting I could find related to this particular legendary Pokemon. Now correct me if I am wrong, but isn't this saying that if I go to this location (gg_rct_uxie) with item (I00A) in my sixth slot, an UXIE will spawn at (gg_rct_uxie) or be moved from a predefined location? Or is the information the guy put in quest info, some kind of cruel jape to get us players running around trying to catch something that aint there. Thanks for the help, it's the best I can do before I give up on the map.