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

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.

LaccyO

Sspriterr
9
Posts
15
Years
  • Seen Jul 26, 2010
Script problem!

when i walked over the green s, the game freezed...
and is there a flag for the national dex or do you just need to use flag 829?
game: fire red
editor: xse
script: trigger

Spoiler:
 

GKS

Retired Hacker
1,320
Posts
16
Years
  • Seen Dec 23, 2013
when i walked over the green s, the game freezed...
and is there a flag for the national dex or do you just need to use flag 829?
game: fire red
editor: xse
script: trigger

Spoiler:

The green s could be fixed by doing this in Advance Map for the green s:
Change the Unknown number to 300
Change the Var Number to 4050.

Special 0x16F activates the national dex in Fr/Lg.

Please rep for the help.
 
Last edited:
5,256
Posts
16
Years
Spoiler:

Amended in bold. I think I did everything.
 

Doom Chaos

I don't have a title
44
Posts
15
Years
This thread is more appropriate for my request I posted in another thread. My problem is that I can't insert an item in a map.
My script is:
#dynamic 0x800000
#org @start
giveitem 0xD 0x1 MSG_FIND
end

I take the code and replace the one in Adv-Map. I run VBA and look for the item I placed. The
result I get is that I can take it, it disappears for a moment (like it should). But when I move ONE STEP
from the item, the sprite appears again and this way, the player gets as many potions (0xD) as he/she
wants! I want it to act like a normal item, you know, to be only taken once and to disappear for the rest
of the game. What is wrong with that? (I use FIRE RED)
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
This thread is more appropriate for my request I posted in another thread. My problem is that I can't insert an item in a map.
My script is:
#dynamic 0x800000
#org @start
giveitem 0xD 0x1 MSG_FIND
end

I take the code and replace the one in Adv-Map. I run VBA and look for the item I placed. The
result I get is that I can take it, it disappears for a moment (like it should). But when I move ONE STEP
from the item, the sprite appears again and this way, the player gets as many potions (0xD) as he/she
wants! I want it to act like a normal item, you know, to be only taken once and to disappear for the rest
of the game. What is wrong with that? (I use FIRE RED)

Set an unused flag as an ID.
 

Doom Chaos

I don't have a title
44
Posts
15
Years
Set an unused flag as an ID.

Unused flag? *n00b*
I'm sorry I lack hacking knowledge...

EDIT: I found how, I looked on another map with an item, I copied it's Person ID and everything worked fine. Thanks ^^
 
Last edited:

theswordbuggy

Rom Hacker
21
Posts
14
Years
i need some help with a script. i need one thats like the one at the elite four the one of the two people in front of the door to get to the first elite. this is for pokemon emerald. i hope i can get some help.

Thank You
Sword Master
 

Exon

Hacker in Training
64
Posts
14
Years
  • Age 34
  • Seen Oct 18, 2010
SOLVED

Game: Pokemon Ruby

Type: Person Event
Editor: XSE
Script: A script I was working on for randomly giving one of the *10* baby pokemons' egg. Can't figure out why the flag isn't being set.

EDIT - Thanks liuyanghejerry, I completely spaced that I had set my setflag commands wrong, hadn't even looked at that! (don't think I should try to fix a script when it's 3 a.m. anymore lol)
 
Last edited:
219
Posts
16
Years
Game: Pokemon Ruby
Type: Person Event
Editor: XSE
Script: A script I was working on for randomly giving one of the *10* baby pokemons' egg. Can't figure out why the flag isn't being set.
Spoiler:


(No screenshots available)


-I haven't added the fanfare yet, was going to do that last. Just wanted to test the main bulk of the script and then I found this problem.

Because flag 0x1050 isn't flag 1050.Noticing that dec or hex.
 

onyx79

Red Dead Revolver
488
Posts
15
Years
I've got a script problem,I'm trying to use the use yes\no script with the warp script here's the script:

'---------------
#org 0xC3683
#dynamic 0xC3683
msgbox @1 0x4
yesnobox 0x0 0x0
closeonkeypress
compare 0x800D 0x1
if 0x1 goto @yes
warp 0x1 0x5 0xFF 0x02 0x06
end
#org @1
= would you like to go the ORANGE\nISLANDS now?

I don't really know how to combine them -_____- when I click compile it says type mismatch on line 8 missing dynamic label can you help me please?
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
I've got a script problem,I'm trying to use the use yes\no script with the warp script here's the script:

'---------------
#org 0xC3683
#dynamic 0xC3683
msgbox @1 0x4
yesnobox 0x0 0x0
closeonkeypress
compare 0x800D 0x1
if 0x1 goto @yes
warp 0x1 0x5 0xFF 0x02 0x06
end
#org @1
= would you like to go the ORANGE\nISLANDS now?

I don't really know how to combine them -_____- when I click compile it says type mismatch on line 8 missing dynamic label can you help me please?

There's no script at @yes
 
9
Posts
14
Years
  • Seen Sep 13, 2009
How do you make a lagendary pokemon battle become shiny???? you know like red gyrdos in shiny gold?
 

onyx79

Red Dead Revolver
488
Posts
15
Years
There's no script at @yes
and that's all?also How can I fix this script?
'---------------
#org 0xC38EA
checkflag 0x828
if 0x1 goto 0x88001AC
msgbox 0x8800219 MSG_YESNO '"Hello [player],I took care of your..."
compare LASTRESULT 0x1
if 0x1 goto 0x8800000
msgbox 0x880027C MSG_NORMAL '"OK,maybe later."
release
end
'---------------
#org 0x8001AC
'---------------
#org 0x800000
givepokemon 0x19 0x5 0x0 0x0 0x0 0x0
givepokemon 0x6 0x5 0x0 0x0 0x0 0x0
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
loadpointer 0x0 0x88002AF '"[player] recieved 3 POKEMON's!"
call 0x81A74EB
return
'---------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return

'---------
' Strings
'---------
#org 0x800219
= Hello [player],I took care of your\nPOKEMON's,do you want to\ptake them now?
#org 0x80027C
= OK,maybe later.
#org 0x8002AF
= [player] recieved 3 POKEMON's!

I don't want the nickname option,because it destoyes the game,and how to change the pokemon levels?I put 35 but it doesn't gave me this level...
 

GKS

Retired Hacker
1,320
Posts
16
Years
  • Seen Dec 23, 2013
and that's all?also How can I fix this script?
'---------------
#org 0xC38EA
checkflag 0x828
if 0x1 goto 0x88001AC
msgbox 0x8800219 MSG_YESNO '"Hello [player],I took care of your..."
compare LASTRESULT 0x1
if 0x1 goto 0x8800000
msgbox 0x880027C MSG_NORMAL '"OK,maybe later."
release
end
'---------------
#org 0x8001AC
'---------------
#org 0x800000
givepokemon 0x19 0x5 0x0 0x0 0x0 0x0
givepokemon 0x6 0x5 0x0 0x0 0x0 0x0
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
loadpointer 0x0 0x88002AF '"[player] recieved 3 POKEMON's!"
call 0x81A74EB
return
'---------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return

'---------
' Strings
'---------
#org 0x800219
= Hello [player],I took care of your\nPOKEMON's,do you want to\ptake them now?
#org 0x80027C
= OK,maybe later.
#org 0x8002AF
= [player] recieved 3 POKEMON's!

I don't want the nickname option,because it destoyes the game,and how to change the pokemon levels?I put 35 but it doesn't gave me this level...

Are you using XSE? If you are, could you decompile it then show us the script?

For the level, try this, put 0x__ what ever level it is in hex after the Pokemon number.
 
Last edited:

onyx79

Red Dead Revolver
488
Posts
15
Years
here:
'---------------
#org 0xC38EA
checkflag 0x828
if 0x1 goto 0x88001AC
msgbox 0x8800219 MSG_YESNO '"Hello [player],I took care of your..."
compare LASTRESULT 0x1
if 0x1 goto 0x8800000
msgbox 0x880027C MSG_NORMAL '"OK,maybe later."
release
end
'---------------
#org 0x8001AC
'---------------
#org 0x800000
givepokemon 0x19 0x5 0x0 0x0 0x0 0x0
givepokemon 0x6 0x5 0x0 0x0 0x0 0x0
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
loadpointer 0x0 0x88002AF '"[player] recieved 3 POKEMON's!"
call 0x81A74EB
return
'---------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return

'---------
' Strings
'---------
#org 0x800219
= Hello [player],I took care of your\nPOKEMON's,do you want to\ptake them now?
#org 0x80027C
= OK,maybe later.
#org 0x8002AF
= [player] recieved 3 POKEMON's!
 

GKS

Retired Hacker
1,320
Posts
16
Years
  • Seen Dec 23, 2013
here:
'---------------
#org 0xC38EA
checkflag 0x828
if 0x1 goto 0x88001AC
msgbox 0x8800219 MSG_YESNO '"Hello [player],I took care of your..."
compare LASTRESULT 0x1
if 0x1 goto 0x8800000
msgbox 0x880027C MSG_NORMAL '"OK,maybe later."
release
end
'---------------
#org 0x8001AC
'---------------
#org 0x800000
givepokemon 0x19 0x5 0x0 0x0 0x0 0x0
givepokemon 0x6 0x5 0x0 0x0 0x0 0x0
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
loadpointer 0x0 0x88002AF '"[player] recieved 3 POKEMON's!"
call 0x81A74EB
return
'---------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return

'---------
' Strings
'---------
#org 0x800219
= Hello [player],I took care of your\nPOKEMON's,do you want to\ptake them now?
#org 0x80027C
= OK,maybe later.
#org 0x8002AF
= [player] recieved 3 POKEMON's!

Is this how you wrote the script? I was asking for the original version before compiling it.
 

onyx79

Red Dead Revolver
488
Posts
15
Years
this is the original:
#dynamic 0x800000

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @take
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end

#org @name
call 0x1A74EB
return

#org @done
msgbox @6 0x6
release
end

#org @1
= Hello.\nSorry to trouble you.\nI can't take care\nof my Charmander.\pCan you take care of\nit for me?

#org @2
= That's okay.\pI'm sure someone else will\ntake it.

#org @3
= [black_fr]You received a Charmander!

#org @4
= [black_fr]Would you like to give a\nnickname to Charmander?

#org @5
= Please take care of\nCharmander.

#org @6
= Are you taking good care\nof Charmander?

I took it from diego's tut
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
this is the original:
#dynamic 0x800000

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @take
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @5 0x6
release
end

#org @done
msgbox @6 0x6
release
end

#org @1
= Hello.\nSorry to trouble you.\nI can't take care\nof my Charmander.\pCan you take care of\nit for me?

#org @2
= That's okay.\pI'm sure someone else will\ntake it.

#org @3
= [black_fr]You received a Charmander!

#org @4
= [black_fr]Would you like to give a\nnickname to Charmander?

#org @5
= Please take care of\nCharmander.

#org @6
= Are you taking good care\nof Charmander?

I took it from diego's tut

Well then why didn't you make your own?
Tutorials aren't threads where you can just copy/paste examples.
Fixes in script.
 

onyx79

Red Dead Revolver
488
Posts
15
Years
ohhh I didn't knew that -________- do you think that a noob like me can write his scripts alone?, I can't even change sprites in UNLZ -____-
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
How do you make a lagendary pokemon battle become shiny???? you know like red gyrdos in shiny gold?

Either wait for HackMew to release his Shiny Hack tool or use Mastermind_X's ASM routine.

ohhh I didn't knew that -________- do you think that a noob like me can write his scripts alone?, I can't even change sprites in UNLZ -____-

Well keep trying.
Do you think HackMew instantly figured out how to programme?
Do you think Mastermind_X instantly figured out ASM?
Do you think I learnt to script instantly.

WE ALL PRACTISED AND THAT'S WHY WE CAN DO IT.
If a 14 year old, normal person with no programming experience can do it, so can you.
PRACTISE!
 
  • Like
Reactions: GKS
Status
Not open for further replies.
Back
Top