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

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
I do that every time I modify in XSE so I can go test it. It's changed.

Do you save in advance map each time? Sometimes I forget and I'm like "wtf I just changed you" Make sure
 
That costs money. I don't have the $5 to sign up.

It doesn't cost money.. tons of people I bring in everyday
If you're asking about membership don't pay, it's just a donation choosing thing
 
hi so I have this massive talking script but when i compile it it just throws in a random loadpointer command

Script;

Spoiler:


after compiling :
Spoiler:


(I used the biggest offset you can find in FSF i just spammed on 9 till the numbers changed)
 
hi so I have this massive talking script but when i compile it it just throws in a random loadpointer command

Script;

Spoiler:


after compiling :
Spoiler:


(I used the biggest offset you can find in FSF i just spammed on 9 till the numbers changed)

Hmm, are you sure this is all free space?

And have you tried breaking up the script? Like, have a decent chunk, then have a goto pointer to another chunk and then another goto pointer until the script is finished?
 
Hmm, are you sure this is all free space?

And have you tried breaking up the script? Like, have a decent chunk, then have a goto pointer to another chunk and then another goto pointer until the script is finished?

He needs to repoint it. If he compiles over old data then the old data gets messed up. Get it?
 
So the script is the player walks a few blocks up and the ship which he comes from "dissapears"

Spoiler:


But the problem is the ship sprite keeps comign back and the script dosent stop after 1st run, it should be a one time thing. Help? (Im pretty new to scripting)
 
Last edited:
So the script is the player walks a few blocks up and the ship which he comes from "dissapears"

Spoiler:


But the problem is the ship sprite keeps comign back and the script dosent stop after 1st run, it should be a one time thing. Help? (Im pretty new to scripting)

This is a level script, right? Then you should be using vars 4011-40FF and be setting that var accoridngly (more info is in karatekid's flags, vars, and script tutorial). And you need a releaseall and end command at the end (more info about hot to construct a level script can be found in diegoisawesome's XSE tutorial). And you need to assign a flag number to the ship and then set that flag in your script somewhere before you use the "hidesprite" command to make the ship disappear even when you leave the map and come back in.
 
This is a level script, right? Then you should be using vars 4011-40FF and be setting that var accoridngly (more info is in karatekid's flags, vars, and script tutorial). And you need a releaseall and end command at the end (more info about hot to construct a level script can be found in diegoisawesome's XSE tutorial). And you need to assign a flag number to the ship and then set that flag in your script somewhere before you use the "hidesprite" command to make the ship disappear even when you leave the map and come back in.

Thanks, it worked, also, theres this:
It worked the first time I tested it but then it stopped working I havent chnaged it in anyway so im confused.

Spoiler:
 
@tanjim13, Once you defeat a Trainer, its respective trainerflag will be set, that's why your script worked only once, to make it possible to re-battle that trainer you need to clear that trainerflag after the battle.

No, I ment the message after battling isn't showing up.
 
No, I ment the message after battling isn't showing up.

I saw your script under your spoiler, there's no message on the other offset, obviously.
Should be like this.

Code:
#dynamic 0x800000  
#org @start trainerbattle 0x0 0x1 0x0 @before @after 
msgbox @beaten 0x6
release 
end  

#org @before 
= [blue_fr]Joel: Huh? You're a new face...\n[red_fr][player]: I just enrolled.\l[black_fr]Joel: Sweet! Time to test you!  

#org @after 
= <After battle message here>  

#org @beaten 
= Joel: You have earned my respect\nyoung [player]

Editing the script then compiling it again would screw the whole script.
Best to re-write it and insert on a different offset, or delete the offset that's been used.
 
Spoiler:

So I dont know why this is hapening to me but you speak to the guy and the other guy does dissapear due to setflag but if I return to the map before speaking to the man again for clearflag the guy returns anyways..
This has been happening to me alot so this was a test script.. Do you know why their OW arn't dissapearing after I setflag them?
 
Spoiler:

So I dont know why this is hapening to me but you speak to the guy and the other guy does dissapear due to setflag but if I return to the map before speaking to the man again for clearflag the guy returns anyways..
This has been happening to me alot so this was a test script.. Do you know why their OW arn't dissapearing after I setflag them?


I may be wrong but I think that the flag 6000 is too high to be used... usually I use flags in the 1000s but anything after 900s should be fine. Also, in the AdvanceMap you are using, are you entering the flag number under the overworld sprite? Make sure you set the flag to the right person. If you, say, use a flag of 1434 then you would put under Person ID of the OW sprite (which is under Script Offset) "$1434".

You can only use setvar on script tiles ... not in scripts with overworld sprites because that setvar value you have 0x6001 would have to go to the var number of the script tile in advancemap.

ALSO, only vars 0x4011-0x40FF are safe so using 0x6001 is wrong
 
Last edited:
I made the necessary changes but it still happens as soon as I walk out and back in the OW returns even after I have set the flag, I have put the person ID in...
 
For some reason any scripting program I try to use won't work it says something like script aborted I have watched millions of videos and followed the instructions perfectly using the same programs and it won't work is it my computer?
 
I may be wrong but I think that the flag 6000 is too high to be used... usually I use flags in the 1000s but anything after 900s should be fine. Also, in the AdvanceMap you are using, are you entering the flag number under the overworld sprite? Make sure you set the flag to the right person. If you, say, use a flag of 1434 then you would put under Person ID of the OW sprite (which is under Script Offset) "$1434".

You can only use setvar on script tiles ... not in scripts with overworld sprites because that setvar value you have 0x6001 would have to go to the var number of the script tile in advancemap.

ALSO, only vars 0x4011-0x40FF are safe so using 0x6001 is wrong

NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

M.L: Read this: https://www.pokecommunity.com/threads/302347 and this https://www.pokecommunity.com/showthread.php?p=7952324#7952324
 
Status
Not open for further replies.
Back
Top