• 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.
can anyone help me what's wrong whit this script
#org 0x800000
checkflag 0x1
if 0x0 call 0x800200
release
end

#org 0x800200
applymovement 0x3 0x800100
pause 0x30
setflag 0x1
release
end

Also, that layout will take up less codespace! (and is a more logical layout)
 
Hey i wanted to know what is wrong with this script it says Runtime Error: Type mismatch
If there is anything wrong with it.....
Spoiler:

wrapped in spoiler tags so i donot take up much space.

Giovanni.
 
Last edited:
I just copied and pasted your script into a file and compiled it!
<Picture attached>

If you'r using Pokescript the latest update was 48hrs ago (more or less).
Works for me, except the movement data but thats specific to your map!
 
I can guess! The pokemon list only goes up to 0x019B(144).
I would hazzard a guess that it's done internally by using bitswapping. Try adding 0x8000 (32768) to your pokemons number or other variations of that behavior.

Boss Giovanni said:
#org 0x800200
#raw 0x07
#raw 0x15
#raw 0x15
#raw 0x15
#raw 0x15
#raw ox15
#raw 0x15
#raw 0x08
#raw 0x08
#raw 0x0B
#raw 0x60
#raw 0xFE

that should be 0 not o
 
What do you mean by offsets i cannot get my script to work in Advance map (Sorry for the newbish question)
 
An offset is a values like 0x800000

As used in the phrase #org 0x800000
The above is an absolute offset which tells the program the script should start at offset (address) 0x800000

The word offset in this thread is also used to refer to a phrase like this:
#org $Startscript

This is a relative offset. Bufrite will assign a relative offset to an absolute location and display that location in the log:
Code:
 - Pushed simplescript.$startjolt to [B]800000[/B]
#PROCESS: D:\PokeWitch\POKEMON SAPPHIRE VERSION.GBA F:2 for read
/---------------------------------------------------------------
| - Pushed simplescript.$joltbattle to [B]80001C[/B]
| - Pushed simplescript.$winjolt to [B]80003E[/B]
| - Pushed simplescript.$sorry to [B]80005F[/B]
| - Pushed simplescript.$givebadge to [B]800068[/B]
| - Pushed simplescript.$domove to [B]800082[/B]
| - Pushed simplescript.$givepoke to [B]8000BD[/B]
| - Pushed simplescript.$error to [B]800100[/B]
| - Pushed simplescript.$nameevee to [B]80010A[/B]

etc etc
 
Baddabing, baddaboom~
Since most of the questions that are getting asked here are not related to the tutorial, but more to scripting in general, I'm going to put a Happy-Lock on this.
Please take these things to the Script Discussion thread in the main forum.

~closed~
 
Status
Not open for further replies.
Back
Top