• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Tool: PKSV - Pokémon Script Editor + GUI

Status
Not open for further replies.

score_under

Inactive; Former ROM hack tool author, ❤️
526
Posts
18
Years
Do you know where to find a list of all the flags for Emerald? Pksv only has FR/LG.
I usually try to discourage people from finding lists of flags, as it's pretty much a case of defining them as you go along. There are a few used in-game by ASM, but not very many. All the others are available for re-use in your own scripts (go with 0x500 upwards), assuming you're not going to leave the rest of the game (maps & scripts) intact in your hack.

*edit*Oh, now when trying to compile/decompile scripts, a window pops up saying that it has stopped working, without an explanation.
If it's still doing that (with the replacement DLL), just tell me and I'll see if PM'ing you the in-development version of the UI too fixes it.
 

Full Metal

C(++) Developer.
810
Posts
16
Years
er...dude, this has nothing to do with XSE other than that they're both script compilers.
So...why would score_under update PKSV to match XSE in any way?
 
20
Posts
14
Years
  • Seen Apr 12, 2010
I was just making a simple battle pokemon with script generator in pskv where you battle a sudowoodo in Fire Red. If you fight it and defeat it, the sudowoodo disappears, but if you catch it, sudowoodo is still there afterwards and you battle it again and if you run it says "The MewTwo flew away" and i don't see any msgbox to edit. I couldn't understand where the problem might be. Something with the flags? Can anyone help me out or some where to turn? Thanks

#dyn 0x740000
#org @start
special 0x187
compare LASTRESULT 2
if == jump 0x81A7AE0
special 0x188
lock
faceplayer
checksound
cry SUDOWOODO 2
waitcry
pause 0x14
playsound 0x156 0x0
battle SUDOWOODO 7 IAPAPABERRY
setflag 0x807
special 0x138
waitspecial
clearflag 0x807
special2 0x800D 0xB4
compare LASTRESULT 1
if == jump 0x8162558
compare LASTRESULT 4
if == jump 0x8162561
compare LASTRESULT 5
if == jump 0x8162561
setflag 0x226
release
end
 

score_under

Inactive; Former ROM hack tool author, ❤️
526
Posts
18
Years
I was just making a simple battle pokemon with script generator in pskv where you battle a sudowoodo in Fire Red. If you fight it and defeat it, the sudowoodo disappears, but if you catch it, sudowoodo is still there afterwards and you battle it again and if you run it says "The MewTwo flew away" and i don't see any msgbox to edit. I couldn't understand where the problem might be. Something with the flags? Can anyone help me out or some where to turn? Thanks
See if this works:
Code:
#dyn 0x740000
#org @start
checkflag 0x226
if true jump 0x81A7AE0
special 0x188
lock
faceplayer
checksound
cry SUDOWOODO 2
waitcry
pause 0x14
playsound 0x156 0x0
battle SUDOWOODO 7 IAPAPABERRY
setflag 0x807
special 0x138
waitspecial
clearflag 0x807
setflag 0x226
release
end
Also, set the "Person ID" of that sprite (in AdvanceMap) to "0226".
 
13
Posts
14
Years
  • Seen Feb 15, 2012
If it's still doing that (with the replacement DLL), just tell me and I'll see if PM'ing you the in-development version of the UI too fixes it.

Yeah, It still is, unfortunately. But, it seemed to stop once a re-downloaded the original DLL.

I'm now trying to create an event where you step on a tile, and a sprite talks to you then walks away and disappears. every time I step on the tile though, the game just freezes...
Code:
#dynamic 0x740000
#org 0x9C5325
jump @start
 
#org @start
'-----------------------------------
lockall
applymovement 0xA @move1 ' say_! walk_up walk_u...
pauseevent 0x0
faceplayer
msgbox @text1 ' Sorry to bother you,...
callstd MSG_NOCLOSE ' Non-closing message
checkflag 0x862
setflag 0x862
msgbox @text2 ' I'd like to speak to...
callstd MSG_NOCLOSE ' Non-closing message
applymovement 0xA @move2 ' walk_up walk_up walk...
pauseevent 0x0
disappear 0xA
setflag 0x205
releaseall
end
 
11
Posts
14
Years
Okay, I've gotten help with this before but I'm still a little confused...

How do I make a script kind-of like the rival's scripts throughout every Pokemon game -- Like a short statement, battle, another statement and then have them walk away?

When I try doing this I can only activate the second statement and the rival walking away after the battle when I talk to the rival a second time.

I'm sorry if this is kinda hard to understand, but can someone tell me how to make a script where they do that directly after the battle without having to talk to the sprite?

Thnx - Xxerox9009
 

score_under

Inactive; Former ROM hack tool author, ❤️
526
Posts
18
Years
Nosferatu_Alacard: In that case, I'm not entirely sure about what the source of the problem might be.
How do I make a script kind-of like the rival's scripts throughout every Pokemon game -- Like a short statement, battle, another statement and then have them walk away?
If you flag the sprite as being a trainer, then the script may only start from the "trainerbattle" command. Try using script events on the ground instead.
 
3
Posts
13
Years
  • Seen May 21, 2010
erm i nid help as i use the script i got a beeb sound and nothing happen i set as speaking script but nothing happen
 
3
Posts
13
Years
  • Seen May 21, 2010
ok here is my script
and the testing button is not working for me

#dyn 0x740000
#org @start
lock
checkflag 0x3234
if 0x1 jump :end
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon REGIROCK 0xF MACHBIKE 0 0 0
setflag 0x3234
storepokemon 0 REGIROCK
message @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end

#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end

#org @noroom-msg
= You don't have enough room in your party.

#org @get-msg
= You got a \v\h02!

does it work for firered?
i did it on emerald and it did not show the char

pls reply sry i double post

erm how come when i compile it onto the rom it does not make it give me pokemon it just give me a beep sound so HELPME HERE IS MY SCRIPT
 
Last edited:
11
Posts
14
Years
ok here is my script
and the testing button is not working for me

#dyn 0x740000
#org @start
lock
checkflag 0x3234
if 0x1 jump :end
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon REGIROCK 0xF MACHBIKE 0 0 0
setflag 0x3234
storepokemon 0 REGIROCK
message @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end

#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end

#org @noroom-msg
= You don't have enough room in your party.

#org @get-msg
= You got a \v\h02!

does it work for firered?
i did it on emerald and it did not show the char

pls reply sry i double post

erm how come when i compile it onto the rom it does not make it give me pokemon it just give me a beep sound so HELPME HERE IS MY SCRIPT

Okay, I found one possible problem for you.

In PKSV, did you open a rom? Because if you opened the wrong one, the script will turn out something like this:

#org 0x87D76CF
'-----------------------------------
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
'Decompiler stopped due to failsafe mechanism (too many #RAW 0xFF commands)

So at the top of the screen in PKSV, click ROM, then click OPEN ROM and choose the rom your hacking. I think you said Emerald is the one you're hacking.

I tried it on my Fire Red and got a Regirock with a Mach Bike, so it should work on Emerald.



I fixed my script too :)
 
Last edited:
1
Posts
13
Years
  • Seen Apr 24, 2010
sorry, but i´m a noob^^
What is false?
I want to make an applymovement... :

#org 0x88001FF
'-----------------------------------
lock
msgbox 0x8800227 ' Warte!
applymovement 0x4 0x8800249 ' walk_left walk_left ...
faceplayer
pause 0x40
msgbox 0x880022E ' Hier darfst du nicht...
applymovement PLAYER 0x880024D ' walk_down end
applymovement 0x4 0x880024F ' walk_right walk_righ...
release
end


#org 0x8800227
= Stop!

#org 0x880022E
= Don´t go that way!

#org 0x8800249
M walk_left walk_left walk_left end

#org 0x880024D
M walk_down end

#org 0x880024F
M walk_right walk_right walk_right end
 

score_under

Inactive; Former ROM hack tool author, ❤️
526
Posts
18
Years
[,,False" impliziert einen logischen Fehler, wenn etwas völlig unwahr ist. Dieser Code ist nicht ,,unwahr", es hat nur einen Fehler - auf diesem Fall sagen wir, es ist ,,Wrong". Z.B. What is wrong (with this code)?]
#org 0x88001FF
'-----------------------------------
lock
msgbox 0x8800227 ' Warte!
applymovement 0x4 0x8800249 ' walk_left walk_left ...
faceplayer
pause 0x40
msgbox 0x880022E ' Hier darfst du nicht...
applymovement PLAYER 0x880024D ' walk_down end
applymovement 0x4 0x880024F ' walk_right walk_righ...
release
end
[Ich weiß noch nicht, wann "du" oder "Sie" benutzen.]
Deine [Ihre?] Fehler scheint unter diese Zeilen zu sein:
Code:
applymovement 0x4 0x8800249 ' walk_left walk_left ...
und
Code:
applymovement 0x4 0x880024F ' walk_right walk_righ...
Du brauchst einen "pauseevent 0x0" benutzen, um für die Bewegung bis Ende zu warten.

Dieser Code sollte funktionieren:
#org 0x88001FF
'-----------------------------------
lock
msgbox 0x8800227 ' Warte!
applymovement 0x4 0x8800249 ' walk_left walk_left ...
pauseevent 0x0
faceplayer
pause 0x40
msgbox 0x880022E ' Hier darfst du nicht...
applymovement PLAYER 0x880024D ' walk_down end
applymovement 0x4 0x880024F ' walk_right walk_righ...
pauseevent 0x0
release
end

(Translations - "Your mistakes seem to be under these lines: <x> and <y>", "You need to use 'pauseevent 0x0' to wait for the movements to finish", and "This code should work". Just practising, haven't done German in a long time ;) It probably sounds nothing short of horrible)
 
Last edited:
Status
Not open for further replies.
Back
Top