• 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 Trading Card Game 2 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.

Sierra's MEGA-HUGE XSE Scripting Tutorial

Hi, I wonder if anyone can help? I can't make people permanently disappear. I've done the whole setflag thing with their ID number; it doesn't work for me. Or, at least, not consistently; sometimes they're gone, and sometimes they reappear.
 
Hi, I wonder if anyone can help? I can't make people permanently disappear. I've done the whole setflag thing with their ID number; it doesn't work for me. Or, at least, not consistently; sometimes they're gone, and sometimes they reappear.

Just make them move into a tree or something... xD

EDIT:
Where do would I define nowhere in this script?

Code:
#org $start
lock
faceplayer
applymovement 0x01 $movement
message $move 0x2
release
end

#org $movement
#raw 0x01 0x62

#org $move
#move 1 =Oh, your up \v\h01.  The Professor\nwas looking for you this morning.\lYou better get to his lab quick!
release
end

EDIT 2: What do I use to check if a flag hasn't been set? You use 0x0 to check if its true, what about if its false?
 
Last edited:

EDIT 2: What do I use to check if a flag hasn't been set? You use 0x0 to check if its true, what about if its false?
if 0x0 is for false case I've already written it xD
 
Hi, I wonder if anyone can help? I can't make people permanently disappear. I've done the whole setflag thing with their ID number; it doesn't work for me. Or, at least, not consistently; sometimes they're gone, and sometimes they reappear.

Umm..I'm new to this, so I don't know if I can help. Shouldn't you use the 'hidesprite 0x[person event number]' construct?
 
Umm..I'm new to this, so I don't know if I can help. Shouldn't you use the 'hidesprite 0x[person event number]' construct?

I was using that too!

Anyway, I changed which numbers I was using as flags, and it started working. So, don't try using 2000 as a person's ID.
 
if 0x0 is for false case I've already written it xD
What? 0x0 is for False? (We need a confused smilie xD)

EDIT:
Code:
#org $start
lock
faceplayer
set flag 0x1
checkflag 0x1
if 0x1 goto @never
applymovement 0x01 @movement
message $move 0x2
release
end

#org @movement
#raw 0x01
#raw 0x62

#org $move
#move 1 =Oh, your up \v\h01.  The Professor\nwas looking for you this morning.\lYou better get to his lab quick!
release
end

#org @never
@never 0x1
release
end
XSE says that line 13 wont work.
 
Last edited:
What is a "level script"? As you described in the beginning of your post. What's the difference between a level script and a normal one?
 
Something's wrong in my scripts? I followed the tutorial in here but the script isn't working! =(

Spoiler:


Nothing's happened! >.< I hope I'm not posting in a wrong section...
 
OK I would like some help with my script. It's supposed to make it so you fight this guy and after you beat him he gives you a Pokemon. I'm pretty sure this should work but I would just like an experienced scripter to look over it.
Spoiler:
 
What? 0x0 is for False? (We need a confused smilie xD)

EDIT:
Code:
#org $start
lock
faceplayer
set flag 0x1
checkflag 0x1
if 0x1 goto @never
applymovement 0x01 @movement
message $move 0x2
release
end

#org @movement
#raw 0x01
#raw 0x62

#org $move
#move 1 =Oh, your up \v\h01.  The Professor\nwas looking for you this morning.\lYou better get to his lab quick!
release
end

#org @never
@never 0x1
release
end
XSE says that line 13 wont work.
I gotta point some mistakes you made.
First: setflag must be together (I wonder why XSE did not mention this mistake)
Second: start, org and all the msgboxes also must have @. Not # or $
Third: Never use flags above 200
So in other words re-do your script =D


OK I would like some help with my script. It's supposed to make it so you fight this guy and after you beat him he gives you a Pokemon. I'm pretty sure this should work but I would just like an experienced scripter to look over it.
Spoiler:
Fixes in bold and I'd advise to make him disappear after you receive Victini.

Something's wrong in my scripts? I followed the tutorial in here but the script isn't working! =(

Spoiler:


Nothing's happened! >.< I hope I'm not posting in a wrong section...
Well... the thing is... you cannot use first setvar this way... Try to do it with flags, it'll be easier and it should work.
 
This thread should be stickied.

It's a pretty bloody comprehensive guide, and is one of the best tutorials in this subforum.
 
Ash493, I've used the flags 200-205, and they work fine for me :P

I also agree with Blue4.
 
I gotta point some mistakes you made.
First: setflag must be together (I wonder why XSE did not mention this mistake)
Second: start, org and all the msgboxes also must have @. Not # or $
Third: Never use flags above 200
So in other words re-do your script =D



Fixes in bold and I'd advise to make him disappear after you receive Victini.


Well... the thing is... you cannot use first setvar this way... Try to do it with flags, it'll be easier and it should work.
Why can't you use flags above 200?
 
Hey, so does anyone think they can help me out? Im trying to do something as simple as make a pokeball give you an item but when i try this it either freezes my game or the pokeball disappears when i get the item and then reappears after one step? any suggestions... also the trainer view radius in AM doesnt work for me, any suggestions on that either?
 
If the Pokéball disappears and then reappers after one step it could be because you've used the same flag two times. Change flag and try again. 201-205 should be safe to use in FireRed.
 
or just use any flag with four characters as long as the first isn't zero cause almost all flags under a thousand are already used, so set a flag above a thousand and your safe.
Of course you have to know everything about scripting so check out my tutorial which starts from beginner scripting till advance scripting and everything else. OH and super thanks to diegoisawesome for getting me going on scripting in the first place.
 
ok thanks guys i figured out the pokeball problem but does anyone know how to make a trainer you made approach you? whenever i change the view radius of a trainer i made, it brings the trainer to me but i cant stop talking to him and it says unfamiliar letters.... and i know my trainer works bc if i talked to him he would battle me... help plz
 
Can anybody help me?

When i talk to the npc in the game nothing pops up. I just get the sound when you talk to the npc. But no chat box?
 
Back
Top