- 19
- Posts
- 12
- Years
- Seen Mar 23, 2014
SCRIPTING TUTORIAL BY KOK EE SUAN
This only works with XSE v1.1 get it from hackmews thread.scripts are case sensitive so if I don't use CAPS,don't use CAPS EITHER!
Hi people this is my first tut so don't blame me for inexperience
Let's get started
A TEXT SCRIPT only use this if advance text doesn't work, A-text is easier
Start the script with these lines:
#dynamic 0x(the offset,ill explain that later)
#org @start
lock
faceplayer:
Explanation of codes:
#dynamic 0x(offset)
The starting lines of EVERY script.
Offset is basically a number too find xtra space in a rom.toget the number, first
download hackmews free space finder tool from his thread,then open it and your rom
Search in the box for about for 150 to 250 bytes or more,should be plently.
A list of numbers will come up,just copy the number.then go back to 0x(offset)
Replace the (offset)woth the number in free space finder(calling it FSF)
#org @start
Again,compulsory for EVERY script.@start is a pointer, which means you can rename it to @anything e.g,@pie @cool. Pointers cannot have a space,so these pointers won't work: @ a b c, @pikachu and raichu......
lock
faceplayer
Lock:this doesn't allow the player to move when he is being talked to.essential
Faceplayer:this makes the player face the person when talking
Now....
The 2nd part of the script
msgbox @text 0x6
release
end
#org @text
=hi! I'm gavin cho/n and I rock!
msgbox:a message box. Needed for text scripts. A pointer @(word) always comes after it. The type of box comes after the pointer in this case, its 0x6.since this is for n00bs,I wint go into detail about othe boxses.(for now)
release:this releases the player and allowa him to move again. NEEDED!(unless you want your player to freeze after the script hahaha
End: ends the script, NEEDED!!!!
#org @text(or whatever pointer you put after msgbox): after this line, atext box comes up.
(Equal symbol)hi! I'm gavin cho/nand I rock!
After the equal symbol,write the text. To make stuff easier, in XSE, goto tools then text adjuster.write down whar you want to say then press convert button.this converts it to computer languagge with all the /n,/p,/h symbols. Although I know them, this makkes life easier
ALL DONE!
Now you ask: how do you put the script into the rom?
Follow the steps one by one:
1 open up advance map, if you don't have it, go to goolge n download it then read a tutorial on it
2 press the gears pic putton in XSE, the compile button
3xse should come up with 1 or more numbers. Take the first number, the one that is highlighted in blue by XSE. Copy it down on paper.
Then, in A map,goto the person you want to edit. Click him
3 at the rigght side of a map,you should see some stuff
Scrool down till you see the SCRIPT offset.there should be some numbers there.delete all the nos except the(cash/money)symbol. Now type in the numbers from xse.
So ith should be like this in the script offset box of the person:(cash)symbol,then the numbers
NOTE:THERE IS NO SPACING BETWEEN THE CASH SYMBOL AND YOUR NUMBERES From XSE
All done! Open up your game and check it out!
PLEASE DO ME A FAVOUR BY POSTING COMMENTS: I WELCOME CRITICSM TO IMPROVE MY SKILLS
Tnx!
This only works with XSE v1.1 get it from hackmews thread.scripts are case sensitive so if I don't use CAPS,don't use CAPS EITHER!
Hi people this is my first tut so don't blame me for inexperience
Let's get started
A TEXT SCRIPT only use this if advance text doesn't work, A-text is easier
Start the script with these lines:
#dynamic 0x(the offset,ill explain that later)
#org @start
lock
faceplayer:
Explanation of codes:
#dynamic 0x(offset)
The starting lines of EVERY script.
Offset is basically a number too find xtra space in a rom.toget the number, first
download hackmews free space finder tool from his thread,then open it and your rom
Search in the box for about for 150 to 250 bytes or more,should be plently.
A list of numbers will come up,just copy the number.then go back to 0x(offset)
Replace the (offset)woth the number in free space finder(calling it FSF)
#org @start
Again,compulsory for EVERY script.@start is a pointer, which means you can rename it to @anything e.g,@pie @cool. Pointers cannot have a space,so these pointers won't work: @ a b c, @pikachu and raichu......
lock
faceplayer
Lock:this doesn't allow the player to move when he is being talked to.essential
Faceplayer:this makes the player face the person when talking
Now....
The 2nd part of the script
msgbox @text 0x6
release
end
#org @text
=hi! I'm gavin cho/n and I rock!
msgbox:a message box. Needed for text scripts. A pointer @(word) always comes after it. The type of box comes after the pointer in this case, its 0x6.since this is for n00bs,I wint go into detail about othe boxses.(for now)
release:this releases the player and allowa him to move again. NEEDED!(unless you want your player to freeze after the script hahaha
End: ends the script, NEEDED!!!!
#org @text(or whatever pointer you put after msgbox): after this line, atext box comes up.
(Equal symbol)hi! I'm gavin cho/nand I rock!
After the equal symbol,write the text. To make stuff easier, in XSE, goto tools then text adjuster.write down whar you want to say then press convert button.this converts it to computer languagge with all the /n,/p,/h symbols. Although I know them, this makkes life easier
ALL DONE!
Now you ask: how do you put the script into the rom?
Follow the steps one by one:
1 open up advance map, if you don't have it, go to goolge n download it then read a tutorial on it
2 press the gears pic putton in XSE, the compile button
3xse should come up with 1 or more numbers. Take the first number, the one that is highlighted in blue by XSE. Copy it down on paper.
Then, in A map,goto the person you want to edit. Click him
3 at the rigght side of a map,you should see some stuff
Scrool down till you see the SCRIPT offset.there should be some numbers there.delete all the nos except the(cash/money)symbol. Now type in the numbers from xse.
So ith should be like this in the script offset box of the person:(cash)symbol,then the numbers
NOTE:THERE IS NO SPACING BETWEEN THE CASH SYMBOL AND YOUR NUMBERES From XSE
All done! Open up your game and check it out!
PLEASE DO ME A FAVOUR BY POSTING COMMENTS: I WELCOME CRITICSM TO IMPROVE MY SKILLS
Tnx!