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

[Archive] Script help thread

Status
Not open for further replies.
Piplup Trainer : Look in thethethethe's tutorial,I think it's there,in special trainer commands

TB :
Code:
Code:
#ORG $begin
checkflag 0x202
if B_true goto $done
applymovement 0x01 $exe
pausemove 0
applymovement 0x01 $momwalk
message $momtalk
boxset 6
pausemove 0
message $playertalk
boxset 6
applymovement 0x01 $momwalk1
message $momtalk1
boxset 6
pausemove 0
message $playertalk1
boxset 6
applymovement 0xFF $playerwalk
pause 0x3
applymovement 0x01 $momwalk2
pausemove 0
message $momtalk2
boxset 6
applymovement 0x01 $momwalk3
applymovement 0xFF $playerwalk1
applymovement 0xFF $playerturn1
pausemove 0
message $momtalk3
boxset 6
applymovement 0x01 $momwalk4
applymovement 0xFF $playerwalk2
pausemove 0
setflag 0x202
warp 0x4 0x1 0x0
end

#ORG $done
release
end

#ORG $exe
#RAW 0x62 0xFE

#ORG $momwalk
#RAW 0x11 0x11 0xFE

#ORG $momtalk
$momtalk 1 = MOM: \c\h01\h04Oh \v\h01\.  Today is the\nday you were supposed to\pgo and visit dad isn't it?\nIt'll be okay, honey, I promise.

#ORG $playertalk
$playertalk 1 = .....................

#ORG $momwalk1
#RAW 0x12 0xFE

#ORG $momtalk1
$momtalk[B]1[/B] 1 = MOM: \c\h01\h04I can't afford to.......

#ORG $playertalk1
$playertalk1 1 = \v\h01\: \v\h01\h06I'm Going with a POK\h1BMON\nOr without a POK\h1BMON.

#ORG $playerwalk
#RAW 0x10 0x10 0x13 0xFE

#ORG $momwalk2
#RAW 0x1D 0x20 0x1D 0x1D 0x1D 0x1D 0x20 0x4A 0xFE

#ORG $momtalk2
$momtalk2 1 = MOM: \c\h01\h04Don't Be so reckless \v\h01.\nYou might get hurt with no POK\h1BMON.

#ORG $playerturn
#RAW 0x01 0xFE

#ORG $momwalk3
#RAW 0x11 0x11 0x11 0xFE

#ORG $playerwalk1
#RAW 0x11 0x11 0x11 0xFE

#ORG $playerturn1
#RAW 0x04 0xFE

#ORG $momtalk3
$momtalk3 1 = MOM: \v\h01\h04Oh, \v\h01, plese don't get\nhurt. I don't want you to get\phurt like your bro.........\nWell just don't get hurt!\pPromise me that you won't\ntravel into the grass without\pa POK\h1BMON!

#ORG $momwalk4
#RAW 0x12 0xFE

#ORG $playerwalk2
#RAW 0x10 0x10 0x10 0x10 0x12 0x04 0xFE
 
Okay, I have an error(long time since I posted that in here XD!). When I compile my script, it gets about 3/4 of the way down it, and then it pops up an error that says: Run-Time error 457
This key is already associated with an element of this collection. I, along with Twilite Darkrai, checked it over many times, and found no errors that would cuse this.

Here is the script:
Spoiler:

Well, after adjusting the script to work with XSE, it got compiled perfectly. The only suggestion I could give you is to replace "B_true" in the third line with a simple 0x1.
 
I posted this in thethethethe's scripting tutorial, but I think that was the wrong thread.

After I compile the script, I go and test it in VBA. But when I talk to the person, a weird triangle appears in the top-right corner with a symbol in it. After that the game freezes. Any help?
 
Okay guys! I fixed it, the movements were the wrong way, he was supposed to be walking left, not right! Thank You Aquila!

NP ;)

Anyway, I have a problem here... The warping script won't work.. Please help me..

#org $begin
checkflag 0x216
if b_true goto $done
message $1
boxset 6
Playsound 0x01B9
nop
applymovement 0xFF $A
pausemove 0
applymovement 0xFF $B
pausemove 0
message $2
boxset 6
checkgender
compare LASTRESULT 1
if B_true goto $boy
#raw 0x55 0x11 0x00
applymovement 0xFF $C
pausemove 0
applymovement 0x01 $E
pausemove 0
applymovement 0x02 $D
applymovement 0x03 $D
applymovement 0x04 $D
applymovement 0x09 $D
applymovement 0x0A $D
applymovement 0x0B $D
applymovement 0x0C $D
pausemove 0
message $3
boxset 6
applymovement 0x01 $F
pausemove 0
applymovement 0x02 $G
applymovement 0x03 $G
applymovement 0x04 $G
applymovement 0x09 $G
applymovement 0x0A $G
applymovement 0x0B $G
applymovement 0x0C $G
pausemove 0
setflag 0x216
warp 24 52 2
release
end

#org $boy
#raw 0x55 0x10 0x00
applymovement 0xFF $C
pausemove 0
applymovement 0x01 $E
pausemove 0
applymovement 0x02 $D
applymovement 0x03 $D
applymovement 0x04 $D
applymovement 0x09 $D
applymovement 0x0A $D
applymovement 0x0B $D
applymovement 0x0C $D
pausemove 0
message $3
boxset 6
applymovement 0x01 $F
pausemove 0
applymovement 0x02 $G
applymovement 0x03 $G
applymovement 0x04 $G
applymovement 0x09 $G
applymovement 0x0A $G
applymovement 0x0B $G
applymovement 0x0C $G
pausemove 0
setflag 0x216
warp 24 52 2
release
end


#org $done
#raw 0x53 0x01 0x00
#raw 0x53 0x02 0x00
#raw 0x53 0x03 0x00
#raw 0x53 0x04 0x00
#raw 0x53 0x09 0x00
#raw 0x53 0x0A 0x00
#raw 0x53 0x0B 0x00
#raw 0x53 0x0C 0x00
release
end

#org $1
$1 1 = Yes!\pIt's happening.

#org $2
$2 1 = GRUNT:Bring us back in time now.

#org $3
$3 1 = GRUNT: What the..?\pWhere did it go?

#org $A
$A 1 ; #binary 0x16 0x17 0x17 0x17 0x17 0x17 0x17 0x17 0x16 0xFE

#org $B
$B 1 ; #binary 0x16 0x16 0xFE

#org $C
$C 1 ; #binary 0x54 0x09 0x09 0x09 0x09 0x0A 0x0A 0x0A 0xFE

#org $D
$D 1 ; #binary 0x57 0xFE

#org $E
$E 1 ; #binary 0x54 0x08 0xFE

#org $F
$F 1 ; #binary 0x55 0xFE

#org $G
$G 1 ; #binary 0x56 0xFE
 
What happens?
When does the script freeze\not work

DARKFEAR : Show us the script
 
@ Aquila...
well, I have experienced some of my warping scripts won't work properly, or won't warp at all, mainly because, after looking through the problem, I always have a misspelled command like 'clearfalg' or puasemove' errors...

I saw in your script that the playsound lacks one more 'nop'...
Read thethethethe's tutorial why I said so...

Also, I'm not sure, but I think it should be 0x1B9, but if the music works well, then mind not this line...
 
EDIT: It did actually work (with 1 nop as well as with 2)... it was a level script that went wrong on the map I warped to...
 
Last edited:
I don't know if this is the right place to put this, but I couldn't find anyplace else.
For some reason, whenever you fight a custom made pokemon in my hack, it gives you a lot more xp than usual.

For example: whenever fighting a lv 2 wurmple, you get 15 xp.

BUT, whenever you fight a lv 2 Firesumo (an edited pokemon) you get anywhere from 100 to 200 xp.
 
Trogdor7190 :
That should be asked in Simple Questions thread.
Are you using Pep (Pokemon Editor Pro)
If so,then it's probably switching the catch rate and XP.
Try saving twice so it can switch back.
 
What happens?
When does the script freeze\not work

DARKFEAR : Show us the script

#org $start
lock
faceplayer
message $1
boxset 6
release
end

#org $1
$1 1 =Hi.\nWelcome to Redport.


After I compile the script, I go and test it in VBA. But when I talk to the person, a weird triangle appears in the top-right corner with a symbol in it. After that the game freezes. Any help?
 
hey there, I have a little problem.
I know how to make a healing script, but it doesn't help me with my problem:
After the hero fainted, he will be back in the house. But not next to his mother, just somewhere in the room. (btw his mother will be gone soon).
How can I make a script and use it, so that the hero will be warped into the house after he fainted? Where do I insert the script?
(I hope it's possible with pokescript...).

I know, the script would include warp commands and the healing special, that's not the problem. I just don't now where I have to insert it.
 
@destinejagold I never put a space there X_X and all my scripts come out fine :/ try recompiling, maybe it was a pokescript error
 
Is there a way to check if the player has already entered the HoF? Like with flags or something? Or a way to change where the player will be warped to when they beat the League?
 
This script freezes at the end instead of warping the player.

#ORG $begin
checkflag 0x200
if b_true goto $done
message $chief
boxset 6
special 0x131
message $hey
boxset 6
applymovement 0xFF $down
pausemove 0
fadescreen 0x0
warp 0x1 0x0 0x5
fadescreen 0x1
setflag 0x200
release
end

#org $done
release
end

#org $chief
$chief 1 = LOL! That episode of Arby\nn' the Chief was the best!

#org $hey
$hey 1 = Hey! What was that?!\pI'd better go check it out.

#org $down
$down 1 ; 0x18 0x18 0x18 0x18 0x18 0x18 0x18 0x16 0XFE
 
So, uh, I'm probably gonna sound like a total n00b, but... I really do need help with this O_o
I just got PokeScript, and I've installed it correctly (I think), but when I right-click 'Compile Script' on any of my scripts, it just opens the 'Log' screen, and not the BufRite window. Anyone know why it might be doing this?

I don't know whether the fact that I'm using Vista has anything to do with it, but it's driving me insane D:
 
Last edited:
org $begin
applymovement 0x2 $going
pausemove 0
applymovement 0xFF $look
message $test
boxset 6
$test 1 =Technolgy is incredible!
release
end

org $going
#raw 0x03
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org $going
$going 1 ; #binary 0x03 0x13 0x13 0x13 0x13 0xFE

#org $look
#raw 0x02
#raw 0xFE
#org $look

$look 1 ; #binary 0x02 0xFE
when i step the the green tile it freezes
 
Last edited:
You may need #org instead of org and you need a pausemove 0 after the 2nd applymovement.
Also make sure the unknown is 0300 and the var number is 5240.
 
thanks it works now

im having trouble with this script
#org $begin
lock
faceplayer
checkflag 0x828
if b_true goto $alreadygotone
message $wantpoke
$wantpoke 1 =Hey,\nwould you take this pokemon?
boxset 5
compare LASTRESULT 1
if 1 goto $getriolu
message $toobad
$toobad 1 =Oh, dammit
boxset 6
release
end

#org $getriolu
lock
message $getone
$getone 1 =Oh dammit!\nsomeone's coming!
boxset 6
givepokemon 0xE7 0x5 0x0
fanfare 0x13E
waitfanfare
setflag 0x828
message $received
$received 1 =\v\h01 received RIOLU!
boxset 6
applymovement 0x1 $going
pausemove 0
checkflag 0x200
if 0x1 goto $next
setweather 0x3
#raw 0x00
doweather
setflag 0x200
applymovement 0x2 $coming
pausemove 0
applymovement 0xFF $mum
pausemove 0
message $home
$home 1 =honey! It's time\nto go home.\nYou will catch a cold\nfrom standing in the rain.
boxset 6
warp 0x4 0x1 0xFF
#raw 0x02 0x00 0x06 0x00
end

#org $next
setweather 0x2
#raw 0xA3
doweather
clearflag 0x200
release
end

#org $going
#raw 0x62
#raw 0x08
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x60
#raw 0xFE

#org $going
$going 1 ; #binary 0x62 0x08 0x1F 0x1F 0x1F 0X1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F
0x1F 0x1F 0x1F 0x1F 0x1F 0x60 0xFE

#org $coming
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org $coming
$coming 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x10 0x10 0x10 0x10 0xFE

#org $mum
$mum ; #binary 0x01 0xFE
it works but not all the text show up when the mum is speaking
 
Status
Not open for further replies.
Back
Top