wwmb
Watcher
- 20
- Posts
- 15
- Years
- Seen Jan 18, 2016
Hello!
I'm hacking Pokémon emerald; I'm writing my scripts in XSE; and I am trying to create a script-tile that when stepped upon teleports the player (with animation) to a random location on the map. Realizing this would be a scripting nightmare (due to getting stuck in the walls) I simply made the script choose a random of 8 predefined locations to teleport to.
Here
is one of the 8 lines of code executed, and are doing so almost exactly how I want them to be. The problem I am having is that this reloads the map; causing my map script to trigger, refresh flags and re-randomize the dungeon. So now I'm here asking: what command I should be using instead?
Thanks!
-------------------------------------------------------------------------------
You should start by opening up the script in which the professor gives you the pokédex
(Hmmm, I can't seem to find it... I searched using PKSV-UI and found the script 1FA3B5
I am not entirely sure where the script is called from however.
Anyways, set the flag 0x861 and you will have set the pokédex in emerald.
(Hmmmm, I wonder where that script is.....)
I'm hacking Pokémon emerald; I'm writing my scripts in XSE; and I am trying to create a script-tile that when stepped upon teleports the player (with animation) to a random location on the map. Realizing this would be a scripting nightmare (due to getting stuck in the walls) I simply made the script choose a random of 8 predefined locations to teleport to.
Here
Code:
warpteleport 0x22 0x0 0xFF 0x4 0x4
Thanks!
-------------------------------------------------------------------------------
I just have two quick questions. First I don't know which flags are available in emerald and secondly I want to create a give pokedex script, but I dont even know where to begin. I use pokescript, not XSE so can anyone give me any advice?
You should start by opening up the script in which the professor gives you the pokédex
(Hmmm, I can't seem to find it... I searched using PKSV-UI and found the script 1FA3B5
Spoiler:
XSE:
//---------------
#org 0x1FA3B5
setflag 0x861
special 0x1F0
setflag 0x8E4
setvar 0x40CD 0x1
return
PKSV:
#org 0x81FA3B5
'-----------------------------------
setflag 0x861
special 0x1F0
setflag 0x8E4
setvar 0x40CD 0x1
return
//---------------
#org 0x1FA3B5
setflag 0x861
special 0x1F0
setflag 0x8E4
setvar 0x40CD 0x1
return
PKSV:
#org 0x81FA3B5
'-----------------------------------
setflag 0x861
special 0x1F0
setflag 0x8E4
setvar 0x40CD 0x1
return
I am not entirely sure where the script is called from however.
Anyways, set the flag 0x861 and you will have set the pokédex in emerald.
(Hmmmm, I wonder where that script is.....)
Last edited: