Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub
Reload this Page Script Help Thread (DO NOT REQUEST SCRIPTS)

Notices
For all updates, view the main page.

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
New threads in this forum are to be approved by a moderator before they are displayed.



Closed Thread
 
Thread Tools
  #3901    
Old May 22nd, 2010 (05:57 PM).
vietazn654's Avatar
vietazn654 vietazn654 is offline
A sound soul dwells within me
Team Kalos
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Posts: 372
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Code:
#dynamic 0x26D46C

#org @start
checkflag 0x1200
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x2 @move
waitmovement 0x0
msgbox @2 0x6
call @pokemon
setflag 0x1200
release
end

#org @done
release
end

#org @move
#raw 0x62
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x00
#raw 0xFE

#org @1
= DAD: Oh, \v\h01!

#org @2
= Since PROF. BIRCH said he\ncouldn't give you a POKEMON, I\lcaught a MUDKIP for you, \v\h01!\pHere's your MUDKIP!

#org @pokemon
givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
return

#org @name
call 0x1A74EB
return

#org @3
= [black_fr]\v\h01 recieved a MUDKIP!

#org @4
= [black_fr]Would you like to give a nickname\nto MUDKIP?

#org @5
= Have fun taking care of the\nMUDKIP, \v\h01!
It freezes once the person is about to gimme the Pokemon T_T No gibber but freeze T_T Sorry... =[
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3902    
Old May 22nd, 2010 (06:51 PM).
Shiny Quagsire's Avatar
Shiny Quagsire Shiny Quagsire is offline
STOP HIM SAM, HE'S GONNA TELL US A STORY!!!
Team Unova
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 17
Gender: Male
Nature: Jolly
Posts: 691
Quote originally posted by vietazn654:
Code:
#dynamic 0x26D46C

#org @start
checkflag 0x1200
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x2 @move
waitmovement 0x0
msgbox @2 0x6
call @pokemon
setflag 0x1200
release
end

#org @done
release
end

#org @move
#raw 0x62
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x00
#raw 0xFE

#org @1
= DAD: Oh, \v\h01!

#org @2
= Since PROF. BIRCH said he\ncouldn't give you a POKEMON, I\lcaught a MUDKIP for you, \v\h01!\pHere's your MUDKIP!

#org @pokemon
givepokemon 0x283 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
return

#org @name
call 0x1A74EB
return

#org @3
= [black_fr]\v\h01 recieved a MUDKIP!

#org @4
= [black_fr]Would you like to give a nickname\nto MUDKIP?

#org @5
= Have fun taking care of the\nMUDKIP, \v\h01!
It freezes once the person is about to gimme the Pokemon T_T No gibber but freeze T_T Sorry... =[
The pokemon number has to be in HEX.

Correct Version:
Code:
givepokemon 0x11B 0x5 0x0 0x0 0x0 0x0
283 is 643 in decimal form. Since there is no 643, it freezes.
__________________



  #3903    
Old May 22nd, 2010 (10:53 PM).
Newpkmnhack Newpkmnhack is offline
Team Sinnoh
 
Join Date: Mar 2008
Gender:
Posts: 45
Rom - Pokemon Fire Red
Script editor - PKSV
Script - Simular to the sign post girl in pallet town

What im trying todo is a script simular to the script in pallet town with the sign post girl. When you talk to her she will move but if yu talk to her on the right side she will move to the left if you talk to her on the left she will move to the right. does anyone suggest how to make this happen?

Jon
  #3904    
Old May 22nd, 2010 (11:23 PM).
cormac cormac is offline
Team Sinnoh
 
Join Date: Jul 2007
Nature: Adamant
Posts: 6
Whats flag do I set for the national dex?
  #3905    
Old May 23rd, 2010 (05:19 AM).
herbeon herbeon is offline
Team Kanto
 
Join Date: Nov 2009
Posts: 10
Hi. Does anyone know the Elite Four Beaten flag in Emerald? Many thanks.

Besides, is there any idea how to make a sprite appear only after beating Elite Four, given that we have the flag above?
  #3906    
Old May 23rd, 2010 (06:04 AM).
vietazn654's Avatar
vietazn654 vietazn654 is offline
A sound soul dwells within me
Team Kalos
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Posts: 372
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Quote originally posted by shiny quagsire:
The pokemon number has to be in HEX.

Correct Version:
Code:
givepokemon 0x11B 0x5 0x0 0x0 0x0 0x0
283 is 643 in decimal form. Since there is no 643, it freezes.
Thanks though. Time to test out. The tut I was reading said that, but I don't know how to make it in Hex.
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3907    
Old May 23rd, 2010 (06:10 AM). Edited May 23rd, 2010 by Binary.
Binary's Avatar
Binary Binary is offline
え?
Team Johto
 
Join Date: Aug 2007
Age: 20
Posts: 3,994
@vietazn654:
The '0x' in front of a numerical indicates that it is a hex value.

@herbeon:
Why not decompile and see?
As for the second question, you need to use 'checkflag' to check if the flag has been set and continue to the part which shows the sprite. Most suitably a level script?
__________________
  #3908    
Old May 23rd, 2010 (06:41 AM).
Tropical Sunlight's Avatar
Tropical Sunlight Tropical Sunlight is offline
The Faltine
Team Kanto
 
Join Date: Mar 2008
Location: Slovenia
Age: 19
Gender: Male
Posts: 3,578
Send a message via Windows Live Messenger to Tropical Sunlight
Quote originally posted by cormac:
Whats flag do I set for the national dex?
It's not a flag; it's a special.
Well, it depends on which game you're hacking.

If you're hacking FR/LG, use this: special 0x16F
If you're hacking Emerald, use this: special 0x1F3
For Ruby and Sapphire, there is a bit more complex way.
__________________
  #3909    
Old May 23rd, 2010 (09:26 AM).
Chocos0's Avatar
Chocos0 Chocos0 is offline
Eclipse the Umbreon
Team Kalos
 
Join Date: Apr 2010
Gender: Male
Posts: 68
This is my third time posting here, my editor programs never work! Always problems problems problems.
But seriously, my real question is...
"What are parameters"
When I press debug in XSE it says "Too less parameters on line 6 the correct number is 2"
I have no idea what it is, and what it does. I'm using a basic script, just a regular talking one.
Here is the script:

#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @text
boxset 0x6
release
end

#org @text
= Chocos0: Hi everybody!\nSorry to keep you waiting!\nBut here is the video!
__________________


The more things change, the more they stay the same.

  #3910    
Old May 23rd, 2010 (09:34 AM).
vietazn654's Avatar
vietazn654 vietazn654 is offline
A sound soul dwells within me
Team Kalos
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Posts: 372
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Alright. I'm gonna make more scripts, but I have a question. Does anyone have a list of unused flags? Because IDK where to find flags that aren't used in Fire Red =\
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3911    
Old May 23rd, 2010 (12:32 PM).
destinedjagold's Avatar
destinedjagold destinedjagold is online now
Oh Hai Thar~ 'ω'
Team Kalos
Silver Tier
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Posts: 7,209
Quote originally posted by vietazn654:
Alright. I'm gonna make more scripts, but I have a question. Does anyone have a list of unused flags? Because IDK where to find flags that aren't used in Fire Red =\
usually, the flags around 1000 to 1200 are unused...

Quote originally posted by Chocos0:
This is my third time posting here, my editor programs never work! Always problems problems problems.
But seriously, my real question is...
"What are parameters"
When I press debug in XSE it says "Too less parameters on line 6 the correct number is 2"
I have no idea what it is, and what it does. I'm using a basic script, just a regular talking one.
Here is the script:

Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @text
boxset 0x6
release
end

#org @text
= Chocos0: Hi everybody!\nSorry to keep you waiting!\nBut here is the video!
line 6 is indicating to your msgbox command.
The new version of XSE changed the msgbox style...

Code:
msgbox @text 0x6
Quote originally posted by vietazn654:
Thanks though. Time to test out. The tut I was reading said that, but I don't know how to make it in Hex.
If you know the number, but you don't know it's hex value, then just type the number directly and XSE automatically converts it to hex.
__________________


3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)

  #3912    
Old May 23rd, 2010 (12:38 PM).
vietazn654's Avatar
vietazn654 vietazn654 is offline
A sound soul dwells within me
Team Kalos
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Posts: 372
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Quote originally posted by destinedjagold:


usually, the flags around 1000 to 1200 are unused...
so does that mean, a flag could be like 1001?
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3913    
Old May 23rd, 2010 (12:41 PM).
destinedjagold's Avatar
destinedjagold destinedjagold is online now
Oh Hai Thar~ 'ω'
Team Kalos
Silver Tier
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Posts: 7,209
Quote originally posted by vietazn654:
so does that mean, a flag could be like 1001?
yes but remember they're hex values.
so if you wanna use 'em, type 0x1001 instead of 1001.
__________________


3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)

  #3914    
Old May 23rd, 2010 (02:14 PM).
The-Great-Falkner's Avatar
The-Great-Falkner The-Great-Falkner is offline
There just that damn good!
Team Kalos
 
Join Date: Sep 2009
Location: Violet City
Gender: Male
Nature: Relaxed
Posts: 109
Hello...I made this movement script so this is what it looked like after I compiled it
'-----------------------
#org 0x765432
lock
msgbox 0x8765448 '"I better go get a pokemonnso I can ..."
callstd 0x6
applymovement MOVE_PLAYER 0x8765464
waitmovement 0x0
release
end


'-----------
' Movements
'-----------
#org 0x765464
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x765448
= I better go get a pokemon so\n I can leave this\nplace for good.

then when I check it in game it got stuck so I went back to XSE and it looked like this
'-----------------------
#org 0x765432
lock
msgbox 0x8765448 '"I better go get a pokemonnso I can ..."
callstd 0x6
applymovement MOVE_PLAYER 0x8765464
waitmovement 0x0
release
end


'-----------
' Movements
'-----------
#org 0x765464
#raw 0 'Face Down
#raw C3 'movC3
#raw 0 'Face Down
#raw D7 'movD7
#raw D5 'movD5
#raw E2 'movE2
#raw 0 'Face Down
#raw E0 'movE0
#raw D9 'movD9
#raw D5 'movD5
#raw EA 'movEA
#raw D9 'movD9
#raw 0 'Face Down
#raw E8 'movE8
#raw DC 'movDC
#raw DD 'movDD
#raw E7 'movE7
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x765448
= I better go get a pokemonnso I can leave this\nplace for good.

does anyone know how to fix this problem?
  #3915    
Old May 23rd, 2010 (05:40 PM).
vietazn654's Avatar
vietazn654 vietazn654 is offline
A sound soul dwells within me
Team Kalos
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Posts: 372
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Code:
#dynamic 0x2E0288

#org @start
checkflag 0x1002
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x1 @move
waitmovement 0x0
msgbox @2 0x6
call @pokemon
msgbox @6 0x6
call @pokedex
applymovement 0x1 @move0
msgbox @8 0x6
applymovement 0x1 @move1
setflag 0x1002
release
end

#org @done
release
end

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

#org @1
= [blue_fr]Oh! \v\h01!

#org @2
= [blue_fr]PROF. BIRCH: I felt bad that you\ncouldn't get a POKEMON, so I\lcaught a TREEKO for you!\pHere, \v\h01!

#org @pokemon
givepokemon 0x115 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
return

#org @name
call 0x1A74EB
return

#org @3
= \v\h01 recieved a TREEKO!

#org @4
= Would you like to give a nickname\nto TREEKO?

#org @5
= [blue_fr]Please raise that TREEKO.

#org @6
= [blue_fr]Also, here is a POKEDEX, \v\h01.\nIt's a device that records POKEMON\lyou have captured and seen.

#org @pokedex
fanfare 0x13E
msgbox @7 0x4
waitfanfare
closeonkeypress
setflag 0x829
return

#org @7
= \v\h01 recieved a POKEDEX!

#org @move0
#raw 0x62
#raw 0xFE

#org @8
= [blue_fr]Oh, you have a MUDKIP! Oh well,\nyou can keep the TREEKO anyways!\pAfter all, you are a patient young\nkid. Well, bye \v\h01!

#org @move1
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE
The last movement script wont work =\
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3916    
Old May 23rd, 2010 (09:37 PM).
TheChroniclesofLance's Avatar
TheChroniclesofLance TheChroniclesofLance is offline
Team Kalos
 
Join Date: Apr 2010
Gender: Male
Posts: 114
I am trying to write a script like the three starter pokemon. but not in the lab. How do I change a givepokemon into one that makes the player choose which one?
__________________
http://www.pokecommunity.com/showthread.php?t=220574
My Main Hack: Pokemon: World Tour



  #3917    
Old May 24th, 2010 (03:04 AM). Edited May 24th, 2010 by Binary.
Binary's Avatar
Binary Binary is offline
え?
Team Johto
 
Join Date: Aug 2007
Age: 20
Posts: 3,994
Quote originally posted by vietazn654:
Code:
#dynamic 0x2E0288

#org @start
checkflag 0x1002
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x1 @move
waitmovement 0x0
msgbox @2 0x6
call @pokemon
msgbox @6 0x6
call @pokedex
applymovement 0x1 @move0
msgbox @8 0x6
applymovement 0x1 @move1
setflag 0x1002
release
end

#org @done
release
end

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

#org @1
= [blue_fr]Oh! \v\h01!

#org @2
= [blue_fr]PROF. BIRCH: I felt bad that you\ncouldn't get a POKEMON, so I\lcaught a TREEKO for you!\pHere, \v\h01!

#org @pokemon
givepokemon 0x115 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
return

#org @name
call 0x1A74EB
return

#org @3
= \v\h01 recieved a TREEKO!

#org @4
= Would you like to give a nickname\nto TREEKO?

#org @5
= [blue_fr]Please raise that TREEKO.

#org @6
= [blue_fr]Also, here is a POKEDEX, \v\h01.\nIt's a device that records POKEMON\lyou have captured and seen.

#org @pokedex
fanfare 0x13E
msgbox @7 0x4
waitfanfare
closeonkeypress
setflag 0x829
return

#org @7
= \v\h01 recieved a POKEDEX!

#org @move0
#raw 0x62
#raw 0xFE

#org @8
= [blue_fr]Oh, you have a MUDKIP! Oh well,\nyou can keep the TREEKO anyways!\pAfter all, you are a patient young\nkid. Well, bye \v\h01!

#org @move1
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE
The last movement script wont work =\
Code:
#dynamic 0x2E0288

#org @start
checkflag 0x1002
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x1 @move
waitmovement 0x0
msgbox @2 0x6
call @pokemon
msgbox @6 0x6
call @pokedex
applymovement 0x1 @move0
waitmovement 0x0
msgbox @8 0x6
applymovement 0x1 @move1
waitmovement 0x0
setflag 0x1002
release
end

#org @done
release
end

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

#org @1
= [blue_fr]Oh! \v\h01!

#org @2
= [blue_fr]PROF. BIRCH: I felt bad that you\ncouldn't get a POKEMON, so I\lcaught a TREEKO for you!\pHere, \v\h01!

#org @pokemon
givepokemon 0x115 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
return

#org @name
call 0x1A74EB
return

#org @3
= \v\h01 recieved a TREEKO!

#org @4
= Would you like to give a nickname\nto TREEKO?

#org @5
= [blue_fr]Please raise that TREEKO.

#org @6
= [blue_fr]Also, here is a POKEDEX, \v\h01.\nIt's a device that records POKEMON\lyou have captured and seen.

#org @pokedex
fanfare 0x13E
msgbox @7 0x4
waitfanfare
closeonkeypress
setflag 0x829
return

#org @7
= \v\h01 recieved a POKEDEX!

#org @move0
#raw 0x62
#raw 0xFE

#org @8
= [blue_fr]Oh, you have a MUDKIP! Oh well,\nyou can keep the TREEKO anyways!\pAfter all, you are a patient young\nkid. Well, bye \v\h01!

#org @move1
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE
That's pretty silly XD;
Ahem...

Quote originally posted by TheChroniclesofLance:
I am trying to write a script like the three starter pokemon. but not in the lab. How do I change a givepokemon into one that makes the player choose which one?
Well, umm..you can't change a command. You need to use a multi-choice command and then givepokemon three times. I suggest you look it over.


Quote originally posted by The-Great-Falkner:
Hello...I made this movement script so this is what it looked like after I compiled it
'-----------------------
#org 0x765432
lock
msgbox 0x8765448 '"I better go get a pokemonnso I can ..."
callstd 0x6
applymovement MOVE_PLAYER 0x8765464
waitmovement 0x0
release
end


'-----------
' Movements
'-----------
#org 0x765464
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x765448
= I better go get a pokemon so\n I can leave this\nplace for good.

then when I check it in game it got stuck so I went back to XSE and it looked like this
'-----------------------
#org 0x765432
lock
msgbox 0x8765448 '"I better go get a pokemonnso I can ..."
callstd 0x6
applymovement MOVE_PLAYER 0x8765464
waitmovement 0x0
release
end


'-----------
' Movements
'-----------
#org 0x765464
#raw 0 'Face Down
#raw C3 'movC3
#raw 0 'Face Down
#raw D7 'movD7
#raw D5 'movD5
#raw E2 'movE2
#raw 0 'Face Down
#raw E0 'movE0
#raw D9 'movD9
#raw D5 'movD5
#raw EA 'movEA
#raw D9 'movD9
#raw 0 'Face Down
#raw E8 'movE8
#raw DC 'movDC
#raw DD 'movDD
#raw E7 'movE7
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x765448
= I better go get a pokemonnso I can leave this\nplace for good.

does anyone know how to fix this problem?
Firstly, it should be 'msgbox @pointer 0x2' shouldn't it?
And I think I've had that problem before. Try decompiling and editing or recompile in an offset with enough free space.
__________________
  #3918    
Old May 24th, 2010 (03:37 AM).
Ninja Caterpie's Avatar
Ninja Caterpie Ninja Caterpie is offline
Sitting by the back window
Team Sinnoh
 
Join Date: Mar 2008
Location: Best City OCE
Age: 19
Gender: Male
Nature: Bold
Posts: 5,989
Quote originally posted by Binary:
Firstly, it should be 'msgbox @pointer 0x2' shouldn't it?
And I think I've had that problem before. Try decompiling and editing or recompile in an offset with enough free space.
Uhh..wait. The pointer is wrong. It should go to 0x8765464, but the movements are in 0x765464. Check the script you compiled. The mistake should be there.
Uh, nup. Correct me if I'm wrong, someone, but that 8 is used to mean that the 765464 is a pointer.
__________________
Brony represent.
  #3919    
Old May 24th, 2010 (06:22 AM).
Nikolai Fox's Avatar
Nikolai Fox Nikolai Fox is offline
Team Hoenn
 
Join Date: Mar 2010
Gender: Male
Posts: 200
Quote originally posted by TheChroniclesofLance:
I am trying to write a script like the three starter pokemon. but not in the lab. How do I change a givepokemon into one that makes the player choose which one?
Quite simple really.

1. Put the three Pokéballs wherever you want (they are person events, and show up after all the people sprites)
2. Have a give Pokémon script for each of them.
3. At the end of each give Pokémon script, set one flag that is the same for all three Pokémon.

Have at the start of those three scripts:
checkflag 0xY (y = whatever flag you want to set)
if 0x1 goto @aftergot

#org @aftergot
msgbox @youalreadyhave

#org @youalreadyhave
= You already picked a Pokémon.

4. Have at the END of each script:
setflag 0xY (same y as above)
setflag 0xZ (z needs to be three seperate flags, and this flag has to have the same "person ID" as the pokéball you want to dissapear after picking it up).

Hope that's clear enough for ya. If not PM me or post here again.
  #3920    
Old May 24th, 2010 (09:41 AM).
Darksun's Avatar
Darksun Darksun is offline
triple rainbow, yo
Team Hoenn
 
Join Date: Jul 2008
Location: 22nd floor of the Carrot Tower in Setagaya, Tokyo, Japan
Gender: Male
Nature: Relaxed
Posts: 123
My game freezes when I try to talk to a guy with this script;

Code:
'---------------
#org 0x813347
msgbox 0x8813351 0x2 '"Where am I?"
end


'---------
' Strings
'---------
#org 0x813351
= Where am I?
Any help ?
__________________

  #3921    
Old May 24th, 2010 (09:51 AM).
vietazn654's Avatar
vietazn654 vietazn654 is offline
A sound soul dwells within me
Team Kalos
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Posts: 372
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
I have a question. If you see my script above, how do you make the person disappear afterwards? Because after the script, I still see him <.<
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3922    
Old May 24th, 2010 (10:31 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is offline
Team Hoenn
ModeratorCSGT
 
Join Date: Nov 2007
Location: Leicester, UK
Posts: 3,587
Quote originally posted by Darksun:
My game freezes when I try to talk to a guy with this script;

Code:
'---------------
#org 0x813347
msgbox 0x8813351 0x2 '"Where am I?"
end


'---------
' Strings
'---------
#org 0x813351
= Where am I?
Uhm.

Try this:
Spoiler:
Code:
#dynamic 0x800000
msgbox @1 0x2
release
end

#org @1
= Where am I?


Any help ?
Quote originally posted by vietazn654:
I have a question. If you see my script above, how do you make the person disappear afterwards? Because after the script, I still see him <.<
You need to assign the person event a Person ID with a flag you haven't used before, and then set that flag after the hidesprite command that you have in your script.
__________________
  #3923    
Old May 24th, 2010 (12:37 PM).
vietazn654's Avatar
vietazn654 vietazn654 is offline
A sound soul dwells within me
Team Kalos
 
Join Date: Feb 2010
Location: Virginia
Age: 20
Gender: Male
Nature: Adamant
Posts: 372
Send a message via Windows Live Messenger to vietazn654 Send a message via Yahoo to vietazn654
Hey, I've been looking through the people events in Advance map, and saw that a tree is a script. What is the script for a tree? =\
__________________

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #3924    
Old May 24th, 2010 (03:08 PM).
Buizark's Avatar
Buizark Buizark is offline
Always looking for an OU match
Team Sinnoh
 
Join Date: Dec 2009
Gender: Male
Nature: Calm
Posts: 72
Quote originally posted by vietazn654:
Hey, I've been looking through the people events in Advance map, and saw that a tree is a script. What is the script for a tree? =\
Not a script request thread.Decompile the tree script.
__________________
  #3925    
Old May 24th, 2010 (04:33 PM).
PwnageMew's Avatar
PwnageMew PwnageMew is offline
'Cuz I pwned you.
Team Johto
 
Join Date: May 2010
Location: In a house (No duh)
Age: 24
Gender: Male
Posts: 36
Can someone post the item codes for pokemon ruby? I'm trying to make a hack, and I need the script. (For more information on this hack, see some posts by HackDeoxys)
__________________

Paired with HackDeoxys l My Forum l Golden Sun Addict l Team Elemental
Whoever said "Nothing is impossible" Never tried slamming a revolving door... or stapling jello to a tree.
Closed Thread
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 10:54 PM.