Script Help Thread (DO NOT REQUEST SCRIPTS) Page 374

Started by HackMew December 20th, 2008 5:10 AM
  • 625717 views
  • 9682 replies
Female
Seen August 10th, 2015
Posted March 6th, 2014
26 posts
11.1 Years
Game: FireRed
Editor: XSE
Type: Script Tile/TrainerBattle
Script:
Spoiler:
#dynamic 0x7238FF

#org @start
checkflag 0x203
if 0x1 goto @vaporeon
checkflag 0x204
if 0x1 goto @jolteon
release
end

#org @jolteon
setvar 0x4052 0x0
applymovement 0x5 @walk1
waitmovement 0x5
applymovement 0xFF @walk2
waitmovement 0xFF
msgbox @talk1 0x6
applymovement 0x5 @walk7
waitmovement 0x5
msgbox @talk3 0x6
trainerbattle 0x9 0x03A 0x0 @win @lose
applymovement 0x5 @walk5
waitmovement 0x5
applymovement 0x6 @walk8
waitmovement 0x6
special 0x0
msgbox @talk4 0x6
trainerbattle 0x9 0x03F 0x0 @gagne @pasgagne
applymovement 0x6 @walk6
waitmovement 0x6
special 0x0
release
end

#org @walk8
#raw 0x10
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE

#org @walk7
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE

#org @vaporeon
setvar 0x4052 0x0
applymovement 0x5 @walk1
waitmovement 0x5
applymovement 0xFF @walk2
waitmovement 0xFF
msgbox @talk1 0x6
applymovement 0x5 @walk3
waitmovement 0x5
msgbox @talk3 0x6
trainerbattle 0x9 0x03B 0x0 @win @lose
applymovement 0x5 @walk5
waitmovement 0x5
applymovement 0x6 @walk4
waitmovement 0x6
special 0x0
msgbox @talk4 0x6
trainerbattle 0x9 0x03E 0x0 @gagne @pasgagne
applymovement 0x6 @walk6
waitmovement 0x6
special 0x0
release
end

#org @talk4
= Emily: It's my turn now!

#org @talk3
= Ethan: Let's have a Pokémon\nbattle!

#org @walk6
#raw 0x2
#raw 0xFE

#org @walk5
#raw 0x12
#raw 0x3
#raw 0xFE

#org @pasgagne
= Emily: Yay! I won!

#org @gagne
= Emily: Awwn, I lost..



#org @walk4
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE

#org @lose
= Ethan: Better luck next time


#org @win
= Ethan: You're really good \v\h01!



#org @walk3
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE

#org @walk1
#raw 0x0
#raw 0xFE

#org @walk2
#raw 0x1
#raw 0xFE

#org @talk1
= Ethan: Wait \v\h01!


How would I make the script continue if I lose the battle? As it is now it blacks out and sends me home
Age 32
Male
Faraway place
Seen May 14th, 2019
Posted June 15th, 2017
267 posts
11.3 Years
Is there a way to get the current map a player is on? I know XSE has getplayerpos which returns the player's x- and y- coordinates on the current map, but I'm interested in finding the map itself.

If for example I wanted an item to work only in certain areas, I'd want it to check the current map on use to see if it's in an 'allowed' area.
Pokemon Sigma Σmerald:
(now under management by DraconianWing)

A Gen 3 remake de-make, featuring many new encounters and Gen VI mechanics

Male
In between this worm hole and the next
Seen June 8th, 2014
Posted February 15th, 2014
6 posts
9.3 Years
Ok so im the noob-iest of all noobs... and i need advice lol im using pksvui and ad-map and since this is where scripters congregate could someone point me towards an extensive, in depth tut on scripting so i can hack emerald? sorry if this is inconveniant for anyone, and thanx in advance! //_^

manadhon

RTX-008L

Male
Khazad-dûm
Seen 14 Hours Ago
Posted March 3rd, 2023
119 posts
10 Years
Ok so im the noob-iest of all noobs... and i need advice lol im using pksvui and ad-map and since this is where scripters congregate could someone point me towards an extensive, in depth tut on scripting so i can hack emerald? sorry if this is inconveniant for anyone, and thanx in advance! //_^
http://www.pokecommunity.com/showthread.php?t=195659

http://www.pokecommunity.com/showthread.php?t=267579

Neither of these tutorials are as in depth as, say Diegoisawesome's XSE tutorial, but they should have everything you need. The money and warping sections are wrong though, so watch out. If you have any further questions, feel free to contact me.
"You can't lie to the Moon!"

Male
In between this worm hole and the next
Seen June 8th, 2014
Posted February 15th, 2014
6 posts
9.3 Years
crap... ok so ahem
game= emerald
script= sign post
tool= pksv-ui

so i typed in
#dyn 0x8E3D3FD
#org @start
lock
faceplayer
msgbox @text ' SPRUCE RESEARCH CENTER
callstd MSG_SIGN
release
end

#org @text
= SPRUCE RESEARCH CENTER


but after compiled i get
#org 0x8E3D3FD
'-----------------------------------
#raw 0xFF
setobedience 0xCCCA
executeram
#raw 0xBD
#raw 0xBF
nop0 ' #raw 0x0
comparehiddenvar 0xBF 0xBFCD
#raw 0xBB
comparehiddenvar 0xBD 0xC2
#raw 0xBD
#raw 0xBF
#raw 0xC8
checkobedience 0xCCBF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
'Decompiler stopped due to failsafe mechanism (too many #RAW 0xFF commands)


help.... oh and how do i do a spoiler lol thanx //_*

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.7 Years
crap... ok so ahem
game= emerald
script= sign post
tool= pksv-ui

so i typed in
#dyn 0x8E3D3FD
#org @start
lock
faceplayer
msgbox @text ' SPRUCE RESEARCH CENTER
callstd MSG_SIGN
release
end

#org @text
= SPRUCE RESEARCH CENTER


but after compiled i get
#org 0x8E3D3FD
'-----------------------------------
#raw 0xFF
setobedience 0xCCCA
executeram
#raw 0xBD
#raw 0xBF
nop0 ' #raw 0x0
comparehiddenvar 0xBF 0xBFCD
#raw 0xBB
comparehiddenvar 0xBD 0xC2
#raw 0xBD
#raw 0xBF
#raw 0xC8
checkobedience 0xCCBF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
'Decompiler stopped due to failsafe mechanism (too many #RAW 0xFF commands)


help.... oh and how do i do a spoiler lol thanx //_*
your problem is you're not using XSE 1.1.1 for the ease and comfort of script making!
Download it from here (and any other tools you might want):
link
Retired. Thank you guys for a wonderful five years.
Male
Seen March 7th, 2014
Posted February 20th, 2014
48 posts
9.5 Years
Hey guys, I am trying to get a pokemon healing script where you have to pay 100 pokedollars. Here's what I have so far. It is not working atm, always deferring to @no and not going to @continue if the player answers yes. Can anyone help?

(Hotel Script)

#dynamic 0x80AFF9

#org @start
lock
faceplayer
msgbox @ask 0x5
if 0x1 goto @continue
msgbox @no 0x6
release
end

#org @continue
checkmoney 0x96 0x0
compare 0x800D 0x1
if 0x4 goto @heal
msgbox @notenough 0x6

#org @heal
paymoney 0x96 0x0
special 0x0
fadescreen 0x1
msgbox @end 0x6
release
end

#org @ask
= Greetings! Welcome to the PYRITE\nSUPER GRAND HOTEL!\pStay in one of our ultra gorgeous\nsuites, and you and your POKEMON\lwill be refreshed as new.\pIt's a mere 100, will you stay?

#org @no
= Oh, thats too bad!

#org @notenough
= You don't have enough money!

#org @end
= Fine, fine. Hope you enjoyed\nstaying with us.
Gotta Snag Em All

Pokemon Colosseum (For GBA)

manadhon

RTX-008L

Male
Khazad-dûm
Seen 14 Hours Ago
Posted March 3rd, 2023
119 posts
10 Years
I'm going to address both HEXX5 and Bob Thelman in this post.

HEXX5
Spoiler:
"Lock," "faceplayer," and "release" are unnecessary with signs. All you need is the message, and "end."


Bob Thelman
Spoiler:
You forgot to use "compare" after your yes/no question. Without it, there is no way to tell whether it is Yes or No that is supposed to be pressed.
"You can't lie to the Moon!"

Female
Seen August 10th, 2015
Posted March 6th, 2014
26 posts
11.1 Years
Make:

trainerbattle 0x9 0x03B 0x3 @win @lose

Change the last byte to 0x3 ;)
But you have Oaks text there..
It doesn't work :/ I still black out..

Spoiler:
#dynamic 0x7238FF

#org @start
checkflag 0x203
if 0x1 goto @vaporeon
checkflag 0x204
if 0x1 goto @jolteon
release
end

#org @jolteon
setvar 0x4052 0x0
applymovement 0x5 @walk1
waitmovement 0x5
applymovement 0xFF @walk2
waitmovement 0xFF
msgbox @talk1 0x6
applymovement 0x5 @walk7
waitmovement 0x5
msgbox @talk3 0x6
trainerbattle 0x9 0x03A 0x3 @win @lose
applymovement 0x5 @walk5
waitmovement 0x5
applymovement 0x6 @walk8
waitmovement 0x6
special 0x0
msgbox @talk4 0x6
trainerbattle 0x9 0x03F 0x3 @gagne @pasgagne
applymovement 0x6 @walk6
waitmovement 0x6
special 0x0
release
end

#org @walk8
#raw 0x10
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE

#org @walk7
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE



#org @vaporeon
setvar 0x4052 0x0
applymovement 0x5 @walk1
waitmovement 0x5
applymovement 0xFF @walk2
waitmovement 0xFF
msgbox @talk1 0x6
applymovement 0x5 @walk3
waitmovement 0x5
msgbox @talk3 0x6
trainerbattle 0x9 0x03B 0x0 @win @lose
applymovement 0x5 @walk5
waitmovement 0x5
applymovement 0x6 @walk4
waitmovement 0x6
special 0x0
msgbox @talk4 0x6
trainerbattle 0x9 0x03E 0x0 @gagne @pasgagne
applymovement 0x6 @walk6
waitmovement 0x6
special 0x0
release
end

#org @talk4
= Emily: It's my turn now!

#org @talk3
= Ethan: Let's have a Pokémon\nbattle!

#org @walk6
#raw 0x2
#raw 0xFE

#org @walk5
#raw 0x12
#raw 0x3
#raw 0xFE

#org @pasgagne
= Emily: Yay! I won!

#org @gagne
= Emily: Awwn, I lost..



#org @walk4
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE

#org @lose
= Ethan: Better luck next time


#org @win
= Ethan: You're really good \v\h01!



#org @walk3
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0xFE

#org @walk1
#raw 0x0
#raw 0xFE

#org @walk2
#raw 0x1
#raw 0xFE

#org @talk1
= Ethan: Wait \v\h01!
Male
Seen March 7th, 2014
Posted February 20th, 2014
48 posts
9.5 Years
I'm going to address both HEXX5 and Bob Thelman in this post.

HEXX5
Spoiler:
"Lock," "faceplayer," and "release" are unnecessary with signs. All you need is the message, and "end."


Bob Thelman
Spoiler:
You forgot to use "compare" after your yes/no question. Without it, there is no way to tell whether it is Yes or No that is supposed to be pressed.
I added the compare, not sure why I forgot it lol, sometimes I guess you just miss things like that. Its still not working, could you take a look at it? I just use 0x800D right? Is that the only issue?

#dynamic 0x80AFF9

lock
faceplayer
msgbox @ask 0x5
compare 0x800D 0x1
if 0x1 goto @continue
msgbox @no 0x6
release
end

#org @continue
checkmoney 0x96 0x0
compare 0x800D 0x1
if 0x4 goto @heal
msgbox @notenough 0x6

#org @heal
paymoney 0x96 0x0
special 0x0
fadescreen 0x1
msgbox @end 0x6
release
end

#org @ask
= Greetings! Welcome to the PYRITE\nSUPER GRAND HOTEL!\pStay in one of our ultra gorgeous\nsuites, and you and your POKEMON\lwill be refreshed as new.\pIt's a mere 100, will you stay?

#org @no
= Oh, thats too bad!

#org @notenough
= You don't have enough money!

#org @end
= Fine, fine. Hope you enjoyed\nstaying with us.
Gotta Snag Em All

Pokemon Colosseum (For GBA)

manadhon

RTX-008L

Male
Khazad-dûm
Seen 14 Hours Ago
Posted March 3rd, 2023
119 posts
10 Years
I added the compare, not sure why I forgot it lol, sometimes I guess you just miss things like that. Its still not working, could you take a look at it? I just use 0x800D right? Is that the only issue?

#dynamic 0x80AFF9

lock
faceplayer
msgbox @ask 0x5
compare 0x800D 0x1
if 0x1 goto @continue
msgbox @no 0x6
release
end

#org @continue
checkmoney 0x96 0x0
compare 0x800D 0x1
if 0x4 goto @heal
msgbox @notenough 0x6

#org @heal
paymoney 0x96 0x0
special 0x0
fadescreen 0x1
msgbox @end 0x6
release
end

#org @ask
= Greetings! Welcome to the PYRITE\nSUPER GRAND HOTEL!\pStay in one of our ultra gorgeous\nsuites, and you and your POKEMON\lwill be refreshed as new.\pIt's a mere 100, will you stay?

#org @no
= Oh, thats too bad!

#org @notenough
= You don't have enough money!

#org @end
= Fine, fine. Hope you enjoyed\nstaying with us.
Sorry about that (I only glanced at your script). You're missing the "release" and "end" commands in continue, which will mess everything up. The only other major error that I can see is that you forgot to fade in the screen. You faded it out, but not in. On a side note, it would look better if you showed the character's money being subtracted, and yes, 0x800D is the right variable. Oh yeah, you're charging people $150, not $100 (talk about highway robbery).
"You can't lie to the Moon!"

Male
In between this worm hole and the next
Seen June 8th, 2014
Posted February 15th, 2014
6 posts
9.3 Years
how do i make a person (pokeball) disapear after i pick it up... oh its a givepokemon script

#org 0x885D5B2
'-----------------------------------
lock
checkflag 0x1000
if true jump 0x885D5EC ' Flag is set
setflag FR_POKEMON
countpokemon
compare LASTRESULT 0x6
if == jump 0x885D5EE ' Equal To
addpokemon EEVEE 5 EVERSTONE 0x0 0x0 0x0
setflag 0x1000
storepokemon 0x0 EEVEE
message 0x885D69B ' Its your \v\h02!
fanfare 0x101
showmsg
waitfanfare
waitbutton
release
end

#org 0x885D5EC
'-----------------------------------
release
end

#org 0x885D5EE
'-----------------------------------
msgbox 0x885D5F8 ' You don't have enoug...
callstd MSG_NOCLOSE ' Non-closing message
release
' Release commands close any open messages
end


#org 0x885D69B
= Its your \v\h02!

#org 0x885D5F8
= You don't have enough room in your party.
Age 25
Male
California
Seen December 26th, 2019
Posted February 23rd, 2014
98 posts
10.4 Years
how do i make a person (pokeball) disapear after i pick it up... oh its a givepokemon script

#org 0x885D5B2
'-----------------------------------
lock
checkflag 0x1000
if true jump 0x885D5EC ' Flag is set
setflag FR_POKEMON
countpokemon
compare LASTRESULT 0x6
if == jump 0x885D5EE ' Equal To
addpokemon EEVEE 5 EVERSTONE 0x0 0x0 0x0
setflag 0x1000
storepokemon 0x0 EEVEE
message 0x885D69B ' Its your \v\h02!
fanfare 0x101
showmsg
waitfanfare
waitbutton
release
end

#org 0x885D5EC
'-----------------------------------
release
end

#org 0x885D5EE
'-----------------------------------
msgbox 0x885D5F8 ' You don't have enoug...
callstd MSG_NOCLOSE ' Non-closing message
release
' Release commands close any open messages
end


#org 0x885D69B
= Its your \v\h02!

#org 0x885D5F8
= You don't have enough room in your party.
You have to use the command "hidesprite 0x(Person number)"

Then in advance map the flag number "1000" set as the person ID
Seen January 5th, 2017
Posted December 12th, 2015
27 posts
9.3 Years
I really need help with a give national dex script for fire red I've tried the following but it just upgrades it is there a way to give the national dex without having first getting the regional dex?

Spoiler:
#org 0x800000
lock
faceplayer
checkflag 0x10A
if 1 jump 0x800050
special 0x16F
setflag 0x10A
fanfare 0x13E
msgbox 0x800100
callstd 0x6
waitfanfare
release
end

#org 0x800050
msgbox 0x800070
callstd 0x6
release
end

#org 0x800070
= Like your new POKéDEX?

#org 0x800100
= Your POKéDEX was upgraded!
Spoiler:

#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x10A
if 0x1 goto @upgraded
setflag 0x829
special 0x16F
setflag 0x10A
fanfare 0x13E
msgbox @1 0x2 '"Your POKéDEX was upgraded!"
waitfanfare
end

'---------------
#org @upgraded
msgbox @2 0x2 '"Like your new POKéDEX?"
release
end


'---------
' Strings
'---------
#org @1
= Your POKéDEX was upgraded!

#org @2
= Like your new POKéDEX?

Here you go ;). What you only had to do was to activate the pokedex menu (which is highlighted in red). If you don't need the text to repeat itself one more time, then you should remove the callstd command...I don't know if you still need help for this script, though...
Male
Seen March 7th, 2014
Posted February 20th, 2014
48 posts
9.5 Years
Hey guys, I'm trying to make a script which when the player steps on the script tile, if they do not have their pokemon, it will automatically make them step back from the door. Here is what I have so far...

(Move back script)
#dynamic 0x80B7F2

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0xFF @move
release
end

#org @done
release
end

#org @1
= Better not leave your POKEMON!

#org @move
#raw 0x11
#raw 0xFE
Gotta Snag Em All

Pokemon Colosseum (For GBA)

Kurapika

Male
Lavendar Town
Seen 16 Hours Ago
Posted April 6th, 2023
943 posts
10.3 Years
Hey guys, I'm trying to make a script which when the player steps on the script tile, if they do not have their pokemon, it will automatically make them step back from the door. Here is what I have so far...

(Move back script)
#dynamic 0x80B7F2

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0xFF @move
release
end

#org @done
release
end

#org @1
= Better not leave your POKEMON!

#org @move
#raw 0x11
#raw 0xFE
This script will make the player step back but it won't make it leave the room.
So, instead of applymovement 0xFF @move you'll need to use a warp code that makes the player teleport outside.
G3T - GEN 3 TOOLS ( Windows / Android )


Male
Seen March 7th, 2014
Posted February 20th, 2014
48 posts
9.5 Years
Its not supposed to make them leave the room. It is just supposed to make them walk backwards if they try and leave without their pokemon. I am not trying to make them leave at all. Could you review the script again, still don't have it working.
Gotta Snag Em All

Pokemon Colosseum (For GBA)

Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
Assuming you are inserting the script correctly, the only thing I see missing is either a 'pause 0x__' or 'waitmovement 0x0' command after the applymovement.
Male
Seen March 7th, 2014
Posted February 20th, 2014
48 posts
9.5 Years
Made a couple of changes, and now the text is appearing as it is supposed to, then the game freezes. I'm not sure what I'm missing tbh, help? In advancemap I have the var number in as 5002 and unknown as 3, as it is supposed to be, right?

Spoiler:
(Move back script)
#dynamic 0x80B7F2

#org @start
setvar 0x5002
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0xFF @move
pause 0x30
waitmovement 0xFF
release
end

#org @done
release
end

#org @1
= Better not leave your POKEMON!

#org @move
#raw 0x11
#raw 0xFE
Gotta Snag Em All

Pokemon Colosseum (For GBA)

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.5 Years
Made a couple of changes, and now the text is appearing as it is supposed to, then the game freezes. I'm not sure what I'm missing tbh, help? In advancemap I have the var number in as 5002 and unknown as 3, as it is supposed to be, right?

Spoiler:
(Move back script)
#dynamic 0x80B7F2

#org @start
setvar 0x5002
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0xFF @move
pause 0x30
waitmovement 0xFF
release
end

#org @done
release
end

#org @1
= Better not leave your POKEMON!

#org @move
#raw 0x11
#raw 0xFE
Your var is way to high. Read this: http://www.pokecommunity.com/showthread.php?t=302347

Paired with Simba