• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

Irish Witch

Office Jenny
147
Posts
17
Years
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)
 
112
Posts
17
Years
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:

Irish Witch

Office Jenny
147
Posts
17
Years
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!
 

Irish Witch

Office Jenny
147
Posts
17
Years
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
 
284
Posts
18
Years
  • Age 31
  • Seen Apr 2, 2012
What do you mean by offsets i cannot get my script to work in Advance map (Sorry for the newbish question)
 

Irish Witch

Office Jenny
147
Posts
17
Years
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
 

Pazuzu

Flushing Meadows
5,468
Posts
19
Years
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