• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

XSE Scripting Tutorial

Status
Not open for further replies.
question

hello everyone my first reply in poke community
my question: when i try to compile my script it says ''too less parameters on line 6". What the hell does that mean and how to fix it ?
thanks to anyone who answers.
 
hello everyone my first reply in poke community
my question: when i try to compile my script it says ''too less parameters on line 6". What the hell does that mean and how to fix it ?
thanks to anyone who answers.

Well, did you READ it?
XSE is telling you exactly what is wrong with your script.
On line 6, you need at least one more parameter...
Next time, read the error message, it will always help you out.
 
umm what is parameter?
thanks iand yes iam a noob

umm yes a noob question again
what is parameter?
 
Last edited:
Well, commands in XSE, PKSV, PokeScript, ScriptED, etc etc, are set up like this...

[Command] [Parameter]

For instance:

sound 0x2
The command is sound, and the parameter is 0x2, you see?
Some commands have more than one parameter...

compare LASTRESULT 0x2

Compare is the command
LASTRESULT (Or ox800D) is the first parameter
and 0x2 is the second parameter.
Now what XSE is telling you, that you don't have enough parameters on the 6th line of your script.

Post your script here, I'll point out what is wrong if you don't have it by now...
 
explain arameter please thank you

#Dynamic 0x800000
#ORG @Start
Lock
Faceplayer
Message @Speak
Boxset 0x6
Release
End
#ORG @Speak
=Hello!
 
Last edited:
explain arameter please thank you

#dynamic 0x800000
#ORG @Start
lock
faceplayer
message @Speak 0x6
release
end
#ORG @Speak
= Hello!

Changes are in the quote, in BOLD RED
Here are a few pointers.
1: You shouldn't capitalize every command, it makes it harder to read amazingly enough.
2: The newest XSE doesn't use boxset anymore, instead, it adds the boxset onto message...
3: VERY IMPORTANT, when making a message, be sure to have a space between the = and the message itself...
Code:
#ORG @Speak
=Hello!
The little bit of code above is BAD, the = is touching the letters!
Code:
#ORG @Speak
= Hello!
THAT is better! lol

Try to compile it now, it should work perfectly.
 
thank you omega arsenal
i will try it

so thats why i have trouble
i have the new version
what do i do next to the window that came up
 
Last edited:
I'm done helping, time for you to read a few tutorials... or even better, have XSE open and press F2, and read that WHOLE thing.
ALL of it, you won't really need my help after you do.
 
hey my script isn't working can anyone help???

#dynamic 0x800002

#org @start
lock
faceplayer
msgbox @yesno 0x5
if 0x1 goto @yes
if 0x0 goto @no
release
end

#org @yes
msgbox @yes2 0x6
release
end

#org @no
msgbox @no2 0x6
release
end

#org @yesno
= Are you stupid???

#org @yes2
= HAHAHA!!!

#org @no2
= Liar!!!



I talk to the guy and he asks the question but no matter how i answer he says "Liar!!!"
 
Every time I try to make a script it always says that Release, End, GivePokemon, etc. Are unknown keywords. Yes I am using XSE. How do I fix this problem?
 
ummmmmm....

Ok, number one, in what circumstance do you start making a script from scratch.
number 2, how do you change scripts
number 3, you kinda rushed it.
anyone care to explain?
 
Ok, number one, in what circumstance do you start making a script from scratch.
number 2, how do you change scripts
number 3, you kinda rushed it.
anyone care to explain?

1. In almost every case if you want to be a hacker.

2. In the same way you make them - try following this or one of the other tutorials.

3. This is in no way rushed, read it, it goes through all key commands and even some that will rarely be used.
 
I cant find my ROM
I try to ...
well u know
File:open
I dont see my Fire Red Or Emerald in that
 
I cant find my ROM
I try to ...
well u know
File:open
I dont see my Fire Red Or Emerald in that

in XSE you open rbc / other script files, you don't have to open the ROM file.

Write your script, save it, then go batch compiler, and find your ROM in the top section. This is probably the easiest way to compile as you can do multiple scripts at once.

Make sure you double check where your ROM file is located
 
Last edited:
Correction

hey my script isn't working can anyone help???

#dynamic 0x800002

#org @start
lock
faceplayer
msgbox @yesno 0x5
compare 0x800D 0x1
if 0x1 goto @yes

msgbox @no2 0x6
release
end

#org @yes
msgbox @yes2 0x6
release
end

#org @yesno
= Are you stupid???

#org @yes2
= HAHAHA!!!

#org @no2
= Liar!!!



I talk to the guy and he asks the question but no matter how i answer he says "Liar!!!"

The ones in bold are the corrections. You should only have one if. (Though you can have both but this one is much less complicated.)

compare 0x800D 0x1
- 0x1 stands for "YES"

or you can do this:
#dynamic 0x800002

#org @start
lock
faceplayer
msgbox @yesno 0x5
compare 0x800D 0x0
if 0x1 goto @no

msgbox @yes2 0x6
release
end

#org @no
msgbox @no2 0x6
release
end

#org @yesno
= Are you stupid???

#org @yes2
= HAHAHA!!!

#org @no2
= Liar!!!

In this case, 0x0 stands for "no"

Hope it helps! ^^

 
Last edited:
Status
Not open for further replies.
Back
Top