• 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.

Advanced Scripting Tutorial

Status
Not open for further replies.
i inserted the script that you have in tutorial


#org 0x800000
applymovement 0x3 0x800100
pause 0x30
end

#org 0x800100
#raw 0x8
#raw 0x8
#raw 0xA
#raw 0xFE
 
i inserted the script that you have in tutorial


#org 0x800000
applymovement 0x3 0x800100
pause 0x30
end

#org 0x800100
#raw 0x8
#raw 0x8
#raw 0xA
#raw 0xFE

The event with "People's number" 3 should move.
 
I'm using a rom that's us-pokemon firered....
i'm wondering if someone can write me a script?...
i need it as an example...
I need a trainer.....rocket grunt preferably
i need him/he to battle me
in my new city
Battle city
the city's offset is $71CC08
the trainer can have just one pokémon
please do this so i can use it in an example
position X:20 Y:20 for the events position and PM it to me please...

Please explain how to add events as I am having trouble understanding the scripting tutorial....please reply ASAP...
 
All you need is a trainerbattle command for this script. Put it in a script with the messages and edit the trainer's data with PET.
 
but i don't understand how to do dis...even wit ur tut....please dumb it down for me or explain it differently...reply ASAP
 
but i don't understand how to do dis...even wit ur tut....please dumb it down for me or explain it differently...reply ASAP
Look. You've posted your question 3 times in two different threads! If Christos doesn't have the time to answer your question to the full extent then he doesn't! Badgering him and spamming up the forums doesn't help at all. Your question has been asked before as well so search before asking.
Oh. As you can see, we're not Insant Messaging each other. Proper grammar makes everything alot easier to understand and gives us a sense that, even if you're not trying to be, you're respectful to this forum and it's members.

Christos, this tutorial is great. It's really helping with everything but my little flag problem. Thank you for posting it.
 
Wow, nice tutorial Christos.

You're the first one who's actually been able to explain those commands to me.

Keep it up =D
 
But I heard somewhere on this forum that the trainerbattle command for scripted didn't work properly...
 
Okay, I'm still a newb at this, but is there a 'command' (I'm thinking computer programming XD) that makes a store clerk? What I mean is can I make a person who sells stuff without moving one of the ones already in the game.
 
But I heard somewhere on this forum that the trainerbattle command for scripted didn't work properly...
You're right. In fact, it's in the archived Simple Questions thread. But I'm not gonna lead you on a wild goose chase and tell you to search. You put #raw 0x5C above the trainerbattle command. Like this:
Code:
#org 0x800000
#raw 0x5C
trainerbattle 0x00 0x1A 0x800100 0x800200 0x800300
end

#org 0x800100
= Let's battle
#org 0x800200
= I lost!
#org 0x800300
= We already battled!
zel so graciously told me that. It has been tested (in firered) and works. Without the #raw command, the script converts to jibberish when complied. Hope this helps!

P.S. Christos, if people start asking why their trainerbattle script doesn't work, you can use my example.
 
Okay the script works fine for me now
but there's another problem
whene i go to the script people move well but when i go back to the script people move again
her i will posta video that will explain much better then me click here
 
Okay the script works fine for me now
but there's another problem
whene i go to the script people move well but when i go back to the script people move again
her i will posta video that will explain much better then me click here
Setting and checking flags would work. It'll stop your event from repeating. I'm actually having problems with flags right now so I really can't go into detail.
 
.........

love the tutorial christos thanks alot!

1 quik question,

#org 0x762000
message 0x762100
boxset 0x2
end
#org 0x762100
= DIIUUD!

is there anything rong with this script??
ive compiled it , saved it and stuf but in the game it doesent work i just get the little bleep noise and i cant add it with rubikon for somereason , any ideas???
 
love the tutorial christos thanks alot!

1 quik question,

#org 0x762000
message 0x762100
boxset 0x2
end
#org 0x762100
= DIIUUD!

is there anything rong with this script??
ive compiled it , saved it and stuf but in the game it doesent work i just get the little bleep noise and i cant add it with rubikon for somereason , any ideas???
I don't know what 'boxset 0x2' is.. try 'boxset 0x6'
And before your message, 'lock' the person and after your boxset 'release' it.
So:
Code:
#org 0x762000
lock
faceplayer 'Yeah, well.. when it's a person event.. Maybe you want it..
message 0x762100
boxset 0x2
release
end
'Maybe this space needs to be there..
#org 0x762100
= DIIUUD!
Don't blame me when this doesn't work.. I just start scripting XD
 
This script is fine.

#org 0x762000
message 0x762100
boxset 0x2
end
#org 0x762100

= DIIUUD!

You could ( not have to ) place faceplayer between #org and message, but it isn't always neccesary.

My question, I tried the trainerbattlescript ( with the #Raw 0x5C )
But i still am getting 'overflow error 6' or something ( diamondcutter )
Any idea?
 
This is much needed tutorial! The only problem is I can't get the script to work. Here's what I did: I copied that Hi! example basic talking script you made and pasted it in Notepad. Then I saved it in a RBC format. I opened it with ScriptEd and compiled to the ROM. I set the offset for the Littleroot Town fat guy's script. Then I saved it and opened the ROM. But when I talk to him, all that happens is the bleep sound it makes when you talk to someone. There's no text box or anything.
 
Your ROM and RBC file must be in ScriptED/Diamond Cutter's folder with no spaces in the name.
 
Do you mean it has to be in the EliteMap folder? I copied ScriptEd and DiamondCutter and put them in the same folder as my ROM and script were.

EDIT: Yeah, I tried that and it worked, but the text was just a whole bunch of weird symbols that looked like a's.
 
Last edited:
You're right. In fact, it's in the archived Simple Questions thread. But I'm not gonna lead you on a wild goose chase and tell you to search. You put #raw 0x5C above the trainerbattle command. Like this:
Code:
#org 0x800000
#raw 0x5C
trainerbattle 0x00 0x1A 0x800100 0x800200 0x800300
end

#org 0x800100
= Let's battle
#org 0x800200
= I lost!
#org 0x800300
= We already battled!
zel so graciously told me that. It has been tested (in firered) and works. Without the #raw command, the script converts to jibberish when complied. Hope this helps!

P.S. Christos, if people start asking why their trainerbattle script doesn't work, you can use my example.

Thnx a lot! I've been wondering how to solve this prob for a while
 
My question, I tried the trainerbattlescript ( with the #Raw 0x5C )
But i am getting 'overflow error 6' or something ( diamondcutter )
Any idea?
 
Status
Not open for further replies.
Back
Top