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

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
Is there a command to buffer a byte at an offset? I've searched XSE, and PC, but nothing came up. :(

You have to just manually use copybyte (might be a different name) to copy it to the address of a variable, then use the same commands to buffer a variable as normal.
 
Ok, I need help.
The script is supposed to make your Dad look at you, then saay "Wait! Come back here!" and then you face up and walk up at normal speed. Instead, it just freezes. It works when I get the pokemon from him first, though. (As in, it doesn't happen at all when I set the flag)
Spoiler:

Any help?
 
Ok, I need help.
The script is supposed to make your Dad look at you, then saay "Wait! Come back here!" and then you face up and walk up at normal speed. Instead, it just freezes. It works when I get the pokemon from him first, though. (As in, it doesn't happen at all when I set the flag)
Spoiler:

Any help?

You need waitmovement 0x0 after putting applymovement.
 
You have to just manually use copybyte (might be a different name) to copy it to the address of a variable, then use the same commands to buffer a variable as normal.

Would the address be like 0x8004? or like 0x800000? I'm confused. :\
 
No it's in 0x02000000 section that is where the gba stores the vars, and other things.

So, say if I had the variable 0x8004, would the address be 0x02008004?

*edit* I found the address for var 0x8005. It's at 0x020370c2. (Found it in an ASM tutorial. :))
Is each variable 1 byte? or 2?
 
Last edited:
Man, I just figured that out!

How could I convert a variable into a decimal through scripting? or should I just check it and store it as a string at an offset?
 
Okay, I'm a complete n00b around this stuff, so bear with me.

I'm trying to make a person script so when you talk to this guy, you answer yes or no. Yes gives you one mudkip, then if you talk to him after, he won't give you any more. The problem is, every time talk to him and press yes, these weird white boxes saying "0 coins" pop up and only go away after you enter a building or a battle.

Script below.
Spoiler:


What am I doing wrong?
 
I need help... (again)
This one freezes even though I used waitmovement 0x00.
I think it's because I used a script tile, but I was just doing the same thing the rest of the game uses.
Lance and Sally both have $000000 as their offsets, and 0201 as their IDs.
Here is my script:
Spoiler:


Ok, I fixed that, but now when I finish the script, this happens...
[PokeCommunity.com] Script Help Thread (DO NOT REQUEST SCRIPTS)

I can't move my character, instead I have a "mirror" version of my player. What's wrong?
 
Last edited:
Okay,so I have tried to make a script where when you would step on the script tile,2 people from offscreen would run some time,stop,say a message,continue running then go off screen.No flags or vars because I want this to happen every time I step on the tile.Yes,I'm aware that you need to reenter the building for the people to reset positions,however even the first time I step on it the game freezes.
Spoiler:

I'm stumped as to what could be the cause of the freeze,as I've tried everything possible.And I'm using Pokescript because I don't have access to downloads on this computer.Anyway,help would be appreciated.
 
I'm not expert on Pokescripting but I would think that Eternity and Collen have the same problem.

On the script tile set the unknown value to 0003 and the var number to 4050
 
I'm not expert on Pokescripting but I would think that Eternity and Collen have the same problem.

On the script tile set the unknown value to 0003 and the var number to 4050
I did that. Now I'm on my next question: Why is my player "mirrored"?


Ok, my playerer turned into another sprite the was off-screen. It's because of the battle.
How can I fix this?
 
Last edited:
Please Help

Hi.

I'm a complete Noob at Scripting exept for the talking Script and I need help fixing this script.

So before I put it here, this is what should happen: The NPC is looking left and you can only talk to him while he's facing away. He talks, has a "!" over his head and turns around, talks to the player, and then boots the player away and returns to looking left.

But instead of that, the NPC just looks at me.

Spoiler:
Spoiler:
 
Last edited:
Hi.

I'm a complete Noob at Scripting exept for the talking Script and I need help fixing this script.

So before I put it here, this is what should happen: The NPC is looking left and you can only talk to him while he's facing away. He talks, has a "!" over his head and turns around, talks to the player, and then boots the player away and returns to looking left.

But instead of that, the NPC just looks at me.

Spoiler:
Spoiler:

the 'ifs' go after the checkflag. Like so:

checkflag 0x1201
if 0x1 goto @done

Now for my question:

Is there a way to have more than 3 buffers, or to combine buffers together?
 
how would i go to make a script that allows me to collect 8 badges in 4 different regions and register does badges per region?
also how to make it so it recognizes that iv'e collected 32 badges for pokemon fire red
 
@locoroco: You don't actually script that. In fact, I think it's not possible for 4 regions in a hack. You could give and check the badges using 'setflag' and 'checkflag'.
 
Status
Not open for further replies.
Back
Top