The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   [Archive] Script help thread (https://www.pokecommunity.com/showthread.php?t=120081)

Veng3anc3 March 19th, 2008 9:50 PM

Shi- Poop. Lol, I fixed it earler and forgot to edit out T_T
I'm getting the hang of scripts now (after 1 1/2 days AYAYAYA) I can actually see whats wrong with them now. Thanks for the help guys.

adamb241 March 20th, 2008 7:30 AM

I have a problem, I used theses two scripts in one town and when I went into the game one sprite disappeared and the other one took the sprite that vanished scripts.....

Here they are

Code:

#ORG $begin
lock
faceplayer
checkflag 0x200
if B_true goto $done
message $aidtalk
boxset 6
giveitem 0x131 1
setflag 0x200
release
end

#org $done
message $aidtalk2
boxset 6
release
end

#org $aidtalk
$aidtalk 1 = I'm in a very good mood so you\lcan have this!

#org $aidtalk2
$aidtalk2 1 = Hope you have a great day!


Code:

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

#org $1
$1 1 =Hello.\nProffesor Oak is giving away free\lpokemon to new trainers!\lI suggest you go overto his lab\land take a look!


Anyone know how to fix this error?

Tyrantrum March 20th, 2008 7:50 AM

Well, i'm still learning to script, but you forgot to put a space between over & to.

Veng3anc3 March 20th, 2008 10:50 AM

Nothing wrong with the script this time, Well.. It works fine..
But!
What the script does:
Gives Deoxy's
Makes you battle rayquaza

The script works fine, Except the Deoxy's dosn't obey (It's only level 5! o_O?)
So um, If theres anything I missed.. Here's the script.
Spoiler:
#org $start
checkflag 0x828
if b_true goto $done
message $1
boxset 5
compare LASTRESULT 0x1
if b_true goto $take
message $2
boxset 6
release
end

#org $take
givepokemon 410 5 0
fanfare 0x13E
message $3
boxset 4
waitfanfare
#raw 0x68
message $4
boxset 5
compare LASTRESULT 0x1
if b_true gosub $name
message $5
boxset 6
message $6
boxset 6
cry 0xA1 6
nop
nop
wildbattle 406 3 0
fadescreen 0
#raw 0x53 0x0F 0x80
setflag 0x828
release
end

#ORG

#org $name
call 0x1A74EB
return

#org $1
$1 1 =\v\h01: Huh, Whats this?\nTake it?

#org $2
$2 1 =That's okay. I'm sure someone\nelse will take

it.

#org $3
$3 1 =\c\h01\h02You received a Baby Deoxy's!

#org $4
$4 1 =\c\h01\h02Would you like to rename Baby

Deoxy's?

#org $5
$5 1 =\v\h01Hmm..

#org $6
$6 1 =\v\h01: What the!

#org $done
release
end


I know the cry's are wrong >_>
If any one can fix those for meh.. Then thanks.

greenozano March 20th, 2008 4:00 PM

umm... what's a script for the day and night I'm making the day and night system using Weather Change. but I was unsuccessful 5 times can someone please give me a script that can pas back and fourth from Light to darkness at random.

can some see if this script is a valid one for the day and night system on emerald this is what I came up with.

#org 0x03467C9
removeflag 0x1354C68
checkflag 0x1354C67
if FALSE 0x1354C69
setweather 0x0B
doweather
setflag 0x1354C67
release
end

#org 0x1354C69
removeflag 0x1354C67
checkflag 0x1354C68
if FALSE 0x03467C9
setweather 0x00
doweather
setflag 0x1354C68
release
end

if it is not working tell me what I did wrong and I'll try to fix it

To all scripters come to this site,
mugenschool.ucoz.com/index/0-31 You need to register and The program is not mine.

Tyrantrum March 20th, 2008 5:37 PM

Can someone help me with this script?
Spoiler:
#org $begin
checkflag 0x200
if 0x1 goto $done
applymovement 0x1 $momwalk
$momwalk 1 ; #binary 0x62 0x0D
pause 0x0C
message $momtalk
$momtalk 1 =\c\h01\h04\v\h01, you're up!\pSince we don't have a\nPOKEMON LAB here, I have\lthree POKEMON on the table.\pGo on, choose one.
boxset 0x6
release
end

#org $done
release
end

It's forFireRed

Megiddo-san March 20th, 2008 5:41 PM

Make the applymovement 0x01 instead of 0x1 and change the boxset 0x6 to boxset 6.

greenozano March 20th, 2008 5:54 PM

still can someone test my script.

Megiddo-san March 20th, 2008 6:03 PM

I get a bunch of weird symbols with your script. I don't how to fix it for I'm not familiar with that kind of scripting. I'm used to poketscript.

greenozano March 20th, 2008 6:10 PM

ok I will try to check it

Did you visit the site I put on my fourm

Veng3anc3 March 21st, 2008 12:17 AM

Ok.. I've writen a script, So when you step on it, It sends you one step up and then warps you to a certain tile on a map (co-ordinates (X:4-Y:28))
I step on the tile.. It sends me a step up, But it warps me jut to a random black spot >_< Heres the script.
Spoiler:
#ORG $begin
checkflag 0x210
if B_true goto $done
applymovement 0xFF $dudewalk
pausemove 0
setflag 0x210
warp 0x04 0x03 0xFF
#raw 0x02 0x00 0x28 0x00
release
end

#ORG $done
release
end

#ORG $dudewalk
$dudewalk 1 ; #binary 0x11 0xFE

Help please

Geeked March 21st, 2008 7:47 AM

This is supposed to be the beginning script, for cyndaquil, but when you select yes it says you put the pokeball back? and when you say no it says the same thing, also can you replace "0x0" with the correct value that will show cyndaquils image? Thank You.


Code:

#org $start
checkflag 0x828
if b_true goto $done
#raw 0x75 0x0 0x00 0x0A 0x03
message $1
boxset 5
compare LASTRESULT 1
if 1 goto $take
message $2
boxset 6
#raw 0x76
release
end

#org $take
givepokemon 155 5 0
fanfare 0x13E
message $3
boxset 4
#raw 0x76
waitfanfare
#raw 0x68
setflag 0x828
message $4
boxset 5
compare LASTRESULT 0x1
if b_true gosub $name
message $5
boxset 6
applymovement 0x03 $dissapear
release
end

#org $back
message $nope
boxset 6
release
end

#org $dissapear
$dissapear 1 ; #binary 0x60 0x1E 0x1E 0x1E 0x1E 0x1E

0x1E 0x1E 0x1E 0xFE

#org $name
call 0x1A74EB
return

#org $1
$1 1 =Cyndaquil, The fire type!\pDo you want to take

it?

#org $2
$2 1 =You put the pokeball back.

#org $3
$3 1 =\c\h01\h02You received a Charmander!

#org $4
$4 1 =\c\h01\h02Would you like to nickname

Charmander?

#org $5
$5 1 =Take Care of Cyndaquil!

#org $nope
$nope 1 =You put the pokeball back.


Can someone help me?

ryan123456789019 March 21st, 2008 8:09 AM

Scripts
 
Hello can someone make me 2 scripts for ruby where you talk to a wall and it says To open the passage you must find a person and talk to him. While the person says hey do you want to know your past? Go to the 7 up walk cave. This is a sercet message.

So i am asking for 2 scripts one which goes on a cave wall which opens up after you talk to that person and a script of that person talking.

CrazyLuigi March 21st, 2008 9:43 AM

This is a script for HackMew's new XSE, but I can't get it to work right. I'm not sure where the problem is. While compiling I received this error:
http://i163.photobucket.com/albums/t299/CrazyLuigi_bucket/Uhhhhh.png

Also as a side question, in XSE you place the Dynamic offset in the map, correct?

Spoiler:
#Dynamic 0x800DC1
#org @Main
lock
faceplayer
checkflag 0x232
if B_true goto @gotit
message @q
boxset 6
givepokemon 246 5 0
setflag 0x232
release
end

#org @gotit
message @hi
boxset 6
release
end

#org @hi
= This is where I kept\nLARVITAR's old Pokeball

#org @q
= I better take LARVITAR\nwith me today

Derlo March 21st, 2008 1:45 PM

Quote:

Originally Posted by shinypkmnfan13 (Post 3417056)
Can someone help me with this script?
Spoiler:
#org $begin
checkflag 0x200
if 0x1 goto $done
applymovement 0x1 $momwalk
$momwalk 1 ; #binary 0x62 0x0D
pause 0x0C
message $momtalk
$momtalk 1 =\c\h01\h04\v\h01, you're up!\pSince we don't have a\nPOKEMON LAB here, I have\lthree POKEMON on the table.\pGo on, choose one.
boxset 0x6
release
end

#org $done
release
end

It's forFireRed

Try this:

#org $begin
checkflag 0x200
if 1 goto $done
applymovement 1 $momwalk
$momwalk 1 ; #Binary 0x62 0x0D 0xFE
pause 0x30
message $momtalk
$momtalk 1 = \c\h01\h04\v\h01, you're up!\pSince we don't have a\nPOKEMON LAB here, I have\lthree POKEMON on the table.\pGo on, choose one.
boxset 6
release
end

#org $done
release
end

Hellsing March 21st, 2008 1:51 PM

Alright, well, I made a script and compiled-assigned-put in amap. I assigned it to a person in Oaks lab.(map bank 4, map 3) but everytime I try to enter Oaks lab, my screen just turns black.

Here's the script, but I'm not sure that has to do with anything.
Code:

#ORG $professer
checkflag 0x829
if b_true goto $oak
lock
faceplayer
message $prof
boxset 6
setflag 0x829
release
end

#org $oak
lock
faceplayer
message $profoak
boxset 6
release
end

#org $prof
$prof 1 =OAK: \v\h01! Good morning! \nI see you have a Pokemon. \pI guess that speeds things up.\nHere's your Pokedex.\p\v\h01 recieved Pokedex! \p\v\h06 is already in Barrancoville. \nYou should go catch up to him.

#org $profoak
$profoak 1 =Don't be careless, \v\h01. \nYou have a carefree air \nthat usually gets you in trouble.



Derlo March 21st, 2008 1:56 PM

Quote:

Originally Posted by DarkCharizard257 (Post 3417880)
Ok.. I've writen a script, So when you step on it, It sends you one step up and then warps you to a certain tile on a map (co-ordinates (X:4-Y:28))
I step on the tile.. It sends me a step up, But it warps me jut to a random black spot >_< Heres the script.
Spoiler:
#ORG $begin
checkflag 0x210
if B_true goto $done
applymovement 0xFF $dudewalk
pausemove 0
setflag 0x210
warp 0x04 0x03 0xFF
#raw 0x02 0x00 0x28 0x00
release
end

#ORG $done
release
end

#ORG $dudewalk
$dudewalk 1 ; #binary 0x11 0xFE

Help please


try this:

#org $begin
checkflag 0x210
if 1 goto $done
applymovement 0xFF $dudewalk
pausemove 0
setflag 0x210
#raw 0x39 0x04 0x03 0xFF 0x02 0x28
release
end

#org $done
release
end

#org $dudewalk
$dudewalk 1 ; #binary 0x11 0xFE

Quote:

Originally Posted by Rabid_Lime (Post 3419306)
Alright, well, I made a script and compiled-assigned-put in amap. I assigned it to a person in Oaks lab.(map bank 4, map 3) but everytime I try to enter Oaks lab, my screen just turns black.

Here's the script, but I'm not sure that has to do with anything.
Code:

#ORG $professer
checkflag 0x829
if b_true goto $oak
lock
faceplayer
message $prof
boxset 6
setflag 0x829
release
end

#org $oak
lock
faceplayer
message $profoak
boxset 6
release
end

#org $prof
$prof 1 =OAK: \v\h01! Good morning! \nI see you have a Pokemon. \pI guess that speeds things up.\nHere's your Pokedex.\p\v\h01 recieved Pokedex! \p\v\h06 is already in Barrancoville. \nYou should go catch up to him.

#org $profoak
$profoak 1 =Don't be careless, \v\h01. \nYou have a carefree air \nthat usually gets you in trouble.



try this:

#org $professor
checkflag 0x829
if 1 goto $oak
faceplayer
message $prof
boxset 6
setflag 0x829
release
end

#org $oak
faceplayer
message $profoak
boxset 6
release
end

#org $prof
$prof 1 =OAK: \v\h01! Good morning! \nI see you have a Pokemon. \pI guess that speeds things up.\nHere's your Pokedex.\p\v\h01 recieved Pokedex! \p\v\h06 is already in Barrancoville. \nYou should go catch up to him.

#org $profoak
$profoak 1 =Don't be careless, \v\h01. \nYou have a carefree air \nthat usually gets you in trouble.

Geeked March 21st, 2008 6:24 PM

Quote:

Originally Posted by xray (Post 3418494)
This is supposed to be the beginning script, for cyndaquil, but when you select yes it says you put the pokeball back? and when you say no it says the same thing, also can you replace "0x0" with the correct value that will show cyndaquils image? Thank You.


Code:

#org $start
checkflag 0x828
if b_true goto $done
#raw 0x75 0x0 0x00 0x0A 0x03
message $1
boxset 5
compare LASTRESULT 1
if 1 goto $take
message $2
boxset 6
#raw 0x76
release
end

#org $take
givepokemon 155 5 0
fanfare 0x13E
message $3
boxset 4
#raw 0x76
waitfanfare
#raw 0x68
setflag 0x828
message $4
boxset 5
compare LASTRESULT 0x1
if b_true gosub $name
message $5
boxset 6
applymovement 0x03 $dissapear
release
end

#org $back
message $nope
boxset 6
release
end

#org $dissapear
$dissapear 1 ; #binary 0x60 0x1E 0x1E 0x1E 0x1E 0x1E

0x1E 0x1E 0x1E 0xFE

#org $name
call 0x1A74EB
return

#org $1
$1 1 =Cyndaquil, The fire type!\pDo you want to take

it?

#org $2
$2 1 =You put the pokeball back.

#org $3
$3 1 =\c\h01\h02You received a Charmander!

#org $4
$4 1 =\c\h01\h02Would you like to nickname

Charmander?

#org $5
$5 1 =Take Care of Cyndaquil!

#org $nope
$nope 1 =You put the pokeball back.


Can someone help me?

Will some one please help me? this is one of the most important scripts in my hack?

greenozano March 21st, 2008 6:48 PM

Will someone join a hacking group with me I'm planning on making a hack but It will take me too much time alone It will be called Pokemon Lunar Eclipse/ Solar Eclipse Two different versions. I need:

Graphics changer (create trainers, changing tilesets, changing maps)
Playwright like scripts for movies
overworld spriter
world map creator (Create and insert more than one map)

No scripter I'm already good enough If u want to join go to this site Mugenschool.ucoz.com and meet me at the chat room on 3/30/08 / 4:00 Eastern

Geeked March 21st, 2008 7:26 PM

This is the script help thread, greenozano, please post in the Hack Team Discussions forum.

Hellsing March 22nd, 2008 6:03 AM

Quote:

Originally Posted by Derlo (Post 3419321)
try this:

#org $begin
checkflag 0x210
if 1 goto $done
applymovement 0xFF $dudewalk
pausemove 0
setflag 0x210
#raw 0x39 0x04 0x03 0xFF 0x02 0x28
release
end

#org $done
release
end

#org $dudewalk
$dudewalk 1 ; #binary 0x11 0xFE



try this:

#org $professor
checkflag 0x829
if 1 goto $oak
faceplayer
message $prof
boxset 6
setflag 0x829
release
end

#org $oak
faceplayer
message $profoak
boxset 6
release
end

#org $prof
$prof 1 =OAK: \v\h01! Good morning! \nI see you have a Pokemon. \pI guess that speeds things up.\nHere's your Pokedex.\p\v\h01 recieved Pokedex! \p\v\h06 is already in Barrancoville. \nYou should go catch up to him.

#org $profoak
$profoak 1 =Don't be careless, \v\h01. \nYou have a carefree air \nthat usually gets you in trouble.


Thanks, but I got it to work. I was just being dumb.

ryan123456789019 March 22nd, 2008 8:51 AM

Help
 
Hello can someone make me 2 scripts for ruby where you talk to a wall and it says To open the passage you must find a person and talk to him. While the person says hey do you want to know your past? Go to the 7 up walk cave. This is a sercet message whcih the man will say

So i am asking for 2 scripts one which goes on a cave wall which opens up after you talk to that person and a script of that person talking.
Thank you if you do help.

Veng3anc3 March 22nd, 2008 9:55 AM

This is a script help thread.. Not a script request thread >_>

Kenneth Alog March 22nd, 2008 3:41 PM

anyone make a wildbattle script of KYOGRE i'm using ruby
please I tried to make one but it became big errors and crashed my ROM please anyone?
and how to insert it?

Neti March 22nd, 2008 4:34 PM

hi i was trying to find a working script for a battle like a legendary pokemon that vanishes after the fight cause mine doesnt work. and since this forum has no search function (or i cant see it) and i couldnt find a working one im asking here now.
my script atm is
---------
#org $StartWild
lock
faceplayer
cry 151
message $charCry
$charcry 1 = Mew!
boxset 6
checkflag 0x2E
if 0x1 goto $WildBatt
release
end

#org $Wildbatt
lock
wildbattle 151 20 2
release
setflag 0x501
fadescreen 0
end
---------
help me pls

edit: my rom is Firered (E), the checked flag 0x2E is the first badge. fight does work, but there is no message displayed before the fight and the pokemon does not vanish. id is the same as in the script or does it matter whether i enter 0501 or 501 as id in advancemap?


All times are GMT -8. The time now is 2:35 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.