The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.


Advertise here

Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #801    
Old August 9th, 2012, 10:19 PM
UberUmbreon's Avatar
UberUmbreon
Beginning Trainer
 
Join Date: Aug 2012
Gender: Male

Advertise here
I'm sorry but it tried your give pokemon script a shot, it went horribly wrong.

I even fixed some part of the script though so no worry's, some parts are misleading.


Here's the script i have so far:

Code:
#dynamic 0x34EEC1

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

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

#org @name
call 0x1A74EB
return

#org @done
msgbox @2 0x6
release
end

#org @1
= Oh you don't have a strong\npokemon to take on the trainers?

#org @2
= Nevermind then.

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

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

#org @5
= Have fun!

#org @6
= Did you beat them yet?

I just need some help with clearing the flag, whenever i talk to the person i got the Charizard from, i can get more of them, in other words it keeps repeating the script.

Any advice on how to stop the script after i got the Charizard?

Last edited by UberUmbreon; August 9th, 2012 at 10:26 PM.
Reply With Quote
  #802    
Old August 9th, 2012, 10:37 PM
Satoshi Ookami's Avatar
Satoshi Ookami
Memento Mori
Community Supporter
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 22
Gender: Male
Nature: Calm
Quote:
Originally Posted by UberUmbreon View Post
Any advice on how to stop the script after i got the Charizard?
The problem is with checkflag command because it checks the flag but the result isn't used.

Code:
#org @start
checkflag 0x900
if 0x1 goto @ending org 
msgbox @1 0x5
compare LASTRESULT 0x1 //You are testing whether the player chose yes
if 0x1 goto @take
if 0x0 goto @done
msgbox @2 0x6
release
end

#org @ending org
//You need to add that ending org. It could be something like message box with "I've already given you a Charizard, don't be greedy."...
Oh yeah, and that offset you use with #dynamic looks... weird...
Oh and one thing... newest XSE does not work with LASTRESULT, you may need to change it to 0x800D.
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
Reply With Quote
  #803    
Old August 13th, 2012, 04:25 PM
Spacewarrior
Beginning Trainer
 
Join Date: Aug 2012
Gender: Male
Hello, I would like to add this character * in a text message but I don't know how and this is not working if I only put *

Can you help me with this problem?

Last edited by Spacewarrior; August 13th, 2012 at 04:37 PM. Reason: forgot to put the character
Reply With Quote
  #804    
Old August 18th, 2012, 12:41 AM
Gerokunz
7
 
Join Date: May 2012
Location: =/
Age: 15
Amazing! Diego!
I can script the movement now!
Good luck!
__________________
=/
Reply With Quote
  #805    
Old September 3rd, 2012, 02:41 AM
Golden Kirby
New hacker
 
Join Date: Sep 2012
Location: Britainland
Age: 18
Send a message via Skype™ to Golden Kirby
This was the tutorial i used when i first rom-hacked

Now i have forgotten it all so i have to start again
Reply With Quote
  #806    
Old September 10th, 2012, 10:32 PM
Flame999's Avatar
Flame999
 
Join Date: Nov 2008
Location: Lavaridge Town
Gender: Male
Nature: Calm
how do you add a Pokemart Script since i did my edit but don't know how to add it?
__________________
Pokemon Fire Red Hack
-3rd Gen game
- more rival
- New Tiles
- New Trainer sprites
- New Map for Hoenn (replace Sevii islands)
Finished making the Hoenn & Kanto Gym leaders
Finished making the Hoenn & Kanto Elite four and Champions

Reply With Quote
  #807    
Old October 2nd, 2012, 03:17 PM
dreamengine's Avatar
dreamengine
 
Join Date: Aug 2012
Gender: Male
Thanks for the tutorial. Didn't have a chance a chance to script anything yet, but there's a few things I don't get. For example setting flags. I get how to checkflag, but not sure how you set it. Like say I want my rival to come talk to me when I walk on a tile. How do I set a flag so that I can clear it later. If that's not what it's for I apologize, but still need help D:
Reply With Quote
  #808    
Old November 3rd, 2012, 12:47 PM
Critx's Avatar
Critx
Is making Wi-Fi on Rom hacks
 
Join Date: Sep 2012
Location: Hiding FairyLand
Age: 26
Gender: Male
I have done some, so far but, How can I apply them so that a person can give the pokemon out?
__________________
SIgn Up and I'll give free Pokemon :D
Hacks I Support:



~Thanks for Reading Critx~
Reply With Quote
  #809    
Old November 13th, 2012, 06:30 PM
bluedeedrocks's Avatar
bluedeedrocks
Professional Coolguy
 
Join Date: Jun 2009
Location: Pennsylvania, United States
Gender: Male
Nature: Relaxed
My scripts that I put right outside of doors don't run when I exit the rooms. Is there a reason for this? do they need to be inserted a certain way so that they'll run as soon as I enter the map?
__________________
A little linearity never hurt anyone. I feel like I need a little something keeping me in line!



Reply With Quote
  #810    
Old November 23rd, 2012, 06:48 PM
AllyJacqui's Avatar
AllyJacqui
The one and only -
 
Join Date: Nov 2012
Location: 'Straya (Australia)
Age: 16
Gender: Female
Nature: Timid
Wow! :D Considering the fact I first started learning with Pokescript (Back in '09 with Follump, then I used thethethethe's tutorial on a regular basis) This was super helpful. I think i'm finaly ready to make the switch from Pokescript, to XSE. Definitely going to use this tutorial when needed.
__________________
Reply With Quote
  #811    
Old November 26th, 2012, 11:31 AM
xWhyNotx's Avatar
xWhyNotx
Scripting Master
 
Join Date: Jun 2012
Location: Kuna Region
Gender: Male
Nature: Jolly
Send a message via Windows Live Messenger to xWhyNotx
Yes Diego, you are awesome. I wrote this all down and it basically filled my 70 page notebook. That's a good thing. You went over each command so I could understand. I know everything now thanks to you!well, except vars, but I don't think anyone really "understands" them xD
__________________
This signature has been disabled.
If a scroll bar appears that means it\'s too tall!
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
Reply With Quote
  #812    
Old November 26th, 2012, 12:22 PM
bluedeedrocks's Avatar
bluedeedrocks
Professional Coolguy
 
Join Date: Jun 2009
Location: Pennsylvania, United States
Gender: Male
Nature: Relaxed
How can I create a levelscript that will run every time you enter a room until a certain flag is set? Also, is there a way to make a script that will continue running after a trainer battle, or a new script that will run right after the trainer battle?
__________________
A little linearity never hurt anyone. I feel like I need a little something keeping me in line!



Reply With Quote
  #813    
Old January 2nd, 2013, 03:12 PM
LudicoloDude's Avatar
LudicoloDude
 
Join Date: Mar 2012
Location: Hoenn
Age: 16
Gender: Male
Nature: Jolly
I know this may not be the appropiate place to post this, but I couldnt find any other place so I came here. it is somewhat related. I made a trainer battle script using PET and when I went to load the ROM, I got a white screen. Assuming that the ROM that i'm hacking is corrupt, does anyone else get this problem, or was there possibly a problem with my script?
Reply With Quote
  #814    
Old January 2nd, 2013, 03:14 PM
tajaros's Avatar
tajaros
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 15
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to tajaros
Quote:
Originally Posted by LudicoloDude View Post
I know this may not be the appropiate place to post this, but I couldnt find any other place so I came here. it is somewhat related. I made a trainer battle script using PET and when I went to load the ROM, I got a white screen. Assuming that the ROM that i'm hacking is corrupt, does anyone else get this problem, or was there possibly a problem with my script?
Try using A-Trainer it's better than PET. And also we cannot correct your script if you're not gonna show it.
__________________
Reply With Quote
  #815    
Old January 3rd, 2013, 04:08 PM
LudicoloDude's Avatar
LudicoloDude
 
Join Date: Mar 2012
Location: Hoenn
Age: 16
Gender: Male
Nature: Jolly
the script is kinda long.

Spoiler:
#dynamic 0x800000

#org @start
setvar 0x5003 0x3
goto 0x803D22
end

#org @script
checkflag 0x1003
if 0x1 goto @done
compare 0x5003 0x0
if 0x1 goto @left
compare 0x5003 0x1
if 0x1 goto @middleleft
compare 0x5003 0x2
if 0x1 goto @middleright
compare 0x5003 0x3
if 0x1 goto @right
end

#org @left
showsprite 0x2
showsprite 0x1
textcolor 0x00
msgbox @yellforhelp 0x4
closeonkeypress
applymovement 0xFF @movesfast1
waitmovement 0x0
msgbox @TeamRocket 0x4
closeonkeypress
applymovement 0x1 @!
pause 0x30
applymovement 0x1 @turnsaround
trainerbattle 0x1 0x019 0x0 @before @after @later
end

#org @middleleft
showsprite 0x2
showsprite 0x1
textcolor 0x00
msgbox @yellforhelp 0x4
closeonkeypress
applymovement 0xFF @movesfast2
waitmovement 0x0
msgbox @TeamRocket 0x4
closeonkeypress
applymovement 0x1 @!
pause 0x30
applymovement 0x1 @turnsaround
trainerbattle 0x1 0x019 0x0 @before @after @later
end

#org @middleright
showsprite 0x2
showsprite 0x1
textcolor 0x00
msgbox @yellforhelp 0x4
closeonkeypress
applymovement 0xFF @movesfast3
waitmovement 0x0
msgbox @TeamRocket 0x4
closeonkeypress
applymovement 0x1 @!
pause 0x30
applymovement 0x1 @turnsaround
trainerbattle 0x1 0x019 0x0 @before @after @later
end

#org @right
showsprite 0x2
showsprite 0x1
textcolor 0x00
msgbox @yellforhelp 0x4
closeonkeypress
applymovement 0xFF @movesfast4
waitmovement 0x0
msgbox @TeamRocket 0x4
closeonkeypress
applymovement 0x1 @!
pause 0x30
applymovement 0x1 @turnsaround
trainerbattle 0x1 0x019 0x0 @before @after @later
end

#org @later
textcolor 0x00
msgbox @chideshero 0x4
closeonkeypress
applymovement 0x1 @TRgoesaway
waitmovement 0x0
hidesprite 0x1
msgbox @thankyou 0x4
closeonkeypress
applymovement 0x2 @Rivalgoesaway
waitmovement 0x0
hidesprite 0x2
release
end

#org @done
release
end

#org @yellforhelp
= SOME ONE HELP ME!
#org @teamrocket
= Ha, one less trainer with out\ntheir Pokemon means one less\ltrainer sho wont get in the way of\lboss's plans!

#org @before
= What kind of person do you think\nyou are, some kind of hero?\pHa, just test me, I'll send you\nhome bawling your eyes out.

#org @after
= WHA-?! HOW!?

#org @chideshero
= How did this happen?!\pI have been training for this\nmission and I failed!\pGRR... you will pay one day for\nwhat you did to the team, but then\lagain, a few trainers don't\lmatter.\pStay out of our way!

#org @thankyou
= Wow, thank you so much for saving\nme, he almost took my Pokemon.\pI recieved it as a gift from and\nold friend of mine, I don't know\lwhat I would do with out it.\pHm, didn't that guy say something\nabout a plan earlier?\pIt probably dosn't matter much.\nOnce again thanks for saving me,\lcome by my house later.\pIt's just north from the\nPokecenter in Morbank town.

#org @movesfast1
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @movesfast2
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @movesfast3
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @movesfast4
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @!
#raw 0x62
#raw 0xFE

#org @turnsaround
#raw 0x3
#raw 0xFE

#org @TRgoesaway
#raw 0x1E
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0xFE

#org @Rivalgoesaway
#raw 0x1E
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0xFE

Last edited by Alinthea; January 3rd, 2013 at 04:20 PM. Reason: Script added into spoiler
Reply With Quote
  #816    
Old January 3rd, 2013, 04:27 PM
tajaros's Avatar
tajaros
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 15
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to tajaros
Quote:
Originally Posted by LudicoloDude View Post
the script is kinda long.

Spoiler:
#dynamic 0x800000

#org @start
setvar 0x5003 0x3
goto 0x803D22
end

#org @script
checkflag 0x1003
if 0x1 goto @done
compare 0x5003 0x0
if 0x1 goto @left
compare 0x5003 0x1
if 0x1 goto @middleleft
compare 0x5003 0x2
if 0x1 goto @middleright
compare 0x5003 0x3
if 0x1 goto @right
end

#org @left
showsprite 0x2
showsprite 0x1
textcolor 0x00
msgbox @yellforhelp 0x4
closeonkeypress
applymovement 0xFF @movesfast1
waitmovement 0x0
msgbox @TeamRocket 0x4
closeonkeypress
applymovement 0x1 @!
pause 0x30
applymovement 0x1 @turnsaround
trainerbattle 0x1 0x019 0x0 @before @after @later
end

#org @middleleft
showsprite 0x2
showsprite 0x1
textcolor 0x00
msgbox @yellforhelp 0x4
closeonkeypress
applymovement 0xFF @movesfast2
waitmovement 0x0
msgbox @TeamRocket 0x4
closeonkeypress
applymovement 0x1 @!
pause 0x30
applymovement 0x1 @turnsaround
trainerbattle 0x1 0x019 0x0 @before @after @later
end

#org @middleright
showsprite 0x2
showsprite 0x1
textcolor 0x00
msgbox @yellforhelp 0x4
closeonkeypress
applymovement 0xFF @movesfast3
waitmovement 0x0
msgbox @TeamRocket 0x4
closeonkeypress
applymovement 0x1 @!
pause 0x30
applymovement 0x1 @turnsaround
trainerbattle 0x1 0x019 0x0 @before @after @later
end

#org @right
showsprite 0x2
showsprite 0x1
textcolor 0x00
msgbox @yellforhelp 0x4
closeonkeypress
applymovement 0xFF @movesfast4
waitmovement 0x0
msgbox @TeamRocket 0x4
closeonkeypress
applymovement 0x1 @!
pause 0x30
applymovement 0x1 @turnsaround
trainerbattle 0x1 0x019 0x0 @before @after @later
end

#org @later
textcolor 0x00
msgbox @chideshero 0x4
closeonkeypress
applymovement 0x1 @TRgoesaway
waitmovement 0x0
hidesprite 0x1
msgbox @thankyou 0x4
closeonkeypress
applymovement 0x2 @Rivalgoesaway
waitmovement 0x0
hidesprite 0x2
release
end

#org @done
release
end

#org @yellforhelp
= SOME ONE HELP ME!
#org @teamrocket
= Ha, one less trainer with out\ntheir Pokemon means one less\ltrainer sho wont get in the way of\lboss's plans!

#org @before
= What kind of person do you think\nyou are, some kind of hero?\pHa, just test me, I'll send you\nhome bawling your eyes out.

#org @after
= WHA-?! HOW!?

#org @chideshero
= How did this happen?!\pI have been training for this\nmission and I failed!\pGRR... you will pay one day for\nwhat you did to the team, but then\lagain, a few trainers don't\lmatter.\pStay out of our way!

#org @thankyou
= Wow, thank you so much for saving\nme, he almost took my Pokemon.\pI recieved it as a gift from and\nold friend of mine, I don't know\lwhat I would do with out it.\pHm, didn't that guy say something\nabout a plan earlier?\pIt probably dosn't matter much.\nOnce again thanks for saving me,\lcome by my house later.\pIt's just north from the\nPokecenter in Morbank town.

#org @movesfast1
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @movesfast2
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @movesfast3
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @movesfast4
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @!
#raw 0x62
#raw 0xFE

#org @turnsaround
#raw 0x3
#raw 0xFE

#org @TRgoesaway
#raw 0x1E
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0xFE

#org @Rivalgoesaway
#raw 0x1E
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0xFE
It seems you don't put waitmovement 0x0 after the applymovement command in some of your scripts. Put those after your applymovement scripts instead of a pause command.

And what's 803D22? Where is the pointer for that I can't see it in your script. And remove those release commands at the end of your scripts since you didn't put a lock command at first.

And instead of 0x019 for your trainer ID you can just put 0x19. And did you try A-trainer now? Also it's not a good idea to use flags greater than 0x900 cause they can make your hack buggy and may be the cause of BAD EGGS appearing in your PC.
__________________
Reply With Quote
  #817    
Old January 4th, 2013, 02:56 PM
LudicoloDude's Avatar
LudicoloDude
 
Join Date: Mar 2012
Location: Hoenn
Age: 16
Gender: Male
Nature: Jolly
I havnt got the chance to try A-trainer yet, but I will soon. also 0x803D22 points to #org @script. You don't happen to have any tips to help me with ROM hacking that will prevent my ROM from corrupting do you? Fortunately I did't get too far into the hack so it's nothing to be dissapointed about. Thank you for the help.
Reply With Quote
  #818    
Old January 4th, 2013, 03:05 PM
tajaros's Avatar
tajaros
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 15
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to tajaros
Quote:
Originally Posted by LudicoloDude View Post
I havnt got the chance to try A-trainer yet, but I will soon. also 0x803D22 points to #org @script. You don't happen to have any tips to help me with ROM hacking that will prevent my ROM from corrupting do you? Fortunately I did't get too far into the hack so it's nothing to be dissapointed about. Thank you for the help.
Use A-trainer it's the best.

Here some tips, always keep backups and use the best of tools for your hack.
__________________
Reply With Quote
  #819    
Old January 5th, 2013, 02:28 AM
tronwert's Avatar
tronwert
Unhatched Egg
 
Join Date: Jan 2013
Gender: Male
Hello im new in this and im wondering if anyone can pass me a working wild battle script please.
ive tried different ways this is one
#org $script
lock
faceplayer
cry 0xA1 97
#raw 0x33
pause 0x30
message $cry
$cry 1 = Mew!
boxset 6
wildbattle 97 80 0
pause 0x70
fadescreen 0
removesprite 0x800F
setflag 0x1111
pause 0x10
fadescreen 1
release
end

thnx
Reply With Quote
  #820    
Old January 5th, 2013, 03:40 AM
Brane's Avatar
Brane
-
 
Join Date: May 2011
Location: Melbourne, Australia
Age: 21
Gender: Male
Quote:
Originally Posted by tronwert View Post
Hello im new in this and im wondering if anyone can pass me a working wild battle script please.
ive tried different ways this is one
#org $script
lock
faceplayer
cry 0xA1 97
#raw 0x33
pause 0x30
message $cry
$cry 1 = Mew!
boxset 6
wildbattle 97 80 0
pause 0x70
fadescreen 0
removesprite 0x800F
setflag 0x1111
pause 0x10
fadescreen 1
release
end

thnx
There is a section in the very first post of this thread that provides exactly what you're asking for.
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x6 0x0
wildbattle 0x6 0x1E 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @1
= CHARIZARD: Raaarrgghh!
You'd just have to put in your own offset and change the cry and wildbattle settings to the Pokemon that you want. It would also help if you told us what doesn't work with the script. I'd recommend going back to the first post and re-reading what it says. also, it looks like you're using Pokescript or something similar? This thread is dedicated to XSE so you would be better off asking in the Script Help Thread.
Reply With Quote
  #821    
Old January 5th, 2013, 08:54 PM
tronwert's Avatar
tronwert
Unhatched Egg
 
Join Date: Jan 2013
Gender: Male
Brane... the problem is when i try to debug it, a box pops out that says
"error 13 type mismatch on line 8
missing #define or parameter
line:wildbattle 0x97 0x50 0x8B

here's the script:
#dynamic 0x800300

#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x97 0x0
wildbattle 0x97 0x50 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x1200
release
end

#org @1
= Mew!

I changed the offset, the cry and wildbattle :/
Reply With Quote
  #822    
Old January 6th, 2013, 03:01 AM
Brane's Avatar
Brane
-
 
Join Date: May 2011
Location: Melbourne, Australia
Age: 21
Gender: Male
Quote:
Originally Posted by tronwert View Post
Brane... the problem is when i try to debug it, a box pops out that says
"error 13 type mismatch on line 8
missing #define or parameter
line:wildbattle 0x97 0x50 0x8B

here's the script:
#dynamic 0x800300

#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x97 0x0
wildbattle 0x97 0x50 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x1200
release
end

#org @1
= Mew!

I changed the offset, the cry and wildbattle :/
Have you changed the first two offsets in wildbattle to hex? I may be mistaken but that could be what's causing the script to fail compiling.
Reply With Quote
  #823    
Old January 6th, 2013, 10:50 PM
Satoshi Ookami's Avatar
Satoshi Ookami
Memento Mori
Community Supporter
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 22
Gender: Male
Nature: Calm
Or you can just add 3 0x0 after the 0x8B.
Those 3 0x0 are buffers that game needs for the command to run properly.
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
Reply With Quote
  #824    
Old January 7th, 2013, 12:03 PM
solnox
Unhatched Egg
 
Join Date: Jan 2013
Gender: Male
Hi I'm new and tried the basic message script but then when i tested it when i talk to the person, the game just freezes?
Reply With Quote
  #825    
Old January 9th, 2013, 10:05 PM
Flame999's Avatar
Flame999
 
Join Date: Nov 2008
Location: Lavaridge Town
Gender: Male
Nature: Calm
Great Tut Diego I just figure out how to edit pokemarts now all i need to do is how to make wild battles like Zapdos and Mewtwo
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 08:00 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 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 - 2014 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.