Script Help Thread (DO NOT REQUEST SCRIPTS) Page 364

Started by HackMew December 20th, 2008 5:10 AM
  • 626067 views
  • 9682 replies

M.L

Invisible

Male
Seen December 21st, 2017
Posted November 23rd, 2016
761 posts
12.6 Years
Spoiler:
#dynamic 0x740000

#org @start
lock
faceplayer
setflag 0x6001
setvar 0x6001 0x1
special 0x8E
msgbox @1 0x6
checkflag 0x6000
if 0x0 goto @dont
msgbox @2 0x6
clearflag 0x6000
release
end

#org @dont
msgbox @3 0x6
clearflag 0x6001
release 
end

#org @1
= 1

#org @2
= 2

#org @3
= 3


So I dont know why this is hapening to me but you speak to the guy and the other guy does dissapear due to setflag but if I return to the map before speaking to the man again for clearflag the guy returns anyways..
This has been happening to me alot so this was a test script.. Do you know why their OW arn't dissapearing after I setflag them?
Fluffy

Le pug

Creator of Pokémon: Discovery / Fat Kid

Age 30
Male
Le bed
Seen December 28th, 2022
Posted February 18th, 2021
870 posts
9.8 Years
Spoiler:
#dynamic 0x740000

#org @start
lock
faceplayer
setflag 0x6001
setvar 0x6001 0x1
special 0x8E
msgbox @1 0x6
checkflag 0x6000
if 0x0 goto @dont
msgbox @2 0x6
clearflag 0x6000
release
end

#org @dont
msgbox @3 0x6
clearflag 0x6001
release 
end

#org @1
= 1

#org @2
= 2

#org @3
= 3


So I dont know why this is hapening to me but you speak to the guy and the other guy does dissapear due to setflag but if I return to the map before speaking to the man again for clearflag the guy returns anyways..
This has been happening to me alot so this was a test script.. Do you know why their OW arn't dissapearing after I setflag them?

I may be wrong but I think that the flag 6000 is too high to be used... usually I use flags in the 1000s but anything after 900s should be fine. Also, in the AdvanceMap you are using, are you entering the flag number under the overworld sprite? Make sure you set the flag to the right person. If you, say, use a flag of 1434 then you would put under Person ID of the OW sprite (which is under Script Offset) "$1434".

You can only use setvar on script tiles ... not in scripts with overworld sprites because that setvar value you have 0x6001 would have to go to the var number of the script tile in advancemap.

ALSO, only vars 0x4011-0x40FF are safe so using 0x6001 is wrong
Retired. Thank you guys for a wonderful five years.

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.6 Years
I may be wrong but I think that the flag 6000 is too high to be used... usually I use flags in the 1000s but anything after 900s should be fine. Also, in the AdvanceMap you are using, are you entering the flag number under the overworld sprite? Make sure you set the flag to the right person. If you, say, use a flag of 1434 then you would put under Person ID of the OW sprite (which is under Script Offset) "$1434".

You can only use setvar on script tiles ... not in scripts with overworld sprites because that setvar value you have 0x6001 would have to go to the var number of the script tile in advancemap.

ALSO, only vars 0x4011-0x40FF are safe so using 0x6001 is wrong
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

M.L: Read this: http://www.pokecommunity.com/showthread.php?t=302347 and this http://www.pokecommunity.com/showthread.php?p=7952324#7952324

Paired with Simba

Sniper

ふゆかい

Male
Philippines
Seen August 9th, 2016
Posted June 5th, 2016
1,412 posts
9.5 Years
For some reason any scripting program I try to use won't work it says something like script aborted I have watched millions of videos and followed the instructions perfectly using the same programs and it won't work is it my computer?
Could you explain a bit more and what script editor do you use?


Velocity

Male
Virginia (America)
Seen July 17th, 2014
Posted December 28th, 2013
14 posts
9.5 Years
Hey guys. I know this seems very very basic but I am testing out scripts just so i can get a start on my hack rom.
Well I have a problem, after all is scripted and applied correctly, my NPC locks, and faces towards me, but no text box shows up. I am using XSE and AMap to script and apply.
Here is the script I used:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @talk1 0x6
release
end

#org @talk1
= Welcome to the Vapor Region!

When im in AMap, i paste the offset of the script into the NPC's offset, click "Open Script" to make sure it shows up like it should, and it does. Then i save the rom and open it in the VBA emulator, i talk to the NPc i assigned the script to, and he locks in place and faces me, but no text box shows up. I have tried 3 different "Uncorrupted" new roms, i tried 2 different AMap Versions, and i tried 3 different versions of basic text scripts.. All with the same exact outcome. If anybody has any clue what so ever of why this is happening i would greatly appreciate any help!

Thanks for taking the time to read this and help me figure it out

~Anthony (Velocity)

DrFuji

Heiki Hecchara‌‌

Age 30
Male
Aussie
Seen 1 Week Ago
Posted February 12th, 2021
1,693 posts
13.7 Years
Hey guys. I know this seems very very basic but I am testing out scripts just so i can get a start on my hack rom.
Well I have a problem, after all is scripted and applied correctly, my NPC locks, and faces towards me, but no text box shows up. I am using XSE and AMap to script and apply.
Here is the script I used:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @talk1 0x6
release
end

#org @talk1
= Welcome to the Vapor Region!

When im in AMap, i paste the offset of the script into the NPC's offset, click "Open Script" to make sure it shows up like it should, and it does. Then i save the rom and open it in the VBA emulator, i talk to the NPc i assigned the script to, and he locks in place and faces me, but no text box shows up. I have tried 3 different "Uncorrupted" new roms, i tried 2 different AMap Versions, and i tried 3 different versions of basic text scripts.. All with the same exact outcome. If anybody has any clue what so ever of why this is happening i would greatly appreciate any help!

Thanks for taking the time to read this and help me figure it out

~Anthony (Velocity)
You're probably using XSE v1.0.0 since that is a common problem many people experience, try using version 1.1.1 instead.

You can also shorten your script slightly by removing your 'lock' and 'faceplayer' commands and changing your msgbox's type from 0x6 to 0x2 as they are automatically applied when you use it. In the end it would look like this:

#dynamic 0x800000

#org @start
msgbox @talk1 0x2
release
end

#org @talk1
= Welcome to the Vapor Region!

AlyoshaHacks

RS Hacker and Pokemon Fan

Seen January 3rd, 2014
Posted December 1st, 2013
7 posts
9.5 Years
Hello. This is Alyosha Hacks. I need help with the Fire Red Scripting. I have Windows 8 and PokeScript is not working, so I use XSE.
Here is the script I want to change:
'-----------------------
#org 0x168CD2
msgbox 0x818D50B '"[player] played with the NES.\p[.]O..."
callstd 0x3
end

'---------
' Strings
'---------
#org 0x18D50B
= [player] played with the NES.\p[.]Okay!\nIt's time to go!
I am changing it to:
'-----------------------
#org 0x168CD2
msgbox 0x818D50B '"[player] played with the NES.\p[.]O..."
callstd 0x3
end

'---------
' Strings
'---------
#org 0x18D50B
= [player] played with the Wii U.\p[.]Okay!\nIt's time to go!
And compiling it fixes all of the other text. However, a script I did not write but want to keep
changes from:
'-----------------------
#org 0x168CDB
msgbox 0x818D53B '"It's a posted notice[.]\pIf you're ..."
callstd 0x3
end

'---------
' Strings
'---------
#org 0x18D53B
= It's a posted notice[.]\pIf you're confused, ask for HELP!\nPress the L or R Button!
which I want to keep, to:
'-----------------------
#org 0x168CDB
msgbox 0x818D53B '"!"
callstd 0x3
end

'---------
' Strings
'---------
#org 0x18D53B
= !
When I change the sign it also changes the end of the NES text. Can you help me?
ALYOSHA AND FAMILY HACKS
YouTube Kevin Stanton:
https://www.youtube.com/user/kmstanton
Ask me questions about Pokémon if you would like, on my posts.
Male
Seen December 3rd, 2016
Posted March 7th, 2014
21 posts
11 Years
Game: Pokemon FireRed
Type: Person event
Editor: XSE (latest version)
Script:
Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @how
msgbox @take 0x6
givepokemon 0x19 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @receive 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @givenickname 0x5
compare 0x800D 0x1
if 0x1 goto @name
compare 0x800D 0x0
if 0x1 goto @go
end

#org @take
= The mountains ahead are dangerous!\nTake this to keep you safe.

#org @receive
= [black_fr]You received a Pikachu from\nthe police officer!

#org @givenickname
= [black_fr]Would you like to give\nit a nickname?

#org @name
setvar 0x8004 0x0
call @nickname
goto @goodluck

#org @nickname
fadescreen 0x1
special 0x9E
waitstate
return

#org @go
closeonkeypress
goto @goodluck

#org @goodluck
msgbox @gl 0x6
applymovement 0x1 @move
waitmovement 0x0
release
end

#org @gl
= Please be safe!

#org @move
#raw 0x13
#raw 0x2
#raw 0xfe

#org @how
= How is Pikachu doing?

As a result of this script, the officer should give you a Pikachu and then clear the entrance to the cave by moving out of the way... However, I place him in front of the cave in Advance-Map, and he is not there when playing the game. He appears in front of the house in the map.

I can't post a screenshot because I don't have 15 posts (just logged on this account after a long ago sign-up), but that is my best explanation. Please help!

EDIT: The script does work properly, but the officer is not where he is supposed to be.

xGal

Mhm

Non-binary
A tree
Seen February 16th, 2018
Posted May 20th, 2017
241 posts
11.6 Years
Game: Pokemon FireRed
Type: Person event
Editor: XSE (latest version)
Script:
Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @how
msgbox @take 0x6
givepokemon 0x19 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @receive 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @givenickname 0x5
compare 0x800D 0x1
if 0x1 goto @name
compare 0x800D 0x0
if 0x1 goto @go
end

#org @take
= The mountains ahead are dangerous!\nTake this to keep you safe.

#org @receive
= [black_fr]You received a Pikachu from\nthe police officer!

#org @givenickname
= [black_fr]Would you like to give\nit a nickname?

#org @name
setvar 0x8004 0x0
call @nickname
goto @goodluck

#org @nickname
fadescreen 0x1
special 0x9E
waitstate
return

#org @go
closeonkeypress
goto @goodluck

#org @goodluck
msgbox @gl 0x6
applymovement 0x1 @move
waitmovement 0x0
release
end

#org @gl
= Please be safe!

#org @move
#raw 0x13
#raw 0x2
#raw 0xfe

#org @how
= How is Pikachu doing?

As a result of this script, the officer should give you a Pikachu and then clear the entrance to the cave by moving out of the way... However, I place him in front of the cave in Advance-Map, and he is not there when playing the game. He appears in front of the house in the map.

I can't post a screenshot because I don't have 15 posts (just logged on this account after a long ago sign-up), but that is my best explanation. Please help!

EDIT: The script does work properly, but the officer is not where he is supposed to be.
I don't think it's something with the script.

Try to delete all the level scripts in the map the officer is!
Male
Seen December 3rd, 2016
Posted March 7th, 2014
21 posts
11 Years
I don't think it's something with the script.

Try to delete all the level scripts in the map the officer is!
I have deleted all of the level scripts in the map dealing with the officer. I'm not positive if it is the ROM Base I am using or not... When I use the script on a regular ROM without a ROM base, the script functions properly. What is this?

EDIT: It is not the ROM Base. Using a default ROM, infact, still gives me the issue with the officer being at another place. What is going on!?


I have solved the issue. It turns out that the ROM bases I had used had some issues with the level script in the starting town (Pallet Town). As a result, using JPAN's Modded Engine for FireRed (patching the ROM before patching the ROM base) fixed my issue.

Satoshi Ookami

Memento Mori

Age 30
Male
Abyss of Time, Great Seal
Seen August 5th, 2018
Posted July 3rd, 2018
14,253 posts
14.8 Years
Why does callstd doesn't work on my XSE? I'm using ver. 1.1.1
Apparently it became so unpleasant command that it was completely omitted. All you need now is msgbox @xxx 0x(number you would normally put in callstd)
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.6 Years

Apparently it became so unpleasant command that it was completely omitted. All you need now is msgbox @xxx 0x(number you would normally put in callstd)
It still exists, HackMew just simplified the syntax, creating a macro command. In fact, the msgbox command doesn't really exist to begin with. The command itself is a macro of other smaller commands.

Paired with Simba
Male
Seen July 27th, 2016
Posted March 14th, 2015
35 posts
9.5 Years
i supposed that copybyte only copy a byte, not 2 bytes, i already use this command and only copy a byte, sorry if i'm not correct.
EDIT: and what are those offsets, i think that the played games place is in 0x2024EB2 y 0x2024EB3, the other offset is the LASTRESULT var, isn't it??
Seen December 18th, 2017
Posted May 17th, 2016
72 posts
9.5 Years
I have been working on a rom hack, and all of a sudden when I enter grass ect for a wild pokemon battle the screen goes black and the game freezes. (But the music still plays). What am I doing wrong? I have wild pokemon data added in advanced map already. How do I get this working again?

Orifiel

Priestess

Female
Tokyo, Japan
Seen May 3rd, 2015
Posted May 5th, 2014
413 posts
9.8 Years
I have been working on a rom hack, and all of a sudden when I enter grass ect for a wild pokemon battle the screen goes black and the game freezes. (But the music still plays). What am I doing wrong? I have wild pokemon data added in advanced map already. How do I get this working again?
Have you been inserting new musics? Probably something went wrong. :/
Or maybe some palettes are screwed up. Also, what A-map ver are you using?
~ Pair | Character | Previously L96 ~
Seen December 18th, 2017
Posted May 17th, 2016
72 posts
9.5 Years
Have you been inserting new musics? Probably something went wrong. :/
Or maybe some palettes are screwed up. Also, what A-map ver are you using?
No, it is all original music. And I'm using AM 1.9.2.
Male
Seen January 13th, 2014
Posted December 23rd, 2013
6 posts
9.5 Years
If you have played Pokemon Fire Red before than you would know that the legendary battles differ from normal encounters. Is there a script compatible with either PKSV or XSE to change a wildbattle to a legendary one? In my rom hack I am including lots of post-game legendaries! If someone answers than Thanks so much :)

- Derp