• 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?".
  • Forum moderator applications are now open! Click here for details.
  • 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.

Hack Tutorials: Scripting

Status
Not open for further replies.
3,518
Posts
19
Years
  • Age 31
  • Seen Nov 9, 2021
Can anyone help me with this?

Whenever I try and compress the .RBC..

This pops up:


Can anyone explain this problem?
Pokescript.jpg
 

ROMan

INSERT USER TITLE
32
Posts
16
Years
Nope, I'm not so dandy with PokeScript but I can totally script well....
Another question, does anyone have a good tutorial on how to insert scripts? I really want to get started but without movements I can't do nothing.
 
10
Posts
16
Years
  • Seen Apr 1, 2008
The 'compile' option doesn't work

AND

When I try to open Pokescript, it says:

Run-time error '-2147024770 (8007007e)':
Automation error
The specified module could not be found.

What's happening?!!
 
Last edited:

cooley

///Keepin' it simple
1,148
Posts
17
Years
Do not Request tutorials! Also to add a text Script you can:
Code:
#org $Begin
lock
faceplayer
message $Talk
boxset 6
release
end
Compile that into your rom.
 

Derlo

Tired....
135
Posts
16
Years
hey guys help me..

#org $salvaraflorista
lock
if 1 goto $nada
applymovement 10 $hun
$hun 1 ; #Binary 0x62 0xFE
applymovement 13 $hun2
$hun2 1 ; #Binary 0x62 0x4A 0xFE
pause 0x20
message $cara
$cara 1 = MARIO: Sai pirralho...\nisto nao e contigo!
boxset 6
message $flori
$flori 1 = Margarida: \c\h01\h04Por favor garoto,\nme ajude!
boxset 6
call $luta*<-----------------------------After this, the sprites goin CRAZY..
message $cara2
$cara2 1 = MARIO: Voce se deu bem nessa garoto.\nMas da próxima vez...\lvoce irá perder!
boxset 6
fadescreen 1
applymovement 11 $ajuste1
$ajuste1 1 ; #Binary 0x09 0x09 0x0B 0x60 0xFE
applymovement 12 $ajuste2
$ajuste2 1 ; #Binary 0x09 0x09 0x0A 0x60 0xFE
applymovement 13 $ajuste3
$ajuste3 1 ; #Binary 0x09 0x09 0x60 0xFE
pausemove 0
fadescreen 0
applymovement 10 $hun
pause 0x20
message $flori2
$flori2 1 = Margarida: \c\h01\h04Muito obrigado gatoto!\nTome isso como agradecimento!
boxset 6
giveitem 0x44 0x1
message $flori3
$flori3 1 = Margarida: \c\h01\h04Agora tenho que ir!\nTchau!
boxset 6
applymovement 10 $subir
$subir 1 ; #Binary 0x09 0x60 0xFE
pausemove 0
setflag 0x203
release
end

#org $luta
trainerbattle 1 92 $before $after
return

#org $before
$before 1 = MARIO: Queres ajudar?!\lEntao venca-me!!

#org $after
$after 1 = Que droga.. \lfui derrotado!

#org $nada
release
end

*after the script pass in $luta struggles, the minisprites of the rom are crazy, and the movement of the hero changes for another minisprite... how to adjust that?
 
Notes: unknown #2 = 3
movement = 11
Question: Why doesn't the sprite appear ingame? I don't understand.
Code:
#org $StartWild
lock
faceplayer
cry 251
message $bi
$bi 1 = CELEBI: Bi?
boxset 6
checkflag 0x808
if 0x1 goto $WildBatt
release
end

#org $Wildbatt
lock
wildbattle 251 10 1
release
setflag 0x232
fadescreen 0
end
 

ElkinFencer10

Pokémon Merchant
1
Posts
16
Years
Hey, I'm trying to put this bit of script into my game, but when I load the ROM and try to assign one of those funky number things, nothing comes up. I keep clicking "Search" but nothing happens. What's going on? Do I need to find a ROM expander, and if I do, where can I find a GBA one?
 

Teamtyranitar

Fizz-X
214
Posts
16
Years
help

umm never mind i fixed it but could sombody tell me whats wrong with this '-----------------------
#org $start
Lock
Faceplayer
Checkflag 0x200
If b_true goto $done
Message $poke
Boxset 5
Compare LASTRESULT 1
If b_true goto $recieve
Message $no
Boxset 6
Release
End

#org $done
Message $how
Boxset 6
Release
end

#org $recieve
Givepokemon 25 15 0
Jingle
Message $here
Boxset 6
Setflag 0x200
Release
end

#org $poke
$poke 1 =Would you like your a\ppikachu?

#org $how
$how 1 =How's your Pikachu going?

#org $here
$here 1 =You received your Pikachu.

#org $no
$no 1 =I'm sure somebody else would\ntake uit.
 
Last edited:
2
Posts
16
Years
  • Seen Dec 3, 2007
Hi, i did some simple scripting and it works. but i still havent found out how i can add NEW players to the game. i dont want to edit old trainers but i want to create new ones, cause my maps are really empty without trainers :/
it's really urgent :[
i only find tutorials where i can edit existing trainers, but i want to make some new ones ... still no tool can help me, so scripting is my last hope :'(
 
Last edited:
2
Posts
16
Years
  • Seen Nov 30, 2020
BASIC TRAINERBATTLE

#org $start
lock
faceplayer
trainerbattle 1 0x001 $before $after
message $boo
boxset 6
release
end

#org $before
$before 1 =Check out my bugs

#org $after
$after 1 =Oh no!

#org $boo
$boo 1 =I'll get you back for this.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

A MORE 'ADVANCED TRAINERBATTLE'

#org $start
checkflag 0x20C
if b_true goto $done
applymovement 0x01 $move
pausemove 0
trainerbattle 1 0x006 $before $after $further
release
end

#org $further
setflag 0x20C
message $talk
boxset 6
applymovement 0x01 $move2
pausemove 0
release
end

#org $done
release
end

#org $move
$move 1 ; #binary 0x12 0x12 0x12 0x12 0xFE

#org $move2
$move2 1 ; #binary 0x13 0x10 0x10 0x60 0xFE

#org $before
$before 1 =G'day!

#org $after
$after 1 =That's good.

#org $talk
$talk 1 =G'day, my name is Jason.\nI hope I see you again,\pI'm going to beat you next time.





--------------
This one "trainerbattle 1 0x001"
The 0x001 means in the PET the state of the trainer
No u have to go in in PET and type the name of the trainer and give him Pokemon.
You can also use 0x003 +++++++
Hope that u can understand that X_x
 
2
Posts
16
Years
  • Seen Dec 3, 2007
0x001 means the first trainer in PET? so this would be editing, or am i wrong?
cause i dont get how to add new trainers in PET. In addition PET crashes my game as i use german roms :/
it also crushes my us-version-rom
and i still dont get how to work with PET :[

can someone make a whole tutorial: how to add new trainers and how to work with PET?
would be very nice :)

thx anyways
 
Last edited:
860
Posts
17
Years
I got a Q I use a warp in my yes-no script the yes no part works perfect but then it has to warp and I put it like this (whitout the things between () ) warp 0x3(bank) 0x19(map) 0x1(warp) but when I use it in VBA it sends me to a whole other place in the trees or just all black..help needed please..

EDIT
fixed it it works whitout the 0x..XD
 
Last edited:

Jvg

Sir JvG for Friends
116
Posts
16
Years
What is wrong with this script? every time I try to compile it says:

Code:
Run-time error 457

This Key is already associated with an element of this collection

Script:

Code:
#org $script
checkflag 0x215
if 1 goto $klaar
lock
applymovement 1 $help
$help 1 ; #binary 0x04 0x62 0xFE
pausemove 0
message $bang
$bang 1 =I am scared!\nThat guys won't let me through!
callstd 6
applymovement 0xFF $heen
pausemove 0
applymovement 2 $jij
applymovement 3 $jij1
pausemove 0x50
trainerbattle 1 0x002 $before $after $further
release
end

#org $further
applymovement 2 $bang
pausemove 0
applymovement 3 $kom
pausemove 0
applymovement 2 $gas
pausemove 0
trainerbattle 1 0x003 $voor $na $einde
release
end

#org $einde
message $weg
$weg 1 =You've won.\nYou can pass.
callstd 6
applymovement 3 $gaat1
pausemove 0
setflag 0x215
release
end

#org $heen
$heen 1 ; #binary 0x13 0x13 0x13 0x13 0xFE

#org $jij
$jij 1 ; #binary 0x02 0x65 0xFE

#org $jij1
$jij1 1 ; #binary 0x02 0x65 0xFE

#org $bang
$bang 1 ; #binary 0x65 0x49 0xFE

#org $gas
$gas 1 ; #binary 0x13 0x13 0x13 0x13 0x10 0x10 0x10 0x10 0x10 0x10 0x13 0x60 0xFE

#org $kom
$kom 1 ; #binary 0x10 0x02 0xFE

#org $before
$before 1 =Get out!

#org $after
$after 1 =I lost from a child!

#org $voor
$voor 1 =You won't defeat me!

#org $na
$na 1 =How...

#org $gaat1
$gaat1 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x10 0x10 0x10 0x10 0x10 0x10 0x13 0x60 0xFE

#org $klaar
release
end
 
1,104
Posts
16
Years
What is wrong with this script? every time I try to compile it says:

Code:
Run-time error 457

This Key is already associated with an element of this collection

Script:

Code:
#org $script
checkflag 0x215
if 1 goto $klaar
lock
applymovement 1 $help
$help 1 ; #binary 0x04 0x62 0xFE
pausemove 0
message [B]$bang
$bang 1[/B] =I am scared!\nThat guys won't let me through!
callstd 6
applymovement 0xFF $heen
pausemove 0
applymovement 2 $jij
applymovement 3 $jij1
pausemove 0x50
trainerbattle 1 0x002 $before $after $further
release
end

#org $further
applymovement 2 [B]$bang[/B]
pausemove 0
applymovement 3 $kom
pausemove 0
applymovement 2 $gas
pausemove 0
trainerbattle 1 0x003 $voor $na $einde
release
end

#org $einde
message $weg
$weg 1 =You've won.\nYou can pass.
callstd 6
applymovement 3 $gaat1
pausemove 0
setflag 0x215
release
end

#org $heen
$heen 1 ; #binary 0x13 0x13 0x13 0x13 0xFE

#org $jij
$jij 1 ; #binary 0x02 0x65 0xFE

#org $jij1
$jij1 1 ; #binary 0x02 0x65 0xFE

#org [B]$bang[/B]
[B]$bang[/B] 1 ; #binary 0x65 0x49 0xFE

#org $gas
$gas 1 ; #binary 0x13 0x13 0x13 0x13 0x10 0x10 0x10 0x10 0x10 0x10 0x13 0x60 0xFE

#org $kom
$kom 1 ; #binary 0x10 0x02 0xFE

#org $before
$before 1 =Get out!

#org $after
$after 1 =I lost from a child!

#org $voor
$voor 1 =You won't defeat me!

#org $na
$na 1 =How...

#org $gaat1
$gaat1 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x10 0x10 0x10 0x10 0x10 0x10 0x13 0x60 0xFE

#org $klaar
release
end

You should have posted this in the script Discussion thread, that's what it's there for. But I've bolded the problem.
You've overused the $bang pointer. Change one of them to something different. The script is confused and doesn't know which pointer to go to, the pointer for the message or the pointer for the applymovement.
 

giova90

Moebius
30
Posts
16
Years
  • Age 33
  • Seen Jul 5, 2014
i've a question,when put the checkgender into a script,which owerworld people have to choose?and how can i do to put when choose a male protagonist at the beginning to meet the other gender character,?
 

mach8822

:O :O :O :O :O
68
Posts
16
Years
Ok, I have a HUGE problem. (I would be making a game if it wasn't for this -_-#) The scripts never write correct to the rom. I;ve dont exactly what the about three different tutorials have said. I have even cpoied the scribt exactly from a them sometimes. I save them as an .rbc file, I've downloaded Pkm Advance and I have Pokescript. The problem is that whenever I write it to the rom, it writes correctly (so it says), but when I give the script to a person a text box flashes then it freezes. Then when I press "A" (you know what I mean by "A") the screen turns red. Any help?
 
Status
Not open for further replies.
Back
Top