PokeAddict
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Your Addiction... Is our Pleasure!
 
HomePortalLatest imagesSearchRegisterLog in

 

 Basic XSE Tutorial (in the making)

Go down 
4 posters
AuthorMessage
5qwerty
Admin
Admin
5qwerty


Posts : 702
Poke-Addict Points : 16760
Join date : 2009-08-18
Age : 28
Location : You are a stalker.

Basic XSE Tutorial (in the making) Empty
PostSubject: Basic XSE Tutorial (in the making)   Basic XSE Tutorial (in the making) Icon_minitimeWed Aug 19, 2009 1:11 pm

Welcome to the world of Hacking, a mysterious place where you can create almost anything!

I'm going to be teaching you about XSE scripting today, since Ricky's got the Pokescript Tut, I would make an alternate to that.

The Programs you need:
Advance Map
XSE (eXtreme Script Editor)

Part 1

The first step is to go to Advanced Map, and go to Settings > Choose Script Editor, and browse to your XSE.exe file.

Here is how to begin scripting.

Every Script needs a start, so open up your XSE, and type this in:
Code:
#dynamic 0xoffset

Of course, replace the offset with a six digit hex numeral. (I suggest anything 800000 or higher) So I'll be using 800000 as a default. The multiplication sign is "x"

But in Advance Map, for Person events and Scripts, there is a box that says script offset, we'll get to that later.

Skip a line and type this down:
Code:
#org @anythingyouwish
So you can put anything you wish after the @, it is a pointer. But it cannot have more than one space. Now I am going to use "lol" as the pointer default. Just remember that you cannot use the same pointer more than once.

These two are used for every script, so these are just the basics.

Part 2

So right now we are going to make a basic talking script for an NPC.

After the two basic lines, type this:
Code:
lock
faceplayer
Lock means the player cannot move, and faceplayer means that the NPC faces the player.

Then followed by this:
Code:
msgbox @lol 0x<message type>
Now the message type can be either 0x2, 0x3, 0x4, 0x5, or 0x6. We basically use 0x6, for it is also known as MSG_NORMAL. Now I will explain each of their functions.

0x2 is basically the same thing as 0x6, except you don't have to use "lock."

0x3 is used for signs and stuff like that.

0x4 is a keep open, it needs to be followed by a closeonkeypress.

0x5 is a yes no question, I'll explain this later.

0x6 is a normal message box.

Now end it with this:
Code:
release
end

This is what we have so far:
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @lol 0x6
release
end

Now you're probably wondering how do we make the NPC say what we want it to say, right?
Well here is how.

You must follow the end with a skipped line, then use the same pointer as above to make a talking script, like this:
Code:
#org @lol
= Hi!
#org must be before every pointer that you continue to. Also notice that there is a space after the "="? Well, that has to be there as a parameter.

At the end, it would be like this:
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @lol 0x6
release
end

#org @lol
= Hi!

You say: "Hey, you said that we can't use more than one pointer in a script!"
The truth is that every pointer has a correspondent.


Part 3

You're probably wondering "how long I can make my text?"
The answer is: so long that you wouldn't want it to be that long.

Here are some "tools" to make your text long.

\n means that the text continues in the next line, it does not move the message box down.

\l moves the textbox down, and continues in the next line.

\p sort of skips two lines.

These three are the basics to text.

You are wondering "why can't we just use Enter?"
This is because if you use enter, it will just be random words in your script.

So our script will end like this:
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @lol 0x6
release
end

#org @lol
= Hi!\nMy name is Ash Ketchum.\lWhat's your name?

More parts coming soon...
Back to top Go down
yuuichi
Starting Addiction
Starting Addiction
yuuichi


Posts : 91
Poke-Addict Points : 16287
Join date : 2009-08-03
Location : The forest of wrath

Basic XSE Tutorial (in the making) Empty
PostSubject: Re: Basic XSE Tutorial (in the making)   Basic XSE Tutorial (in the making) Icon_minitimeWed Aug 19, 2009 4:30 pm

anyody can do this kind of script
Back to top Go down
5qwerty
Admin
Admin
5qwerty


Posts : 702
Poke-Addict Points : 16760
Join date : 2009-08-18
Age : 28
Location : You are a stalker.

Basic XSE Tutorial (in the making) Empty
PostSubject: Re: Basic XSE Tutorial (in the making)   Basic XSE Tutorial (in the making) Icon_minitimeWed Aug 19, 2009 6:03 pm

I said that more parts are coming soon, okay?
Back to top Go down
Regiran
Admin
Admin
Regiran


Posts : 210
Poke-Addict Points : 16475
Join date : 2009-08-04
Age : 27

Basic XSE Tutorial (in the making) Empty
PostSubject: Re: Basic XSE Tutorial (in the making)   Basic XSE Tutorial (in the making) Icon_minitimeThu Aug 20, 2009 5:07 am

yuuichi wrote:
anyody can do this kind of script

I can't, much too confusing for me. Or maybe im just a lazy pig pig
I cant be bothered to learn!


Last edited by JBW on Thu Aug 20, 2009 5:31 am; edited 1 time in total
Back to top Go down
Codec
Ultra Admin
Ultra Admin
Codec


Posts : 702
Poke-Addict Points : 16946
Join date : 2009-08-03

Basic XSE Tutorial (in the making) Empty
PostSubject: Re: Basic XSE Tutorial (in the making)   Basic XSE Tutorial (in the making) Icon_minitimeThu Aug 20, 2009 5:15 am

a pig?
ok
Back to top Go down
https://poke-addict.forumotion.com
5qwerty
Admin
Admin
5qwerty


Posts : 702
Poke-Addict Points : 16760
Join date : 2009-08-18
Age : 28
Location : You are a stalker.

Basic XSE Tutorial (in the making) Empty
PostSubject: Re: Basic XSE Tutorial (in the making)   Basic XSE Tutorial (in the making) Icon_minitimeThu Aug 20, 2009 7:06 am

Sorry, I'm trying to be as helpful as I can be.
Back to top Go down
Sponsored content





Basic XSE Tutorial (in the making) Empty
PostSubject: Re: Basic XSE Tutorial (in the making)   Basic XSE Tutorial (in the making) Icon_minitime

Back to top Go down
 
Basic XSE Tutorial (in the making)
Back to top 
Page 1 of 1
 Similar topics
-
» Basic PMD Explorers of Time/ Darkness/ Sky Text Hacking

Permissions in this forum:You cannot reply to topics in this forum
PokeAddict :: Rom Hacking :: Tutorials-
Jump to: