View Single Post
  #23849    
Old February 14th, 2013, 04:54 AM
LocksmithArmy's Avatar
LocksmithArmy
Mew!
 
Join Date: Feb 2013
Age: 25
Gender: Male
Quote:
Originally Posted by FBI agent View Post
It is countpokemon, if you're using PKSV. Also, you're going about it the wrong way. If you want a custom safari zone without a counter make a new map, don't bother trying to edit the existing routine.
I did make a new map...

on my new maps mapscript
under "On entering map/on menu close [05]"
ive got:
Spoiler:
#org 0x8800800
'-----------------------------------
countpokemon
compare LASTRESULT 0x1
if == call 0x8800810 ' Equal To
end

#org 0x8800810
'-----------------------------------
msgbox 0x8800900 ' OAK: Have you caught...
callstd MSG_NOCLOSE ' Non-closing message
closemsg
special 0xCE
special FR_NATIONAL_DEX
setvar 0x4055 0x3
warp 0x4 0x5 0xFF 0x4 0x2
end


#org 0x8800900
= OAK: Have you caught a POK\eMON?\nCome back so we can see.


its supposed to end the game after any battle where you caught a pokemon... because you would have 0 pokemon going in... then you should have 1 pokemon after the battle, so when it checks... it should play that event and give end the game... but instead... after any battle... it goes black ;(

UPDATE:
I used the "countpokemon" code in the exact same fashion while making the person stay in the event (if they get kicked out by the step counter)

Spoiler:
#org 0x8801000
'-----------------------------------
countpokemon
compare LASTRESULT 0x1
if >= call 0x816D2F2 ' Larger Than or Equal To
compare LASTRESULT 0x0
if == call 0x88009B0 ' Equal To
end

#org 0x816D2F2
'-----------------------------------
lockall
textcolor BLUE
msgbox 0x8197E85 ' Did you catch your f...
callstd MSG_NOCLOSE ' Non-closing message
closemsg
applymovement PLAYER 0x816D362 ' walk_down walk_down ...
pauseevent 0x0
special 0xCE
setvar 0x406E 0x0
releaseall
end

#org 0x88009B0
'-----------------------------------
lockall
textcolor BLUE
msgbox 0x88009F0 ' OAK: Have you caught...
callstd MSG_NOCLOSE ' Non-closing message
closemsg
applymovement PLAYER 0x88009E0 ' walk_up end
pauseevent 0x0
special 0xCD
setvar 0x406E 0x2
warp 0x4 0x6 0xFF 0x19 0x1C
releaseall
end


#org 0x8197E85
= Did you catch your fair share?\nCome again!

#org 0x88009F0
= OAK: Have you caught a POK\eMON?\nGet back in there...

#org 0x816D362
M walk_down walk_down end

#org 0x88009E0
M walk_up end


and it worked perfectly... (even tested by actually playing the safari game and that way ends correctly too)

so y am I getting a black screen when I count in my lil safarigame...

counting to 0 works I guess cause it lets you keep playing if you run or chase off a poke... but if you count to 1 it glitches up...

UPDATE2:

it works without the message box script... so if oak doesnt call me to tell me to come back I randomely warp back with my poke...

that sux
__________________
~Current Project:

~Completed Projects:



Last edited by LocksmithArmy; February 14th, 2013 at 07:19 AM.