• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Pokemon - Spawn Location Script?

Status
Not open for further replies.
Level 1
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:

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.
 
Level 5
Joined
Jun 16, 2004
Messages
108
Seems you figured out the code yourself. So here's some additional stuff after some quick searching.

I tried finding the map on epicwar, and came across this: http://www.epicwar.com/maps/63354/

Looks as though it is the same map you are talking about, just a different version because the item ID in question is I00M for me.

Here there apparently is a shop that looks like a necromancer: http://puu.sh/Eewf
Place to run with the item should be here: http://puu.sh/Een0 which is on a path off to the right of the shop location

Well I might be mistaken, or it might be different between versions, but it seems the item looks like a raichu and costs 5000.

Well, good luck with your search.
 
Level 1
Joined
Jun 25, 2012
Messages
6
Thanks Halo, I was juggling around files from two versions, so maybe I was using the wrong one by mistake. One more thing though, on this map there are numerous locations protected by trees. In the quest information it says that you are able to cut these trees but they are not selectable. Is there some trigger to convert those trees intro destructibles after a certain event? Or has the map maker simply not finished with those areas and cordoned them off. An example of one of these areas would be in the maze of caves at the top right corner, another would be just above the starting area (rubick), a patch of brick surrounded by trees (if you get there with a gem another Pokemon spawns).
 
Level 5
Joined
Jun 16, 2004
Messages
108
I briefly looked at the map script and did not see anything that modifies destructables already on the map. So it might be the case that there is no triggering to modify the state of them during runtime, meaning if you cannot find a way to kill them, there might not be a way. If you have a unit that can normally attack trees, try pressing A (for attack) and try left clicking on them. Some things in Wc3 can still be attacked even if there is no tooltip or method to select them.

I decided to actually play the map and try to get Uxie and verify my information, so here are some more screenshots for fun.

Bought here: http://puu.sh/EhhA
Moved here with the item in slot 6: http://puu.sh/EhhE
Uxie spawn: http://puu.sh/EhhG

There are some rocks over to the left blocking the entrance to Uxie, not sure how to bypass these normally. Other than that, you can get to Uxie pretty much by right clicking where the necromancers are and dealing with monsters/trainers that are blocking your way by challenging them.
 
Level 1
Joined
Jun 25, 2012
Messages
6
Fantastic, I doubted that it was actually possible to even spawn the damn thing. Thanks for this, and the screenies too :) But about the tree thing, see this for example http://puu.sh/EhYT

You can select everything but the trees in the middle which need to be knocked down. You knock them down using the cut ability but when you can't select the tree, what can you do?

This occurs multiple times
http://puu.sh/Ei0o
http://puu.sh/Ei11
http://puu.sh/Ei0V
http://puu.sh/Ei0P

What do you think? (Btw this Puush service is great ^^)
 
Level 5
Joined
Jun 16, 2004
Messages
108
Well they look like normal Wc3 trees. However it does not seem like you actually have many options to kill them, since almost no abilities and no units as far as I can see are able to actually attack normal Wc3 trees.

I only had a cursory look, but I did see three abilities that apparently can kill trees, those three being super whirlwinds, self-destruct, and something called Gaosusansan. Super whirlwind is pretty much only on legendary units. Gaosusansan seems more flexible, on dragonite, ditto, jigglypuff, snorlax, venusaur and others apparently. Not sure what units have self destruct.

Well, good luck with that. Actually, this thread probably does not belong in this forum anymore, heh.
 
Level 1
Joined
Jun 25, 2012
Messages
6
Thanks for all the help! I tried using multiple abilities to break the trees, but none of the three you mentioned >.> I guess it makes sense to have to use those "high level" abilities to get to areas in which you can acquire legendaries. Now I have to go back an mull over the legendaries such as mew, which I couldn't get, even though I went into it's area with an igglybuff egg.

Yeah, this thread doesn't belong in this forum anymore.
 
Level 1
Joined
Jun 25, 2012
Messages
6
Hahaha, thanks for the welcome Mag. I often feel the same way you do when I come across a badly written, meaningless, jumble of words (Which happens a lot >.>). And as a dedicated lurker, I can do naught but watch and cringe :3
 
Last edited:
Status
Not open for further replies.
Top