Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Reload this Page [Tutorial] Hack Tutorials: Scripting

Notices
For all updates, view the main page.

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.



Closed Thread
 
Thread Tools
  #126    
Old November 3rd, 2007 (06:20 PM).
cooley's Avatar
cooley cooley is offline
///Keepin' it simple
Team Hoenn
Silver Tier
 
Join Date: Feb 2007
Location: United States
Age: 20
Gender: Male
Nature: Impish
Posts: 1,150
Send a message via Windows Live Messenger to cooley Send a message via Skype™ to cooley
Do not Request tutorials! Also to add a text Script you can:
Code:
#org $Begin
lock
faceplayer
message $Talk
boxset 6
release
end
Compile that into your rom.
__________________

  #127    
Old November 4th, 2007 (05:55 PM).
mach8822's Avatar
mach8822 mach8822 is offline
:O :O :O :O :O
Team Kanto
 
Join Date: Sep 2007
Location: Watching, Weaving, Wiltzing....Watching
Gender:
Nature: Quiet
Posts: 68
Is this normally confusing?
__________________
Yet to update signature...
  #128    
Old November 5th, 2007 (10:00 AM).
Derlo's Avatar
Derlo Derlo is offline
Working on Essence of light...
Team Kalos
 
Join Date: Aug 2007
Posts: 115
Send a message via Skype™ to Derlo
hey guys help me..

#org $salvaraflorista
lock
if 1 goto $nada
applymovement 10 $hun
$hun 1 ; #Binary 0x62 0xFE
applymovement 13 $hun2
$hun2 1 ; #Binary 0x62 0x4A 0xFE
pause 0x20
message $cara
$cara 1 = MARIO: Sai pirralho...\nisto nao e contigo!
boxset 6
message $flori
$flori 1 = Margarida: \c\h01\h04Por favor garoto,\nme ajude!
boxset 6
call $luta*<-----------------------------After this, the sprites goin CRAZY..
message $cara2
$cara2 1 = MARIO: Voce se deu bem nessa garoto.\nMas da próxima vez...\lvoce irá perder!
boxset 6
fadescreen 1
applymovement 11 $ajuste1
$ajuste1 1 ; #Binary 0x09 0x09 0x0B 0x60 0xFE
applymovement 12 $ajuste2
$ajuste2 1 ; #Binary 0x09 0x09 0x0A 0x60 0xFE
applymovement 13 $ajuste3
$ajuste3 1 ; #Binary 0x09 0x09 0x60 0xFE
pausemove 0
fadescreen 0
applymovement 10 $hun
pause 0x20
message $flori2
$flori2 1 = Margarida: \c\h01\h04Muito obrigado gatoto!\nTome isso como agradecimento!
boxset 6
giveitem 0x44 0x1
message $flori3
$flori3 1 = Margarida: \c\h01\h04Agora tenho que ir!\nTchau!
boxset 6
applymovement 10 $subir
$subir 1 ; #Binary 0x09 0x60 0xFE
pausemove 0
setflag 0x203
release
end

#org $luta
trainerbattle 1 92 $before $after
return

#org $before
$before 1 = MARIO: Queres ajudar?!\lEntao venca-me!!

#org $after
$after 1 = Que droga.. \lfui derrotado!

#org $nada
release
end

*after the script pass in $luta struggles, the minisprites of the rom are crazy, and the movement of the hero changes for another minisprite... how to adjust that?
  #129    
Old November 5th, 2007 (11:21 AM).
Haile Selassie IV's Avatar
Haile Selassie IV Haile Selassie IV is offline
.
Team Kanto
 
Join Date: Mar 2007
Location: Aker, Amsterdam, Noord-Holland, The Netherlands, Europe, The Earth.
Age: 22
Nature: Modest
Posts: 82
Notes: unknown #2 = 3
movement = 11
Question: Why doesn't the sprite appear ingame? I don't understand.
Code:
#org $StartWild
lock
faceplayer
cry 251
message $bi
$bi 1 = CELEBI: Bi?
boxset 6
checkflag 0x808
if 0x1 goto $WildBatt
release
end

#org $Wildbatt
lock
wildbattle 251 10 1
release
setflag 0x232
fadescreen 0
end
__________________
Cna yuo raed tihs? Olny 55% of plepoe can.

I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.
  #130    
Old November 22nd, 2007 (06:21 PM).
ElkinFencer10 ElkinFencer10 is offline
Pokémon Merchant
Team Johto
 
Join Date: Aug 2007
Location: Elkin, North Carolina
Age: 23
Gender:
Nature: Rash
Posts: 1
Send a message via AIM to ElkinFencer10 Send a message via Windows Live Messenger to ElkinFencer10
Hey, I'm trying to put this bit of script into my game, but when I load the ROM and try to assign one of those funky number things, nothing comes up. I keep clicking "Search" but nothing happens. What's going on? Do I need to find a ROM expander, and if I do, where can I find a GBA one?
  #131    
Old November 25th, 2007 (04:02 PM). Edited November 27th, 2007 by Teamtyranitar.
Teamtyranitar's Avatar
Teamtyranitar Teamtyranitar is offline
Fizz-X
Team Hoenn
 
Join Date: Nov 2007
Location: Enjoying life
Age: 20
Gender:
Nature: Lax
Posts: 214
umm never mind i fixed it but could sombody tell me whats wrong with this '-----------------------
#org $start
Lock
Faceplayer
Checkflag 0x200
If b_true goto $done
Message $poke
Boxset 5
Compare LASTRESULT 1
If b_true goto $recieve
Message $no
Boxset 6
Release
End

#org $done
Message $how
Boxset 6
Release
end

#org $recieve
Givepokemon 25 15 0
Jingle
Message $here
Boxset 6
Setflag 0x200
Release
end

#org $poke
$poke 1 =Would you like your a\ppikachu?

#org $how
$how 1 =How’s your Pikachu going?

#org $here
$here 1 =You received your Pikachu.

#org $no
$no 1 =I’m sure somebody else would\ntake uit.
__________________
  #132    
Old December 1st, 2007 (06:33 AM). Edited December 1st, 2007 by Burntbythesun.
Burntbythesun Burntbythesun is offline
Team Sinnoh
 
Join Date: Apr 2007
Nature: Adamant
Posts: 2
Hi, i did some simple scripting and it works. but i still havent found out how i can add NEW players to the game. i dont want to edit old trainers but i want to create new ones, cause my maps are really empty without trainers :/
it's really urgent :[
i only find tutorials where i can edit existing trainers, but i want to make some new ones ... still no tool can help me, so scripting is my last hope :'(
  #133    
Old December 2nd, 2007 (12:50 PM).
Rathelong Rathelong is offline
Team Sinnoh
 
Join Date: Jul 2007
Gender:
Nature: Adamant
Posts: 2
BASIC TRAINERBATTLE

#org $start
lock
faceplayer
trainerbattle 1 0x001 $before $after
message $boo
boxset 6
release
end

#org $before
$before 1 =Check out my bugs

#org $after
$after 1 =Oh no!

#org $boo
$boo 1 =I'll get you back for this.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

A MORE 'ADVANCED TRAINERBATTLE'

#org $start
checkflag 0x20C
if b_true goto $done
applymovement 0x01 $move
pausemove 0
trainerbattle 1 0x006 $before $after $further
release
end

#org $further
setflag 0x20C
message $talk
boxset 6
applymovement 0x01 $move2
pausemove 0
release
end

#org $done
release
end

#org $move
$move 1 ; #binary 0x12 0x12 0x12 0x12 0xFE

#org $move2
$move2 1 ; #binary 0x13 0x10 0x10 0x60 0xFE

#org $before
$before 1 =G'day!

#org $after
$after 1 =That's good.

#org $talk
$talk 1 =G'day, my name is Jason.\nI hope I see you again,\pI'm going to beat you next time.





--------------
This one "trainerbattle 1 0x001"
The 0x001 means in the PET the state of the trainer
No u have to go in in PET and type the name of the trainer and give him Pokemon.
You can also use 0x003 +++++++
Hope that u can understand that X_x
  #134    
Old December 3rd, 2007 (05:15 AM). Edited December 3rd, 2007 by Burntbythesun.
Burntbythesun Burntbythesun is offline
Team Sinnoh
 
Join Date: Apr 2007
Nature: Adamant
Posts: 2
0x001 means the first trainer in PET? so this would be editing, or am i wrong?
cause i dont get how to add new trainers in PET. In addition PET crashes my game as i use german roms :/
it also crushes my us-version-rom
and i still dont get how to work with PET :[

can someone make a whole tutorial: how to add new trainers and how to work with PET?
would be very nice :)

thx anyways
  #135    
Old December 7th, 2007 (01:59 PM).
Hellsing's Avatar
Hellsing Hellsing is offline
The bird of Hermes is my name
Team Unova
 
Join Date: Aug 2007
Location: Canada
Gender:
Nature: Rash
Posts: 121
Are the movement commands the same in rse or they only for FR?
  #136    
Old December 8th, 2007 (12:02 AM).
axlefoley's Avatar
axlefoley axlefoley is offline
Team Hoenn
 
Join Date: Sep 2004
Age: 25
Gender:
Posts: 244
Send a message via Windows Live Messenger to axlefoley
Quote originally posted by Rabid_Lime:
Are the movement commands the same in rse or they only for FR?
no there is a thread in here some where that has lists you can download
__________________



Click here to feed Herman a Rare Candy!
Click here to feed Horrace a Rare Candy!
Get your own at Pokeplushies!
  #137    
Old December 12th, 2007 (11:44 AM). Edited December 12th, 2007 by Satoshi Sugimori.
Satoshi Sugimori's Avatar
Satoshi Sugimori Satoshi Sugimori is offline
Hermit
Team Kanto
 
Join Date: Dec 2006
Location: Tokyo, Japan
Age: 22
Gender: Male
Nature: Timid
Posts: 862
Send a message via Windows Live Messenger to Satoshi Sugimori
I got a Q I use a warp in my yes-no script the yes no part works perfect but then it has to warp and I put it like this (whitout the things between () ) warp 0x3(bank) 0x19(map) 0x1(warp) but when I use it in VBA it sends me to a whole other place in the trees or just all black..help needed please..

EDIT
fixed it it works whitout the 0x..XD
__________________
  #138    
Old December 14th, 2007 (05:00 AM).
Jvg's Avatar
Jvg Jvg is offline
Sir JvG for Friends
Team Kalos
 
Join Date: Aug 2007
Location: The Netherlands...!
Age: 21
Gender:
Nature: Calm
Posts: 116
Send a message via Windows Live Messenger to Jvg
What is wrong with this script? every time I try to compile it says:

Code:
Run-time error 457

This Key is already associated with an element of this collection
Script:

Code:
#org $script
checkflag 0x215
if 1 goto $klaar
lock
applymovement 1 $help
$help 1 ; #binary 0x04 0x62 0xFE
pausemove 0
message $bang
$bang 1 =I am scared!\nThat guys won't let me through!
callstd 6
applymovement 0xFF $heen
pausemove 0
applymovement 2 $jij
applymovement 3 $jij1
pausemove 0x50
trainerbattle 1 0x002 $before $after $further
release
end

#org $further
applymovement 2 $bang
pausemove 0
applymovement 3 $kom
pausemove 0
applymovement 2 $gas
pausemove 0
trainerbattle 1 0x003 $voor $na $einde
release
end

#org $einde
message $weg
$weg 1 =You've won.\nYou can pass.
callstd 6
applymovement 3 $gaat1
pausemove 0
setflag 0x215
release
end

#org $heen
$heen 1 ; #binary 0x13 0x13 0x13 0x13 0xFE

#org $jij
$jij 1 ; #binary 0x02 0x65 0xFE

#org $jij1
$jij1 1 ; #binary 0x02 0x65 0xFE

#org $bang
$bang 1 ; #binary 0x65 0x49 0xFE

#org $gas
$gas 1 ; #binary 0x13 0x13 0x13 0x13 0x10 0x10 0x10 0x10 0x10 0x10 0x13 0x60 0xFE

#org $kom
$kom 1 ; #binary 0x10 0x02 0xFE

#org $before
$before 1 =Get out!

#org $after
$after 1 =I lost from a child!

#org $voor
$voor 1 =You won't defeat me!

#org $na
$na 1 =How...

#org $gaat1
$gaat1 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x10 0x10 0x10 0x10 0x10 0x10 0x13 0x60 0xFE

#org $klaar
release
end
__________________
  #139    
Old December 14th, 2007 (05:31 AM).
thethethethe thethethethe is offline
Team Johto
 
Join Date: Jun 2007
Location: Melbourne, Australia
Gender: Male
Posts: 1,104
Quote originally posted by Jvg:
What is wrong with this script? every time I try to compile it says:

Code:
Run-time error 457

This Key is already associated with an element of this collection
Script:

Code:
#org $script
checkflag 0x215
if 1 goto $klaar
lock
applymovement 1 $help
$help 1 ; #binary 0x04 0x62 0xFE
pausemove 0
message $bang
$bang 1 =I am scared!\nThat guys won't let me through!
callstd 6
applymovement 0xFF $heen
pausemove 0
applymovement 2 $jij
applymovement 3 $jij1
pausemove 0x50
trainerbattle 1 0x002 $before $after $further
release
end

#org $further
applymovement 2 $bang
pausemove 0
applymovement 3 $kom
pausemove 0
applymovement 2 $gas
pausemove 0
trainerbattle 1 0x003 $voor $na $einde
release
end

#org $einde
message $weg
$weg 1 =You've won.\nYou can pass.
callstd 6
applymovement 3 $gaat1
pausemove 0
setflag 0x215
release
end

#org $heen
$heen 1 ; #binary 0x13 0x13 0x13 0x13 0xFE

#org $jij
$jij 1 ; #binary 0x02 0x65 0xFE

#org $jij1
$jij1 1 ; #binary 0x02 0x65 0xFE

#org $bang
$bang 1 ; #binary 0x65 0x49 0xFE

#org $gas
$gas 1 ; #binary 0x13 0x13 0x13 0x13 0x10 0x10 0x10 0x10 0x10 0x10 0x13 0x60 0xFE

#org $kom
$kom 1 ; #binary 0x10 0x02 0xFE

#org $before
$before 1 =Get out!

#org $after
$after 1 =I lost from a child!

#org $voor
$voor 1 =You won't defeat me!

#org $na
$na 1 =How...

#org $gaat1
$gaat1 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x10 0x10 0x10 0x10 0x10 0x10 0x13 0x60 0xFE

#org $klaar
release
end
You should have posted this in the script Discussion thread, that's what it's there for. But I've bolded the problem.
You've overused the $bang pointer. Change one of them to something different. The script is confused and doesn't know which pointer to go to, the pointer for the message or the pointer for the applymovement.
__________________
Gone.
  #140    
Old December 15th, 2007 (09:13 AM).
giova90's Avatar
giova90 giova90 is offline
Moebius
Team Kalos
 
Join Date: Jul 2007
Age: 25
Nature: Adamant
Posts: 30
i've a question,when put the checkgender into a script,which owerworld people have to choose?and how can i do to put when choose a male protagonist at the beginning to meet the other gender character,?
__________________
This signature has been disabled.
75 pixels too wide.
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
  #141    
Old December 16th, 2007 (01:31 AM).
mach8822's Avatar
mach8822 mach8822 is offline
:O :O :O :O :O
Team Kanto
 
Join Date: Sep 2007
Location: Watching, Weaving, Wiltzing....Watching
Gender:
Nature: Quiet
Posts: 68
Ok, I have a HUGE problem. (I would be making a game if it wasn't for this -_-#) The scripts never write correct to the rom. I;ve dont exactly what the about three different tutorials have said. I have even cpoied the scribt exactly from a them sometimes. I save them as an .rbc file, I've downloaded Pkm Advance and I have Pokescript. The problem is that whenever I write it to the rom, it writes correctly (so it says), but when I give the script to a person a text box flashes then it freezes. Then when I press "A" (you know what I mean by "A") the screen turns red. Any help?
__________________
Yet to update signature...
  #142    
Old December 16th, 2007 (07:26 AM).
akash's Avatar
akash akash is offline
Pikachu is the best.
Team Kalos
 
Join Date: Dec 2007
Location: India
Age: 21
Gender:
Nature: Calm
Posts: 21
Well I finally understood this scripting. But the problem is..

Could anyone please tell me how to compile with rubicon Script Editor.
  #143    
Old December 16th, 2007 (11:51 AM).
mach8822's Avatar
mach8822 mach8822 is offline
:O :O :O :O :O
Team Kanto
 
Join Date: Sep 2007
Location: Watching, Weaving, Wiltzing....Watching
Gender:
Nature: Quiet
Posts: 68
After you save it as a .rbc file right click it and click compile script. If you right click it and there is no option to compile the script then you need to download PKMadvance.
__________________
Yet to update signature...
  #144    
Old December 17th, 2007 (02:10 PM).
0m3ga_S1nn3r's Avatar
0m3ga_S1nn3r 0m3ga_S1nn3r is offline
Beginner Hacker :)
Team Kalos
 
Join Date: Dec 2007
Location: In my house
Age: 18
Gender:
Posts: 80
Send a message via Windows Live Messenger to 0m3ga_S1nn3r
Where do we download pokescript?
  #145    
Old December 18th, 2007 (10:19 PM).
mach8822's Avatar
mach8822 mach8822 is offline
:O :O :O :O :O
Team Kanto
 
Join Date: Sep 2007
Location: Watching, Weaving, Wiltzing....Watching
Gender:
Nature: Quiet
Posts: 68
I think Irish Witch's site is down currently so you can't download it.
__________________
Yet to update signature...
  #146    
Old December 18th, 2007 (11:35 PM).
stead573 stead573 is offline
Team Unova
 
Join Date: Apr 2007
Gender:
Nature: Adamant
Posts: 31
Quote originally posted by kingdude256:
Where do we download pokescript?
Hey kingdude256, check out my signature for a download of Pokescript.

Hope this helps!
__________________
stead573
  #147    
Old December 18th, 2007 (11:58 PM).
0m3ga_S1nn3r's Avatar
0m3ga_S1nn3r 0m3ga_S1nn3r is offline
Beginner Hacker :)
Team Kalos
 
Join Date: Dec 2007
Location: In my house
Age: 18
Gender:
Posts: 80
Send a message via Windows Live Messenger to 0m3ga_S1nn3r
oh thank you, have i ever told u that your my best friend.
  #148    
Old December 19th, 2007 (01:03 AM).
loitraitim's Avatar
loitraitim loitraitim is offline
Hoài Niệm Dấu Yêu
Team Sinnoh
 
Join Date: Sep 2007
Location: Vietnam
Age: 23
Gender:
Nature: Hardy
Posts: 62
Send a message via Yahoo to loitraitim
Hic, help me!
Then i click "Compile" and...
I do?
__________________
WTF!

  #149    
Old December 19th, 2007 (02:29 AM).
stead573 stead573 is offline
Team Unova
 
Join Date: Apr 2007
Gender:
Nature: Adamant
Posts: 31
Quote originally posted by kingdude256:
oh thank you, have i ever told u that your my best friend. :)
No worries! I'm happy to help!
__________________
stead573
  #150    
Old December 19th, 2007 (10:29 AM).
derv1205's Avatar
derv1205 derv1205 is offline
Trade/Battle/Breed/Clone (X,B2,D)
Team Kanto
 
Join Date: Dec 2007
Location: Florida, USA
Gender: Male
Nature: Adamant
Posts: 273
Hi, i want some help n.n , i insert this script in a pokeball:
The problems are that:
-The pokeball dissapears but when i move one step to any side it appears again.
-When i choose to put a name to the Riolu, the flag
0x800 doesn't activates.
-When i choose to put a name it does activate.
Spoiler:
Code:
#org $begin
message $dadpokeball
$dadpokeball 1 = Hi \v\h01. \nTake this pokemon i've captured \pfor you.\nIt's a Riolu, take care of it.
boxset 6
givepokemon 335 5 0
jingle
message $GotRiolu
$GotRiolu 1 = You Received a RIOLU
boxset 6
#raw 0x53 0x0F 0x80
message $NameRio
$NameRio 1 = Would you like to give RIOLU a name?
boxset 5
compare LASTRESULT 1
if B_False goto $done
Namepokemon 
setflag 0x203
setflag 0x800
message $GoodBye
$GoodBye 1 = Good Luck \v\h01.
end

#org $done
setflag 0x800
message $Bye
$Bye 1 = Good Luck \v\h01.
end




And one more thing , in the script of Gym Leader,
-How do i choose the pokemons the Gym Leader will use?
-How do i choose what badge will give you?
-When i inserted the script, i defeat the GL and nothing happened,
when i talked to her she gave me all the staff BUT when i talked
to her again she gave me again the badge and the item =S
Here is the script of the GymLeader:
Spoiler:
Code:
#org $Trainer1
lock
faceplayer
trainerbattle 0 114 $LeadChall $LeadDefeat $LeadCode
$LeadChall 1 = LEADER: Let's see what are you made of!
$LeadDefeat 1 = LEADER: I.. I.. I can't beleive it, \ i LOST!!!
message $BernTalk
$LeadTalk 1 = Nice Battle!
boxset 6

#org $LeadCode
message $Congrats
$Congrats 1 = LEADER: Your a pretty good trainer!\pAs leader of this Gym it is now my Duty to give you the Knuckle Badge.
boxset 6
setflag 0x808
jingle
message $GotBadge
$Gotbadge 1 = You recieved the Knuckle Badge!\nLEADER: The pokemons until level 20 will obey you. \n And you can have this.
boxset 6
giveitem 0x5f 1
message $FireStone
$FireStone 1 = That is a FireStone \nIt can evolve one pokemon.
boxset 6
end

Thanks
__________________
FC 3DS: 1821 - 8876 - 6418 , Playing Pokemon X & Omega Ruby - Add me and let me know please!
FS: Flying type - Swanna, Doduo, Hawlucha
TSV: 2631 - if needed contact me.

Derv1205's Shop! <- Several IV, Shiny, Legendary, Event Pokemon! Come in take a look

Trader Review thread <- If we've traded a review is much appreciated. Thank you!

"Trade. Breed. Train. Battle."
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 11:06 AM.