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

Notices
For all updates, view the main page.

Beginner’s Lounge Where all good (and bad) ideas start. This is the Beginner’s Lounge, where if you need a helping hand or want to develop your small ideas, you bring it here. We won't bite.



Closed Thread
 
Thread Tools
  #6001    
Old August 7th, 2011 (02:00 PM).
drpepper111's Avatar
drpepper111 drpepper111 is offline
 
Join Date: Aug 2011
Location: Atlanta, GA
Gender: Male
Nature: Adamant
Posts: 8
Somebody gave me a script they used to get the National dex.

Spoiler:
#dynamic 0xoffset

#org @start
lock
faceplayer
checkflag 0xflag
if 0x1 goto @done
msgbox @1 msg_normal
goto @dex
release
end

#org @done
msgbox @sd msg_normal
release
end

#org @sd
= You already have one!

#org @1
= Here's your national dex!

#org @dex
special 0x16F
fanfare 0x13E
msgbox @rec msg_keepopen
waitfanfare
closeonkeypress
setflag 0xflag
release
end

#org @rec
= [player] received National dex!


Problem is that once I got this script I wasn't sure what to do with it even when I read many tutorials repeatedly.

I opened up AdvanceMap and have XSE as the default script program for it. I proceeded to try and paste this into Prof Oak's preexisting scripts to get the National dex right after he gives you the Pokedex. That didn't work.

Then I tried to create a new script event for the lab so I could get the pokedex, and I got stuck because I have no idea what to do.

I feel like I missed something. Do I need previous experience in coding/programming to do scripting? I feel hugely overwhelmed even only using a premade script given to me.
  #6002    
Old August 8th, 2011 (05:08 AM).
french_one french_one is offline
 
Join Date: Jun 2009
Gender: Male
Posts: 5
Hi, I have this script:

#dynamic 0xf00000
#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x6 0x0
wildbattle 0xf5 0x19 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @1
= Suiiii!

There's no problem with this script, but I just wanna know how we can do to put the lugia music battle when the battle is beginning...?
Thanks
  #6003    
Old August 8th, 2011 (07:33 AM).
Kevin's Avatar
Kevin Kevin is offline
kevin del rey
Silver Tier
 
Join Date: Jul 2010
Location: Virginia
Age: 16
Gender: Male
Posts: 2,689
Quote originally posted by drpepper111:
Somebody gave me a script they used to get the National dex.

Spoiler:
#dynamic 0xoffset

#org @start
lock
faceplayer
checkflag 0xflag
if 0x1 goto @done
msgbox @1 msg_normal
goto @dex
release
end

#org @done
msgbox @sd msg_normal
release
end

#org @sd
= You already have one!

#org @1
= Here's your national dex!

#org @dex
special 0x16F
fanfare 0x13E
msgbox @rec msg_keepopen
waitfanfare
closeonkeypress
setflag 0xflag
release
end

#org @rec
= [player] received National dex!


Problem is that once I got this script I wasn't sure what to do with it even when I read many tutorials repeatedly.

I opened up AdvanceMap and have XSE as the default script program for it. I proceeded to try and paste this into Prof Oak's preexisting scripts to get the National dex right after he gives you the Pokedex. That didn't work.

Then I tried to create a new script event for the lab so I could get the pokedex, and I got stuck because I have no idea what to do.

I feel like I missed something. Do I need previous experience in coding/programming to do scripting? I feel hugely overwhelmed even only using a premade script given to me.
If you inserted the script after the script when Prof. Oak gives you the Pokedex it probably didn't work since this script required you to talk to the person (which is why it has lock and faceplayer).

I suggest you make a totally new script for this, since copying + pasting this script in won't work as smoothly than creating a new script. Check out some scripting tutorials (preferably diegoisawesome's tutorial).

Quote originally posted by french_one:
Hi, I have this script:

#dynamic 0xf00000
#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x6 0x0
wildbattle 0xf5 0x19 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @1
= Suiiii!

There's no problem with this script, but I just wanna know how we can do to put the lugia music battle when the battle is beginning...?
Thanks :)
You'd need to know ASM if I'm correct.
__________________
  #6004    
Old August 9th, 2011 (05:00 AM).
french_one french_one is offline
 
Join Date: Jun 2009
Gender: Male
Posts: 5
Thanks for your answer, but I don't know what is ASM code, I'll study that soon
  #6005    
Old August 9th, 2011 (09:04 AM).
ares10's Avatar
ares10 ares10 is offline
 
Join Date: Jan 2010
Location: everywhere and nowhere
Gender: Male
Nature: Brave
Posts: 63
#dynamic 0x800200
#org @start
checkflag 0x828
if 0x1 goto @done
applymovement 0x02 @move1
waitmovement 0x2
applymovement 0x03 @move2
waitmovement 0x3
msgbox @1 0x6
applymovement 0x04 @move3
waitmovement 0x04
msgbox @2 0x6
applymovement 0x06 @move4
waitmovement 0x06
msgbox @3 0x6
fadescreen 0x1
warp 0x3 0x1 0x0 0x6 0x9
release
end

#org @done
release
end

#org @move
#raw 0x60

#org @move2
#raw 0x60
#raw 0x61
#raw 0x60
#raw 0x61
#raw 0x60
#raw 0x61
#raw 0x60
#raw 0x61
#raw 0x60
#raw 0x61
#raw 0x60
#raw 0x61
#raw 0xFE

#org @1
(HERE)=???:Pardon me. You wouldn’t\nhappen to know where I could find\lLANCE the DRAGON master, would\lyou?\p\v\h01: …Dad? Can you come\noutside\lplease?\p???: Erm, that won’t be\nnecessary. All I need is too…

#org @move3
#raw 0x65

#org @2
= LANCE: DOCTOR…!\p\v\h01: DOCTOR? Doctor who?\pLANCE: I’ll explain later.\pDR.: Actually, I think I ought to\nexplain myself. Now, what is your\lname?\p\v\h01: \v\h01, Mr.-- Erm, DR.\nDR.: Excellent. And your father\lis LANCE?\p\v\h01: Well, yeah.\nDR.: Is that so? Well, you see,\lyour father and I met quite a\lwhile ago, back before he even\ljoined the Elite Four, and,\llogically, before you were born.\lI found him while he was training\lto take on the PKMN League, and\ltook him under my wing as we\ljoined to defeat Team Glacier,\lwho aimed to freeze the planet of\lBarcelona. All of that practice\lagainst Ice, his sole weakness,\lhelped him to dominate the\lLeague, which is why he’s who he\lis now. That was a pretty crazy\ladventure, was it not?\pLANCE: It certainly was, but\nthat’s not why you’re here, is it?

#org @3
= DR.: …No, it’s not. There is a\nsinister team that I am tracking\ldown that goes by the name of\lRagnarok. They’ve been working on\la highly secretive plan for\lyears, and I’ve been tracking\lthem.\pLANCE: How secretive?\pDR.: Did you know they existed\nuntil now?\pLANCE: No Idea.\pDR.: Then you probably don’t know\nthat they caused the premature\leruption of Cinnibar Island’s\lvolcano, and used high-pitch\lfrequency airwaves to drive the\lGyarados, who protect the region,\lto flood the Power Plant, cutting\loff the power to the entire\lregion, allowing them to bring it\lunder its control.\pLANCE: …WHAT!?\p\v\h01: We can’t let that happen!\pDR.: No, we cannot. But while it\nseems that they are just aiming\lfor world domination, there\lexists an ulterior motive. Are\lyou aware of MEWTWO?\l\v\h01: I’ve heard legends of it,\lbut I’m not too familiar\lotherwise…\pDR.: It’s not a legend. It\nexists. And everything they’ve\ldone is leading up to it. But for\lnow, that’s more or less\lirrelevant. What’s important now\lis that we stop them from\lcompleting the preliminary stage\lof their plot.\pLANCE: Right. What’s your plan,\nDOCTOR?\pDR.: As it happens, I was hoping\nyou’d have a child. This time, I\lneed \v\h01‘s help.\pLANCE: Hold on a minute, \v\h01-\nhasn't got a PKMN. I’m not certain\lI want to let you pull \v\h01 into\lthis if it’s truly as bad as it\lsound, which it likely does.\pDR.: Nonsense! Really, the\nconditions could not be more\lperfect for \v\h01. You know, you\lweren’t that much older than him\lwhen I met you.\pLANCE: I was 19. \v\h01‘s just not\n16. It was a foolish idea for me\lto go along with you that\lhappened to turn out perfectly,\lbut I can’t trust things to be so\lperfect twice in a row, and I\ldon’t think you can guarantee\lthat nothing will happen to\l\v\h01.\pDR.: Now, really, LANCE. You’re\nhurting my feelings! Do you\lreally think I would ever let\lanything happen to \v\h01? Things\lturned out well for you because I\lwas with you every step of the\lway. How can you expect me to do\lany less for \v\h01?\pLANCE: …I don’t know, DOCTOR.\n\v\h01: I do.\pLANCE: \v\h01?\p\v\h01: If this guy’s the reason\nyou became a Master and a\lChampion, then I want to go with\lhim, too. Besides, it can’t be\lthat hard, can it?\pLANCE: (sigh)… Neither of you are\ngoing to let up about this, are\lyou?\p\v\h01: Nope.\nDR.: Not as long as the world is\lin danger.\pLANCE: …Alright. But, \v\h01, I\nneed you go talk to your mother\labout this. DOCTOR, would you\lmind coming in as well?\pDR.: Not at all, old friend. Not\nat all.

When ever i compile the script it says "Error 9 subscript out of rage on line 44" at the (HERE) part can anyone tell me whats wrong!
__________________


Hacks I support:
  #6006    
Old August 9th, 2011 (11:31 AM).
masterquestmq's Avatar
masterquestmq masterquestmq is offline
Enthusiastic Rom Hacker
 
Join Date: Nov 2010
Gender: Male
Posts: 125
Well it seems right, some changes made in italic

if it still dosent work i made an alternative script below


Quote originally posted by ares10:
#dynamic 0x800200
#org @start
checkflag 0x828
if 0x1 goto @done
applymovement 0x02 @move1
waitmovement 0x2
applymovement 0x03 @move2
waitmovement 0x3
msgbox @1 0x6
applymovement 0x04 @move3
waitmovement 0x04
msgbox @2 0x6
applymovement 0x06 @move4
waitmovement 0x06
msgbox @3 0x6
fadescreen 0x1
warp 0x3 0x1 0x0 0x6 0x9
release
end

#org @done
release
end

#org @move
#raw 0x60
#raw 0xFE
#org @move2
#raw 0x60
#raw 0x61
#raw 0x60
#raw 0x61
#raw 0x60
#raw 0x61
#raw 0x60
#raw 0x61
#raw 0x60
#raw 0x61
#raw 0x60
#raw 0x61
#raw 0xFE

#org @1
(HERE)=???ardon me. You wouldn’t\nhappen to know where I could find\lLANCE the DRAGON master, would\lyou?\p\v\h01: …Dad? Can you come\noutside\lplease?\p???: Erm, that won’t be\nnecessary. All I need is too…

#org @move3
#raw 0x65
#raw 0xFE

#org @2
= (TOO LONG TEXT)(break it up into more talking scripts i.e @4 @5 @6 etc)

When ever i compile the script it says "Error 9 subscript out of rage on line 44" at the (HERE) part can anyone tell me whats wrong!

alternative script

#org @start
checkflag 0x828
if 0x0 got @play
if 0x1 goto @done

org @play
applymovement 0x02 @move1
waitmovement 0x2
applymovement 0x03 @move2
waitmovement 0x3
msgbox @1 0x6
applymovement 0x04 @move3
waitmovement 0x04
msgbox @2 0x6
applymovement 0x06 @move4
waitmovement 0x06
msgbox @3 0x6
fadescreen 0x1
warp 0x3 0x1 0x0 0x6 0x9
release
end

#org @done
release
end


and continue the rest of the script
p.s. check your applymovement scripts some of them are missing raw 0xFE u dont put this in the script will go wrong.


good luck
  #6007    
Old August 9th, 2011 (12:34 PM).
cheshirecat's Avatar
cheshirecat cheshirecat is offline
A Tad Insane
 
Join Date: Aug 2011
Location: Edge of Sanity
Gender: Male
Nature: Quirky
Posts: 4
Hi everyone, I've been playing with this script for a little while and it's almost there but it needs to work out a few bugs.

The script should progress like this:
(Talk to man)
Man: ...... ..... ..........
Man: Get out of Here!
Screen Fades to Black
Man: Your journey ends.
Game restarts and dumps save data.

What the script is currently doing is:
Man: .... .... ...... (working fine)
Fades to Black (Out of order)
Man: Get out of here! (Should be before the fade)
NOT saying "Your journey ends"
restarting the game (no save dump - I know this is not the correct cmd to dump the save data, is there one?)

Here's the actual script I have:
Code:
#org 0x8804000
'-----------------------------------
lock
faceplayer
msgbox 0x8804023 ' ......\n.........\l....
callstd MSG_LOCK ' Built-in lock command
msgbox 0x8804043 ' get out of here!
fadescreen FADEOUT_BLACK
callstd MSG_LOCK ' Built-in lock command
msgbox 0x8804058 ' Your journey ends.
special 0x10F
end


#org 0x8804023
= ......\n.........\l.....

#org 0x8804043
= Get out of here!\nWhile you still can!

#org 0x8804058
= Your journey ends.
Thanks for any and all help on this!
__________________
Madness takes it's toll, please have exact change.

Regards,
Cheshire Cat
  #6008    
Old August 9th, 2011 (06:01 PM).
DavidJCobb DavidJCobb is offline
RESIDENT RAAAAAAAAAAAAGEMASTER
 
Join Date: Jul 2010
Gender: Male
Nature: Lonely
Posts: 275
Quote originally posted by cheshirecat:
-snip-
I'm just guessing here, but perhaps a waitkeypress before the fadescreen could help?
__________________
  #6009    
Old August 12th, 2011 (03:02 AM).
Sonnerrs Sonnerrs is offline
 
Join Date: Jul 2011
Gender: Male
Posts: 3
Can anyone help, in my script i have a song being played using
"playsong 0x[song] 0x0"
but i dont know how to get the song to stop so it doesnt play though the whole of the script? can anyone tell me the command, thanks.
  #6010    
Old August 12th, 2011 (04:54 AM).
Quickster's Avatar
Quickster Quickster is offline
Dream or Drop?
 
Join Date: Oct 2007
Gender: Male
Nature: Quiet
Posts: 350
Quote originally posted by cheshirecat:
Hi everyone, I've been playing with this script for a little while and it's almost there but it needs to work out a few bugs.

The script should progress like this:
(Talk to man)
Man: ...... ..... ..........
Man: Get out of Here!
Screen Fades to Black
Man: Your journey ends.
Game restarts and dumps save data.

What the script is currently doing is:
Man: .... .... ...... (working fine)
Fades to Black (Out of order)
Man: Get out of here! (Should be before the fade)
NOT saying "Your journey ends"
restarting the game (no save dump - I know this is not the correct cmd to dump the save data, is there one?)

Here's the actual script I have:
Code:
#org 0x8804000
'-----------------------------------
lock
faceplayer
msgbox 0x8804023 ' ......\n.........\l....
callstd MSG_LOCK ' Built-in lock command
msgbox 0x8804043 ' get out of here!
fadescreen FADEOUT_BLACK
callstd MSG_LOCK ' Built-in lock command
msgbox 0x8804058 ' Your journey ends.
special 0x10F
end


#org 0x8804023
= ......\n.........\l.....

#org 0x8804043
= Get out of here!\nWhile you still can!

#org 0x8804058
= Your journey ends.
Thanks for any and all help on this!
Well Im not sure about the save data, but I think you can use closeonkeypress after your msgbox, if its 0x4, but before fadescreen.
__________________
I laugh looking at this.

But sometimes I want to come back to it...

  #6011    
Old August 12th, 2011 (05:30 AM). Edited August 12th, 2011 by mihir.
mihir mihir is offline
 
Join Date: May 2011
Gender: Male
Posts: 24
can anyone tell me script COMMANDS ..................... or a link?????

I do not know the first thing about scripts.Or creating them
  #6012    
Old August 12th, 2011 (06:19 AM).
mfmeijer's Avatar
mfmeijer mfmeijer is offline
 
Join Date: Jul 2011
Location: The Netherlands
Gender: Male
Posts: 52
Can you tell me the pokescript command for a boat like the one to the sevii islands?
__________________
PM for friend safari!
Skiddo Ivysaur

Pokemon Y FC: 4441-9547-3084
  #6013    
Old August 12th, 2011 (06:26 AM).
metapod23's Avatar
metapod23 metapod23 is offline
Hardened Trainer
 
Join Date: Mar 2009
Gender: Male
Nature: Timid
Posts: 673
Quote originally posted by Sonnerrs:
Can anyone help, in my script i have a song being played using
"playsong 0x[song] 0x0"
but i dont know how to get the song to stop so it doesnt play though the whole of the script? can anyone tell me the command, thanks.
If you put fadedefault anywhere in the script, it will stop the current song and resume the default song for the map you're in.
__________________
  #6014    
Old August 12th, 2011 (02:44 PM).
hinkage's Avatar
hinkage hinkage is offline
Go make some new disaster
Gold Tier
 
Join Date: Aug 2010
Age: 19
Posts: 378
Quote originally posted by mihir:
can anyone tell me script COMMANDS ..................... or a link?????

I do not know the first thing about scripts.Or creating them
http://www.pokecommunity.com/showthread.php?t=128887

Commands and their uses/explanations.
__________________
(ღ˘⌣˘ღ)
  #6015    
Old August 13th, 2011 (12:29 AM).
mihir mihir is offline
 
Join Date: May 2011
Gender: Male
Posts: 24
thanks a lot !!!!!!!!!!!!!!!!!!!!!!!!!!
  #6016    
Old August 13th, 2011 (07:08 AM).
Cheesewig's Avatar
Cheesewig Cheesewig is offline
Hi!
 
Join Date: Jul 2011
Gender: Male
Nature: Relaxed
Posts: 54
How would I make a script to make an NPC Follow the player through every map.

ROM: Pokémon Gold
__________________
My name is Aochider I was called . Dr. PET was loved and esteemed by us all!
  #6017    
Old August 13th, 2011 (07:42 PM).
ZxC Mirai's Avatar
ZxC Mirai ZxC Mirai is offline
Huh?
 
Join Date: Jun 2011
Location: Pampanga Philippines
Gender: Male
Nature: Timid
Posts: 267
Can someone answer my questions????

Q1:How can i disable this PokedexScript???
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x829
if 0x1 goto @done
msgbox @waiit 0x6
applymovement 0x02 @wait
waitmovement 0x0
applymovement 0xFF @huh
waitmovement 0x0
msgbox @givepokedex 0x6
setflag 0x829
msgbox @receivedex 0x6
special 0x16F
msgbox @balls 0x6
giveitem 0x4 0x05 MSG_OBTAIN
msgbox @backto 0x6
applymovement 0x02 @backtolab
waitmovement 0x0
release
end

#org @waiit
= Waiiiiiiittt!

#org @wait
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0xFE

#org @huh
#raw 0x62
#raw 0x1
#raw 0xFE

#org @givepokedex
= I have Forgotten to give you This!

#org @receivedex
= You have receive a PokeDex!

#org @balls
= It is an Item that Catches a\nPOKeMON!

#org @backto
= Well i must be back to LAB!\pSee you Later [PLAYER]!

#org @backtolab
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE


#org @done
release
end


Q2:how can i enable the Pokedex Script when i finished this Script...
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x210
if 0x1 goto @done
lock
faceplayer
applymovement 0xFF @come
waitmovement 0x0
msgbox @whoareyou 0x6
applymovement 0xFF @yup
waitmovement 0x0
msgbox @ok 0x6
setflag 0x210
release
end

#org @come
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @whoareyou
= Hmmmmm! Who are you?\n[...]\p[...]\p[...]\pOh! you must be [PLAYER]!

#org @yup
#raw 0x22
#raw 0x22
#raw 0xFE

#org @ok
= William: OK!\pHere I have 3 Pokeballs this\nPOKeMONS are Rarely Seen in\lGoldiea Region!\pYou are Lucky i have this\nPOKeMONS!\pGo on Choose ONE!

#org @done
release
end



and lastly how can i enable this script after i have my POKeMON...
Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @gotolab 0x6
compare LASTRESULT 1
if b_true goto @pokemon
release
end

#org @gotolab
= Go to Lab Now [PLAYER]

#org @pokemon
lock
faceplayer
msgbox @cutemon 0x6
closeonkeypress
fadescreen 0x1
fanfare 0x100
special 0x0
waitfanfare
fadescreen 0x0
msgbox @healed 0x6
release
end

#org @cutemon
= What a Cute POKeMON you have\nthere!\pYou should take a Quick Rest here!

#org @healed
= Hmmmmm! Much better!\pGoodLuck to your Adventure [PLAYER]



Thank you...

help will be greatly appreciated :D
__________________





POKEMON SkyWhite COMING SOON....
  #6018    
Old August 14th, 2011 (04:11 PM).
dido's Avatar
dido dido is offline
DARK DIALGA OF DOOOOOOOOM
 
Join Date: Mar 2007
Gender:
Nature: Bold
Posts: 20
Hi guys!

So I am using Pokémon Firered version and I am trying to make a person move once I beat the elite four. The problem is that I don't know what flag I have to assign to that person for her to recognize I beat the elite four . I looked through the thread but I coudn't find the flag number anywhere.

I am using XSE (btw, it's awesome) by the way. It would be awesome if someone helped out here

Thanks everyone!!

I just want the flag number . I am not looking for a script.
__________________
lol buterfree...
  #6019    
Old August 14th, 2011 (09:18 PM). Edited August 15th, 2011 by GoldxLight.
GoldxLight GoldxLight is offline
 
Join Date: Apr 2009
Posts: 50
Hey guys, I was trying to make a script once the player got downstairs.
It'd pop up an exclamation mark and the camera would move to the item on the table. But once he steps on the event tile, it just locks infinitely. :/
Spoiler:

Quote:

'---------------
#org 0x201F60
lockall
checkflag 0x1232
if 0x1
goto 0x826D6CC
releaseall
end

'---------------
#org 0x26D6CC
applymovement MOVE_PLAYER
0x826D6E9
special 0x113
applymovement MOVE_CAMERA
0x826D6EC
waitmovement 0x0
special 0x114
setflag
0x1232
releaseall
end

'-----------
' Movements
'-----------
#org 0x26D6E9
#raw 0x62
'Exclamation Mark (!)
#raw 0xFE 'End of Movements


#org 0x26D6EC
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left
(Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x18 'Delay1
#raw 0x1E 'Step Up
(Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw
0xFE 'End of Movements
__________________
  #6020    
Old August 15th, 2011 (01:42 AM).
ZxC Mirai's Avatar
ZxC Mirai ZxC Mirai is offline
Huh?
 
Join Date: Jun 2011
Location: Pampanga Philippines
Gender: Male
Nature: Timid
Posts: 267
Quote originally posted by UnForgiven*:
Can someone answer my questions????

Q1:How can i disable this PokedexScript???
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x829
if 0x1 goto @done
msgbox @waiit 0x6
applymovement 0x02 @wait
waitmovement 0x0
applymovement 0xFF @huh
waitmovement 0x0
msgbox @givepokedex 0x6
setflag 0x829
msgbox @receivedex 0x6
special 0x16F
msgbox @balls 0x6
giveitem 0x4 0x05 MSG_OBTAIN
msgbox @backto 0x6
applymovement 0x02 @backtolab
waitmovement 0x0
release
end

#org @waiit
= Waiiiiiiittt!

#org @wait
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0xFE

#org @huh
#raw 0x62
#raw 0x1
#raw 0xFE

#org @givepokedex
= I have Forgotten to give you This!

#org @receivedex
= You have receive a PokeDex!

#org @balls
= It is an Item that Catches a\nPOKeMON!

#org @backto
= Well i must be back to LAB!\pSee you Later [PLAYER]!

#org @backtolab
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE


#org @done
release
end


Q2:how can i enable the Pokedex Script when i finished this Script...
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x210
if 0x1 goto @done
lock
faceplayer
applymovement 0xFF @come
waitmovement 0x0
msgbox @whoareyou 0x6
applymovement 0xFF @yup
waitmovement 0x0
msgbox @ok 0x6
setflag 0x210
release
end

#org @come
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @whoareyou
= Hmmmmm! Who are you?\n[...]\p[...]\p[...]\pOh! you must be [PLAYER]!

#org @yup
#raw 0x22
#raw 0x22
#raw 0xFE

#org @ok
= William: OK!\pHere I have 3 Pokeballs this\nPOKeMONS are Rarely Seen in\lGoldiea Region!\pYou are Lucky i have this\nPOKeMONS!\pGo on Choose ONE!

#org @done
release
end



and lastly how can i enable this script after i have my POKeMON...
Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @gotolab 0x6
compare LASTRESULT 1
if b_true goto @pokemon
release
end

#org @gotolab
= Go to Lab Now [PLAYER]

#org @pokemon
lock
faceplayer
msgbox @cutemon 0x6
closeonkeypress
fadescreen 0x1
fanfare 0x100
special 0x0
waitfanfare
fadescreen 0x0
msgbox @healed 0x6
release
end

#org @cutemon
= What a Cute POKeMON you have\nthere!\pYou should take a Quick Rest here!

#org @healed
= Hmmmmm! Much better!\pGoodLuck to your Adventure [PLAYER]



Thank you...

help will be greatly appreciated :D
could someone answer this Question?.............................
__________________





POKEMON SkyWhite COMING SOON....
  #6021    
Old August 15th, 2011 (06:18 AM).
metapod23's Avatar
metapod23 metapod23 is offline
Hardened Trainer
 
Join Date: Mar 2009
Gender: Male
Nature: Timid
Posts: 673
Quote originally posted by UnForgiven*:
could someone answer this Question?.............................
The simplest answer is to set variables.

If the variable you used for one of the scripts was 4050 and the value you put in A-Map for it was 0000, to deactivate it you would have to set it to any other value in the script itself. So if you put:

Code:
setvar 0x4050 0x1
in that script, once the script is finished executing, it will not execute again unless you were to reset variable 4050 to 0x0 in a separate script.

If you want one script to be dependent on another script, have the second script use the same variable to activate, but put the variable value you used to deactivate the first script in the var value box in A-Map. In this case, the second script's variable # would be 4050 and its value would be 0001.

In the second script, you would then have to put

Code:
setvar 0x4050 0x2
somewhere, so that it deactivates the second script and continues to not have the first script active (the first script will only start if you step on the tile and variable 4050 is set to 0, and the second script if 4050 is set to 1.

The same thing can be done with the script that activates when you get your first Pokemon, but using a different variable (like 4051, for instance).

Something like:

Code:
countpokemon
compare lastresult 0x1
if 0x4 goto @deactivate
msgbox @stop msg_normal
applymovement 0xff @stepdown
release
end

#org @deactivate
setvar 0x4051 0x1
release
end

#org @stop
= You don't have your first Pokemon.

#org @stepdown
#raw 0x10
#raw 0xfe
Hope this helps.
__________________
  #6022    
Old August 15th, 2011 (11:36 AM). Edited August 18th, 2011 by niven.
niven's Avatar
niven niven is offline
Leader of Team LegendaryTrio
 
Join Date: Jul 2011
Location: Where I'm sittin'
Age: 16
Gender: Male
Nature: Brave
Posts: 109
I'm trying to make a big script.I already wrote it but can't write it to my game, because every time i try i get an error. I use pokescript to compile and write scripts, it usually works, but this time i got run-time error '13' type mismatch.

My script is:
Spoiler:
#org $script
jingle
checkgender
compare 0x800D 0x0000
if 0x01 goto $boy
compare 0x800D 0x0001
if 0x01 goto $girl
release
end

#org $boy
clearflag 0x1505
clearflag 0x1506
clearflag 0x1507
showsprite 9
applymovement 9 $GHTHTG
$GHTHTG 1 ; #binary 0x10 0x10 0x10 0x10 0x10 0x10 0x12 0x10 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x62 0xFE
pausemove 0
applymovement 0xFF $move
$move 1 ; #binary 0x03 0x62 0xFE
pausemove 0
message $oak
$oak 1 = Hello \v\h01, Long time \nno see. \pAn old friend of mine named \nAsh Ketchum,who's very much \plike you,gave me his favorite \n pokemon because he's \pquitting being a trainer to \nbecome a pkmn researcher, \plike myself.
boxset 6
showsprite 8
applymovement 8 $garymove
$garymove 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x11 0x12 0x12 0x04 0xFE
pausemove 0
showsprite 7
applymovement 7 $brendonmove
$brendonmove 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE
pausemove 0
message $oak1
$oak1 1 = Ahhhhh, Brendon, \v\h06, \nyou're here. \p \v\h06: Why are we here? \pBrendon: Yeah, why are we \nhere? \pOAK: You're here because, \nI'm going to give one of you, \p a very special and STRONG \npokemon. \p \v\h01, you,gary or \nbrendon will get this pokemon. \pTo decide who get's it, \nyou'll have a small tourney. \pFirst, Gary and brendon will \nbattle and the winner will \pface you. \pYou're gonna be in the finals \n since \v\h06 and brendon \phave never defeated you in \nbattle. \pThe winner of the tourney \nwill recieve that pokemon \pand two mystery prizes that \ni haven't told you about yet.
boxset 6
applymovement 7 $bmove
$bmove 1 ; #binary 0x12 0x12 0x11 0x03 0xFE
pausemove 0
applymovement 8 $gmove
$gmove 1 ; #binary 0x13 0x13 0x13 0x02 0xFE
pausemove 0
applymovement 9 $omove
$omove 1 ; #binary 0x01 0xFE
applymovement 0xFF $omove
pausemove 0
message $battle
$battle 1 = \v\h06: Ready to lose \nbrendon? \pBrendon:Don't get to cocky. \pOAK:Let the battle ... \pBEGIN!
boxset 6
setflag 0x1505
setflag 0x1506
setflag 0x1507
setvar 0x6003 0x0001
goto $GBbattle90
release
end

#org $GBbattle90
applymovement 8 $gbattle234
$gbattle234 1 ; #binary 0x54 0x54 0xFE
pausemove 0
applymovement 7 $bbattle
$bbattle 1 ; #binary 0x55 0x55 0xFE
pausemove 0
applymovement 8 $gbattle1
$gbattle1 1 ; #binary 0x54 0x54 0x54 0xFE
pausemove 0
applymovement 7 $bbattle1
$bbattle1 1 ; #binary 0x55 0x55 0x55 0xFE
pausemove 0
applymovement 8 $gbattle2
$gbattle2 1 ; #binary 0x54 0xFE
pausemove 0
applymovement 7 $bbattle2
$bbattle2 1 ; #binary 0x55 0xFE
pausemove 0
message $bbb
$bbb 1 = Brendon: GO Rayquaza! \p \v\h06:Noooooooooooooo!
boxset 6
applymovement 8 $gbattle3
$gbattle3 1 ; #binary 0x51 0xFE
pausemove 0
goto $ready
release
end

#org $ready
applymovement 8 $defeat
$defeat 1 ; #binary 0x10 0x12 0x12 0xFE
pausemove 0
message $bsttle
$bsttle 1 = \v\h01: My turn. \pBrendon:I hope you're tougher \n than \v\h06. \p \v\h01:Don't worry. \pI am!
boxset 6
applymovement 0xFF $bsttle2
$bsttle2 1 ; #binary 0x11 0x13 0x13 0x13 0xFE
pausemove 0
goto $back
release
end

#org $back
trainerbattle 0x01 0x47 $see $win $further
$see 1 = Oak: \v\h01, Brendon, \nyou ready? \pO.K., then let this battle \p BEGIN!
$win 1 = Brendon: How is that possible? \p \v\h01, You beat my 6 \nlegendary pokemon! \pI knew you got better, but \nthat's just insane.
message $after
$after 1 = Oak: here you go.
boxset 6
release
end

#org $further
applymovement 9 $poke
$poke 1 ; #binary 0x11 0x13 0xFE
pausemove 0
message $after
boxset 6
givepokemon 25 88 0xCA
fanfare 0x13E
message $poke!
$poke! 1 = \v\h01 received a Pikachu \nfrom Prof. Oak!
boxset 4
waitfanfare
goto $bonus
release
end

#org $bonus
message $bonus1
$bonus1 1 = OAK:Now for your bonus gifts! \pTheir both pokemon.
boxset 6
givepokemon 232 85 0x00
fanfare 0x13E
message $poke!2
$poke!2 1 = \v\h01 received a Donphan \nfrom Prof. Oak!
boxset 4
waitfanfare
givepokemon 279 87 0x00
fanfare 0x13E
message $poke!3
$poke!3 1 = \v\h01 received a Sceptile \nfrom Prof. Oak!
boxset 4
waitfanfare
message $buhbye
$buhbye 1 = Brendon:I got to get back \nto Hoenn . \p \v\h06:I have to get back \nto the Indigo plateau. \p OAK:I need to continue my \nresearch at my lab in Pallet. \pOak, Brendon, and \v\h06: Cya!
boxset 6
goto $end
release
end

#org $end
fadescreen 1
removesprite 8
removesprite 9
removesprite 7
removesprite 10
pause 0x20
fadescreen 0
release
end

#org $girl
clearflag 0x1505
clearflag 0x1506
clearflag 0x1508
showsprite 9
applymovement 9 $oakmove8
$oakmove8 1 ; #binary 0x10 0x10 0x10 0x10 0x10 0x10 0x12 0x10 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x62 0xFE
pausemove 0
applymovement 0xFF $move8
$move8 1 ; #binary 0x03 0x62 0xFE
pausemove 0
message $oak8
$oak8 1 = Hello \v\h01, Long time \nno see. \pAn old friend of mine named \nMisty, gave me her favorite \ppokemon because she's \nquitting being a trainer to \pbecome a pkmn researcher, \nlike myself.
boxset 6
showsprite 8
applymovement 8 $garymove8
$garymove8 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x11 0x12 0x12 0x04 0xFE
pausemove 0
showsprite 10
applymovement 10 $maymove
$maymove 1 ; #binary 0x13 0x11 0x13 0x13 0x13 0x13 0x13 0x13 0xFE
pausemove 0
message $oak18
$oak18 1 = Ahhhhh, May, \v\h06, \nyou're here. \p \v\h06: Why are we here? \pMay: Yeah, why are we here? \pOAK: You're here because, \nI'm going to give one of you, \p a very special and STRONG \npokemon. \p \v\h01, you,gary or May \nwill get this pokemon. \pTo decide who get's it, you'll \nhave a small tourney. \pFirst, Gary and May will \nbattle and the winner will \pface \v\h01. \p\v\h01 is gonna be in the \nfinals since \v\h06 and May \phave never defeated \v\h01 in \nbattle. \pThe winner of the tourney \nwill recieve that pokemon \pand two mystery prizes that \ni haven't told you about yet.
boxset 6
applymovement 10 $mmove
$mmove 1 ; #binary 0x12 0x12 0x11 0x03 0xFE
pausemove 0
applymovement 8 $gmove8
$gmove8 1 ; #binary 0x13 0x13 0x13 0x02 0xFE
pausemove 0
applymovement 9 $omove8
$omove8 1 ; #binary 0x01 0xFE
applymovement 0xFF $omove8
pausemove 0
message $battle8
$battle8 1 = \v\h06: Ready to lose May? \pMay:Don't get to cocky. \pOAK:Let the battle ... \pBEGIN!
boxset 6
setflag 0x1505
setflag 0x1506
setflag 0x1508
setvar 0x6003 0x0001
goto $GMbattlehhh
release
end

#org $GMbattlehhh
applymovement 8 $gbattle8
$gbattle8 1 ; #binary 0x54 0x54 0xFE
pausemove 0
applymovement 10 $mbattle
$mbattle 1 ; #binary 0x55 0x55 0xFE
pausemove 0
applymovement 8 $gbattle18
$gbattle18 1 ; #binary 0x54 0x54 0x54 0xFE
pausemove 0
applymovement 10 $mbattle1
$mbattle1 1 ; #binary 0x55 0x55 0x55 0xFE
pausemove 0
applymovement 8 $gbattle28
$gbattle28 1 ; #binary 0x54 0xFE
pausemove 0
applymovement 10 $mbattle2
$mbattle2 1 ; #binary 0x55 0xFE
pausemove 0
message $bbb8
$bbb8 1 = May: GO Mewtwo! \p \v\h06:Noooooooooooooo!
boxset 6
applymovement 8 $gbattle38
$gbattle38 1 ; #binary 0x51 0xFE
pausemove 0
goto $ready
release
end

#org $ready
applymovement 8 $defeat8
$defeat8 1 ; #binary 0x10 0x12 0x12 0xFE
pausemove 0
message $bsttle8
$bsttle8 1 = \v\h01: My turn. \pBrendon:I hope you're \ntougher than \v\h06. \p \v\h01:Don't worry. \pI am!
boxset 6
applymovement 0xFF $bsttle28
$bsttle28 1 ; #binary 0x11 0x13 0x13 0x13 0xFE
pausemove 0
goto $back
release
end

#org $back
trainerbattle 0x01 0x48 $see8 $win8 $further8
$see8 1 = Oak: \v\h01, May, you ready? \pO.K., then let this battle \p BEGIN!
$win8 1 = How is that possible? \p \v\h01, You beat my 6 \nlegendary pokemon! \pI knew you were good, but \nthat's just insane!
message $after8
$after8 1 = Oak: here you go.
boxset 6
release
end

#org $further8
applymovement 9 $poke
$poke 1 ; #binary 0x11 0x13 0xFE
pausemove 0
message $after
boxset 6
givepokemon 121 88 0xCA
fanfare 0x13E
message $poke!6
$poke!6 1 = \v\h01 received a Starmie \nfrom Prof. Oak!
boxset 4
waitfanfare
goto $bonus8
release
end

#org $bonus8
message $bonus18
$bonus1 1 = OAK:Now for your bonus gifts! \pTheir both pokemon.
boxset 6
givepokemon 186 85 0x00
fanfare 0x13E
message $poke!28
$poke!28 1 = \v\h01 received a Politoed \nfrom Prof. Oak!
boxset 4
waitfanfare
givepokemon 130 87 0x00
fanfare 0x13E
message $poke!3
$poke!3 1 = \v\h01 received a Gyrados \nfrom Prof. Oak!
boxset 4
waitfanfare
message $buhbye8
$buhbye8 1 = May:I got to get back to \nHoenn. \p \v\h06:I have to get back \nto the Indigo plateau. \p OAK:I need to continue my \nresearch at my lab in Pallet. \pOak, May, and \v\h06: Cya!
boxset 6
goto $end
release
end
__________________
Leader of Team LegendaryTrio


____________________________________________________________________

"We cannot do everything for
Africa, but doing nothing is not
an option" - Lee H. Hamilton
  #6023    
Old August 15th, 2011 (03:37 PM).
dido's Avatar
dido dido is offline
DARK DIALGA OF DOOOOOOOOM
 
Join Date: Mar 2007
Gender:
Nature: Bold
Posts: 20
Quote originally posted by dido:
Hi guys!

So I am using Pokémon Firered version and I am trying to make a person move once I beat the elite four. The problem is that I don't know what flag I have to assign to that person for her to recognize I beat the elite four . I looked through the thread but I coudn't find the flag number anywhere.

I am using XSE (btw, it's awesome) by the way. It would be awesome if someone helped out here

Thanks everyone!!

I just want the flag number . I am not looking for a script.
Could someone please reply to this?
__________________
lol buterfree...
  #6024    
Old August 15th, 2011 (06:50 PM).
shinyabsol1's Avatar
shinyabsol1 shinyabsol1 is offline
Pokemon DarkJasper!?
 
Join Date: Aug 2010
Gender: Male
Nature: Calm
Posts: 330
Quote originally posted by dido:
Hi guys!

So I am using Pokémon Firered version and I am trying to make a person move once I beat the elite four. The problem is that I don't know what flag I have to assign to that person for her to recognize I beat the elite four . I looked through the thread but I coudn't find the flag number anywhere.

I am using XSE (btw, it's awesome) by the way. It would be awesome if someone helped out here

Thanks everyone!!

I just want the flag number . I am not looking for a script.
I don't think that there is a flag for beating the elite four...

You can just use any flag you like and assign it to your person so that they move.
  #6025    
Old August 15th, 2011 (11:31 PM).
Satoshi Ookami's Avatar
Satoshi Ookami Satoshi Ookami is online now
Memento Mori
Gold Tier
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 22
Gender: Male
Nature: Calm
Posts: 13,289
Quote originally posted by shinyabsol1:
I don't think that there is a flag for beating the elite four...

You can just use any flag you like and assign it to your person so that they move.
Have you ever decompiled E4 script? :D
There are tons of flags to choose from =)
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
Closed Thread
Quick Reply

Sponsored Links

You may also like.. (Beta)
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 09:10 AM.