- 41
- Posts
- 9
- Years
- Seen Jul 3, 2016
Hello there today I am going to show you how to make a person talking script, and trainer battle script, and a give item script including talking.
Tools
Notepad
Pksvui
Advanced Map
Advance Trainer
Your ROM
VisualBoyAdvance
This will be a thread split into three.
Part 1 Person Talking Script
First open notepad and type the script
Person Talking Script
#dyn 0x740000
#org @start
lock
faceplayer
msgbox @Lavender ' Lavender Town...
callstd MSG_NORMAL
release
end
#org @Lavender
= Lavender Town is creepy. EE It\ngives me shivers. Poor blues\pRaticate.\lIt was brave, Sob Sob!
Commands
\n Gets you to the next line
\p Opens a new textbox
\l Scrolls Down
Now go to file Save as and in the dropbox select all files and name it whatever you want and save it as .pks
Next open PKSVUI and load rom.
Then go to open and load your pks.
It should look like this
Next go to ROM, compile go to dynamic offsets
It should look like this
Now open Advance Map don't close the dynamic offsets
Now go to Events, increase the person event number by 1.
and drag him whereever you want.
Change the picture number if you like now in script offset copy the number or code in the dynamic offsets to script offset
NOTE: Copy the code in the line of @start.
Save it and test it, heres a screen shot.
Part 2 A battle script
First open Advance Trainer and load rom
Edit your trainer data and press save
Now go to pokemon data and customize now if you go to custom attacks and custom items it says repoint needed
Press repoint and it will look like this
Now copy the suggested one and press ok.
NOTE: When you give the trainer more than one pokemon you will need a repoint.
Now open Notepad and type the script like this
Battling Script
#dyn 0x740000
#org @start
trainerbattle 0x0 0x001 0x0 @intro @defeat
msgbox @afterwards
callstd msg_normal
end
#org @intro
= You killed Raticate! I will\nkill you
#org @defeat
= Don't kill me!
#org @afterwards
= Sorry that I framed you that\nyou killed Raticate talk\pto my brother he will give you\nsomething.
Now save it as a .pks
Now open Pksvui and load ROM.
Open your .pks
Compile it
Open Advanced Map
Make a new person customize your sprite
You see trainer change the second zero in to a one. If you have a checkbox instead just check it.
You can customize the view radius of the trainer I will make it 1.
Now put the script offset on.
Save and test it. Heres a screenshot
Part 3 Give Item script including dialog.
Open Notepad heres the script.
Give Item Script
#dyn 0x740000
#org @start
faceplayer
msgbox @Give
callstd MSG_NORMAL
checkflag 0x456711
if 0x1 jump :end
copyvarifnotzero 0x8000 MASTERBALL
copyvarifnotzero 0x8001 0x64
callstd MSG_OBTAIN
setflag 0x456711
:end
end
#org @Give
= I'm sorry about my brother.
To get the amount you want in the second copyvarifnotzero where it says 0x64 that means the amount 64 is 100 in hex so use the hex to dec converter for that.
Now save it as a .pks
Open PKSVUI load rom
Open the .pks
Compile it
Now open Advance Map
Create a new person event
Customize the sprite
Put the script offset on
Save it and test it. Heres a screenshot
So this is the end of the tutorial
Thank you for reading this
Ask question below. :t187:
Tools
Notepad
Pksvui
Advanced Map
Advance Trainer
Your ROM
VisualBoyAdvance
This will be a thread split into three.
Part 1 Person Talking Script
First open notepad and type the script
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/4atW61S.png)
Person Talking Script
#dyn 0x740000
#org @start
lock
faceplayer
msgbox @Lavender ' Lavender Town...
callstd MSG_NORMAL
release
end
#org @Lavender
= Lavender Town is creepy. EE It\ngives me shivers. Poor blues\pRaticate.\lIt was brave, Sob Sob!
Commands
\n Gets you to the next line
\p Opens a new textbox
\l Scrolls Down
Now go to file Save as and in the dropbox select all files and name it whatever you want and save it as .pks
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/3w3pkZg.png)
Next open PKSVUI and load rom.
Then go to open and load your pks.
It should look like this
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/uqwisTS.png)
Next go to ROM, compile go to dynamic offsets
It should look like this
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/fZliV5i.png)
Now open Advance Map don't close the dynamic offsets
Now go to Events, increase the person event number by 1.
and drag him whereever you want.
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/IYXRMWL.png)
Change the picture number if you like now in script offset copy the number or code in the dynamic offsets to script offset
NOTE: Copy the code in the line of @start.
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/wGNrGDz.png)
Save it and test it, heres a screen shot.
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/TcjxhKy.png)
Part 2 A battle script
First open Advance Trainer and load rom
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/7qyWytN.png)
Edit your trainer data and press save
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/3cHkJCh.png)
Now go to pokemon data and customize now if you go to custom attacks and custom items it says repoint needed
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/zZkHLNt.png)
Press repoint and it will look like this
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/WW9boeE.png)
Now copy the suggested one and press ok.
NOTE: When you give the trainer more than one pokemon you will need a repoint.
Now open Notepad and type the script like this
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/7ZDLm4i.png)
Battling Script
#dyn 0x740000
#org @start
trainerbattle 0x0 0x001 0x0 @intro @defeat
msgbox @afterwards
callstd msg_normal
end
#org @intro
= You killed Raticate! I will\nkill you
#org @defeat
= Don't kill me!
#org @afterwards
= Sorry that I framed you that\nyou killed Raticate talk\pto my brother he will give you\nsomething.
Now save it as a .pks
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/LLhpGbv.png)
Now open Pksvui and load ROM.
Open your .pks
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/jCxW7qT.png)
Compile it
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/93tvEWe.png)
Open Advanced Map
Make a new person customize your sprite
You see trainer change the second zero in to a one. If you have a checkbox instead just check it.
You can customize the view radius of the trainer I will make it 1.
Now put the script offset on.
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/22A51ur.png)
Save and test it. Heres a screenshot
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/2ugBeeC.png)
Part 3 Give Item script including dialog.
Open Notepad heres the script.
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/xxtKY9r.png)
Give Item Script
#dyn 0x740000
#org @start
faceplayer
msgbox @Give
callstd MSG_NORMAL
checkflag 0x456711
if 0x1 jump :end
copyvarifnotzero 0x8000 MASTERBALL
copyvarifnotzero 0x8001 0x64
callstd MSG_OBTAIN
setflag 0x456711
:end
end
#org @Give
= I'm sorry about my brother.
To get the amount you want in the second copyvarifnotzero where it says 0x64 that means the amount 64 is 100 in hex so use the hex to dec converter for that.
Now save it as a .pks
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/MPbLDGt.png)
Open PKSVUI load rom
Open the .pks
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/xniVAzb.png)
Compile it
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/N2v6QvU.png)
Now open Advance Map
Create a new person event
Customize the sprite
Put the script offset on
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/mZQZwGo.png)
Save it and test it. Heres a screenshot
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/PV5QuJp.png)
![[PokeCommunity.com] Talking, Battle, and give item script tutorial [PokeCommunity.com] Talking, Battle, and give item script tutorial](https://i.imgur.com/csHYu5l.png)
So this is the end of the tutorial
Thank you for reading this
Ask question below. :t187:
Last edited: