Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources

Notices
For all updates, view the main page.

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.



Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #501    
Old September 12th, 2010 (03:54 PM).
Showsni
Beginning Trainer
 
Join Date: Sep 2010
Gender: Male
Hi, I wonder if anyone can help? I can't make people permanently disappear. I've done the whole setflag thing with their ID number; it doesn't work for me. Or, at least, not consistently; sometimes they're gone, and sometimes they reappear.
Reply With Quote
  #502    
Old September 12th, 2010 (11:51 PM). Edited September 13th, 2010 by chriskid198.
chriskid198's Avatar
chriskid198
Happy New Year!
 
Join Date: Jul 2010
Location: Australia
Age: 17
Gender: Male
Nature: Relaxed
Quote originally posted by Showsni:
Hi, I wonder if anyone can help? I can't make people permanently disappear. I've done the whole setflag thing with their ID number; it doesn't work for me. Or, at least, not consistently; sometimes they're gone, and sometimes they reappear.
Just make them move into a tree or something... xD

EDIT:
Where do would I define nowhere in this script?

Code:
#org $start
lock
faceplayer
applymovement 0x01 $movement
message $move 0x2
release
end

#org $movement
#raw 0x01 0x62

#org $move
#move 1 =Oh, your up \v\h01.  The Professor\nwas looking for you this morning.\lYou better get to his lab quick!
release
end
EDIT 2: What do I use to check if a flag hasn't been set? You use 0x0 to check if its true, what about if its false?
Reply With Quote
  #503    
Old September 13th, 2010 (06:26 AM).
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 chriskid198:

EDIT 2: What do I use to check if a flag hasn't been set? You use 0x0 to check if its true, what about if its false?
if 0x0 is for false case I've already written it xD
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
Reply With Quote
  #504    
Old September 13th, 2010 (06:43 AM).
Saitou
 
 
Join Date: Sep 2010
Gender: Male
Nature: Relaxed
Quote originally posted by Showsni:
Hi, I wonder if anyone can help? I can't make people permanently disappear. I've done the whole setflag thing with their ID number; it doesn't work for me. Or, at least, not consistently; sometimes they're gone, and sometimes they reappear.
Umm..I'm new to this, so I don't know if I can help. Shouldn't you use the 'hidesprite 0x[person event number]' construct?
Reply With Quote
  #505    
Old September 13th, 2010 (06:53 PM).
Showsni
Beginning Trainer
 
Join Date: Sep 2010
Gender: Male
Quote originally posted by Saitou:
Umm..I'm new to this, so I don't know if I can help. Shouldn't you use the 'hidesprite 0x[person event number]' construct?
I was using that too!

Anyway, I changed which numbers I was using as flags, and it started working. So, don't try using 2000 as a person's ID.
Reply With Quote
  #506    
Old September 14th, 2010 (02:25 AM). Edited September 14th, 2010 by chriskid198.
chriskid198's Avatar
chriskid198
Happy New Year!
 
Join Date: Jul 2010
Location: Australia
Age: 17
Gender: Male
Nature: Relaxed
Quote originally posted by Ash493:
if 0x0 is for false case I've already written it xD
What? 0x0 is for False? (We need a confused smilie xD)

EDIT:
Code:
#org $start
lock
faceplayer
set flag 0x1
checkflag 0x1
if 0x1 goto @never
applymovement 0x01 @movement
message $move 0x2
release
end

#org @movement
#raw 0x01
#raw 0x62

#org $move
#move 1 =Oh, your up \v\h01.  The Professor\nwas looking for you this morning.\lYou better get to his lab quick!
release
end

#org @never
@never 0x1
release
end
XSE says that line 13 wont work.
Reply With Quote
  #507    
Old September 26th, 2010 (11:21 AM).
alalexandros99
Beginning Trainer
 
Join Date: Aug 2010
Gender: Male
Diego you are awesome
YOU HELPED ME AAAAAA LOTTT
Reply With Quote
  #508    
Old September 28th, 2010 (01:29 AM).
Random92
Beginning Trainer
 
Join Date: Sep 2010
Gender: Male
What is a "level script"? As you described in the beginning of your post. What's the difference between a level script and a normal one?
Reply With Quote
  #509    
Old October 1st, 2010 (09:44 AM).
Wallace Berlitz's Avatar
Wallace Berlitz
I'm back for lucks and givin'
 
Join Date: May 2008
Location: Battle Frontier
Age: 20
Gender:
Nature: Hardy
Send a message via ICQ to Wallace Berlitz Send a message via AIM to Wallace Berlitz Send a message via Windows Live Messenger to Wallace Berlitz Send a message via Yahoo to Wallace Berlitz Send a message via Skype™ to Wallace Berlitz
Something's wrong in my scripts? I followed the tutorial in here but the script isn't working! =(

Spoiler:
'---------------
#org @start
lockall
setvar 0x4001 0x0
goto @snippet1

'---------------
#org @snippet1
setvar 0x8004 0x0
setvar 0x8005 0x2
special 0x174
textcolor 0x0
pause 0x1E
playsong 0x12E 0x0
preparemsg @string1 '"[player], you forgot something."
waitmsg
pause 0x55
closeonkeypress
applymovement 0xFF @move1
waitmovement 0x0
sound 0x15
applymovement 0xFF @move2
waitmovement 0x0
pause 0x1E
showsprite 0x10
compare 0x4001 0x0
msgbox @string2 0x4 '"So how was your sleep?\pWhat do yo..."
closeonkeypress
pause 0x1E
compare 0x4001 0x0
applymovement 0x10 @move3
applymovement 0xFF @move4
waitmovement 0x0
setdoorclosed 0x15 0xE
doorchange
setvar 0x4055 0x1
clearflag 0x2B
setvar 0x4050 0x1
setflag 0x2C
setflag 0x4001
warp 0x4 0x3 0xFF 0x6 0xC
waitstate
releaseall
end


'---------
' Strings
'---------
#org @string1
= [player], you forgot something.

#org @string2
= So how was your sleep?\pWhat do you think of Hiore region?\nPeace and nice isn't it?\pLet's go back to our main subject.\pHere, come with me.


'-----------
' Movements
'-----------
#org @move1
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements

#org @move2
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org @move3
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements

#org @move4
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements


Nothing's happened! >.< I hope I'm not posting in a wrong section...
__________________
Pokemon White Friencode: 0131 8408 3699 ウワリ (u wa ri)
Pokemon HeartGold Friendcode: 1076 4793 4716 (Walley)

Anyone is WELCOMED to Battle, Trade or be a Partner! [/FONT][/sig-reason]
Reply With Quote
  #510    
Old October 1st, 2010 (03:09 PM).
madarawolf's Avatar
madarawolf
Espada Cuarta
 
Join Date: Nov 2008
Gender:
OK I would like some help with my script. It's supposed to make it so you fight this guy and after you beat him he gives you a Pokemon. I'm pretty sure this should work but I would just like an experienced scripter to look over it.
Spoiler:
'---------------
#org 0x800008

#dynamic 0x800008
#org @start
trainerbattle 0x0 0x002 0x0 @before @after
msgbox @beaten 0x6
release
end

#org @give
checkflag 0x828
if 0x1 goto @give
compare LASTRESULT 0x1
if 0x1 goto @give
release
end

#org @take
givepokemon 0x109 0x0A 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
closeonkeypress
setflag 0x828
compare LASTRESULT 0x1
if 0x1 gosub @name
release
end

#org @name
call 0x1A74EB
return

#org @beaten
release
end

#org @before
= Yo./nI'm Odd Jobs Gin./nI run the Yorozuya./nI'll do any job./nas long as I get paid./nHey if I beat you then I/nget money, right?

#org @after
= Damn, no money for rent/nthis month.../nHere take this Pokemon/nI don't need another mouth/nto feed.

#org @give -Here XSE says there is a problem.
= [black_fr]"You recieved a Victini!"

#org @beaten
= I gotta go to the store/nand buy this week's JUMP.
__________________
why yes I am made of awsome
Reply With Quote
  #511    
Old October 1st, 2010 (11:47 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 chriskid198:
What? 0x0 is for False? (We need a confused smilie xD)

EDIT:
Code:
#org $start
lock
faceplayer
set flag 0x1
checkflag 0x1
if 0x1 goto @never
applymovement 0x01 @movement
message $move 0x2
release
end

#org @movement
#raw 0x01
#raw 0x62

#org $move
#move 1 =Oh, your up \v\h01.  The Professor\nwas looking for you this morning.\lYou better get to his lab quick!
release
end

#org @never
@never 0x1
release
end
XSE says that line 13 wont work.
I gotta point some mistakes you made.
First: setflag must be together (I wonder why XSE did not mention this mistake)
Second: start, org and all the msgboxes also must have @. Not # or $
Third: Never use flags above 200
So in other words re-do your script =D


Quote originally posted by madarawolf:
OK I would like some help with my script. It's supposed to make it so you fight this guy and after you beat him he gives you a Pokemon. I'm pretty sure this should work but I would just like an experienced scripter to look over it.
Spoiler:
'---------------
#org 0x800008

#dynamic 0x800008
#org @start
trainerbattle 0x1 0x002 0x0 @before @after @take
release
end

#org @give
checkflag 0x828
if 0x1 goto @give
compare LASTRESULT 0x1
if 0x1 goto @give
release
end
Delete this. There's no reason to have it in your script.

#org @take
msgbox @received 0x6
givepokemon 0x109 0x0A 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
closeonkeypress
setflag 0x828
compare LASTRESULT 0x1
if 0x1 gosub @name
release
end

#org @name
call 0x1A74EB
return


#org @before
= Yo./nI'm Odd Jobs Gin./nI run the Yorozuya./nI'll do any job./las long as I get paid./lHey if I beat you then I/lget money, right?

#org @after
= Put here something what would trainer say after you beat him.

#org @received
= Damn, no money for rent/nthis month.../nHere take this Pokemon/lI don't need another mouth/lto feed./p[black_fr]You recieved a Victini!

#org @beaten
= I gotta go to the store/nand buy this week's JUMP.
Fixes in bold and I'd advise to make him disappear after you receive Victini.

Quote originally posted by Wallace Berlitz:
Something's wrong in my scripts? I followed the tutorial in here but the script isn't working! =(

Spoiler:
'---------------
#org @start
lockall
setvar 0x4001 0x0
goto @snippet1

'---------------
#org @snippet1
setvar 0x8004 0x0
setvar 0x8005 0x2
special 0x174
textcolor 0x0
pause 0x1E
playsong 0x12E 0x0
preparemsg @string1 '"[player], you forgot something."
waitmsg
pause 0x55
closeonkeypress
applymovement 0xFF @move1
waitmovement 0x0
sound 0x15
applymovement 0xFF @move2
waitmovement 0x0
pause 0x1E
showsprite 0x10
compare 0x4001 0x0
msgbox @string2 0x4 '"So how was your sleep?\pWhat do yo..."
closeonkeypress
pause 0x1E
compare 0x4001 0x0
applymovement 0x10 @move3
applymovement 0xFF @move4
waitmovement 0x0
setdoorclosed 0x15 0xE
doorchange
setvar 0x4055 0x1
clearflag 0x2B
setvar 0x4050 0x1
setflag 0x2C
setflag 0x4001
warp 0x4 0x3 0xFF 0x6 0xC
waitstate
releaseall
end


'---------
' Strings
'---------
#org @string1
= [player], you forgot something.

#org @string2
= So how was your sleep?\pWhat do you think of Hiore region?\nPeace and nice isn't it?\pLet's go back to our main subject.\pHere, come with me.


'-----------
' Movements
'-----------
#org @move1
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements

#org @move2
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org @move3
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x60 'Hide
#raw 0xFE 'End of Movements

#org @move4
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements


Nothing's happened! >.< I hope I'm not posting in a wrong section...
Well... the thing is... you cannot use first setvar this way... Try to do it with flags, it'll be easier and it should work.
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
Reply With Quote
  #512    
Old October 3rd, 2010 (06:00 PM).
Blue4
Beginning Trainer
 
Join Date: Apr 2010
This thread should be stickied.

It's a pretty bloody comprehensive guide, and is one of the best tutorials in this subforum.
Reply With Quote
  #513    
Old October 3rd, 2010 (10:52 PM).
Random92
Beginning Trainer
 
Join Date: Sep 2010
Gender: Male
Ash493, I've used the flags 200-205, and they work fine for me

I also agree with Blue4.
Reply With Quote
  #514    
Old October 3rd, 2010 (11:09 PM).
chriskid198's Avatar
chriskid198
Happy New Year!
 
Join Date: Jul 2010
Location: Australia
Age: 17
Gender: Male
Nature: Relaxed
Quote originally posted by Ash493:
I gotta point some mistakes you made.
First: setflag must be together (I wonder why XSE did not mention this mistake)
Second: start, org and all the msgboxes also must have @. Not # or $
Third: Never use flags above 200
So in other words re-do your script =D



Fixes in bold and I'd advise to make him disappear after you receive Victini.


Well... the thing is... you cannot use first setvar this way... Try to do it with flags, it'll be easier and it should work.
Why can't you use flags above 200?
Reply With Quote
  #515    
Old October 4th, 2010 (03:42 AM).
Binary's Avatar
Binary
え?
 
Join Date: Aug 2007
Age: 20
Quote originally posted by chriskid198:
Why can't you use flags above 200?
I think he meant below 0x200.
But, it generally depends on which flags are vacant, and the rom you're using.
I suggest you look up the archive of used flags in XSE's in-built guide.
__________________
Reply With Quote
  #516    
Old October 8th, 2010 (04:22 AM).
konman719's Avatar
konman719
Hacker
 
Join Date: Sep 2010
Gender: Male
Hey, so does anyone think they can help me out? Im trying to do something as simple as make a pokeball give you an item but when i try this it either freezes my game or the pokeball disappears when i get the item and then reappears after one step? any suggestions... also the trainer view radius in AM doesnt work for me, any suggestions on that either?
Reply With Quote
  #517    
Old October 8th, 2010 (04:27 AM).
Random92
Beginning Trainer
 
Join Date: Sep 2010
Gender: Male
If the Pokéball disappears and then reappers after one step it could be because you've used the same flag two times. Change flag and try again. 201-205 should be safe to use in FireRed.
Reply With Quote
  #518    
Old October 8th, 2010 (05:10 AM).
Echidna's Avatar
Echidna
Community Supporter
 
Join Date: Aug 2010
Location: Vaniville Town
Age: 20
Gender: Male
Nature: Brave
or just use any flag with four characters as long as the first isn't zero cause almost all flags under a thousand are already used, so set a flag above a thousand and your safe.
Of course you have to know everything about scripting so check out my tutorial which starts from beginner scripting till advance scripting and everything else. OH and super thanks to diegoisawesome for getting me going on scripting in the first place.
__________________






Reply With Quote
  #519    
Old October 8th, 2010 (08:50 AM).
konman719's Avatar
konman719
Hacker
 
Join Date: Sep 2010
Gender: Male
ok thanks guys i figured out the pokeball problem but does anyone know how to make a trainer you made approach you? whenever i change the view radius of a trainer i made, it brings the trainer to me but i cant stop talking to him and it says unfamiliar letters.... and i know my trainer works bc if i talked to him he would battle me... help plz
Reply With Quote
  #520    
Old October 8th, 2010 (02:25 PM).
cenaice
Beginning Trainer
 
Join Date: Aug 2009
Gender: Male
Can anybody help me?

When i talk to the npc in the game nothing pops up. I just get the sound when you talk to the npc. But no chat box?
Reply With Quote
  #521    
Old October 8th, 2010 (10:52 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 chriskid198:
Why can't you use flags above 200?
Quote originally posted by Binary:
I think he meant below 0x200.
But, it generally depends on which flags are vacant, and the rom you're using.
I suggest you look up the archive of used flags in XSE's in-built guide.
Yes I meant below xD I made a stupid mistake...
The reason is that flags below 200 are mostly used. So it's advisable to use flags above 200.
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
Reply With Quote
  #522    
Old October 9th, 2010 (02:22 AM).
chriskid198's Avatar
chriskid198
Happy New Year!
 
Join Date: Jul 2010
Location: Australia
Age: 17
Gender: Male
Nature: Relaxed
Quote originally posted by Ash493:
Yes I meant below xD I made a stupid mistake...
The reason is that flags below 200 are mostly used. So it's advisable to use flags above 200.
But I'm not using any scripts that are already in the game..
Reply With Quote
  #523    
Old October 9th, 2010 (02:43 AM).
jota_rdk's Avatar
jota_rdk
Spanish hacker [Javi4315]
 
Join Date: Jul 2010
Location: Spain
Gender: Male
Nature: Timid
Quote originally posted by cenaice:
Can anybody help me?

When i talk to the npc in the game nothing pops up. I just get the sound when you talk to the npc. But no chat box?
You would should append the script so that we can help you.
__________________
Pokémon Golden Legend // Pokémon Silver Legend


My tutorials:

__________________
My english is very bad, I know. Sorry! xD
Reply With Quote
  #524    
Old October 9th, 2010 (07:50 AM).
Echidna's Avatar
Echidna
Community Supporter
 
Join Date: Aug 2010
Location: Vaniville Town
Age: 20
Gender: Male
Nature: Brave
Quote originally posted by chriskid198:
But I'm not using any scripts that are already in the game..
It doesn't matter any flag you use in one script generally affects its use in another script, so if you set a flag, it's perminantly set, and by the way, almost all flags under 1000 are used, so just use a four character flag where 0 isn't the first character. So
Quote:
1A3F and B3F6 and 1356
and so on all work as long as it's not like:
Quote:
123 or 03B5 or FD3 or 09F4
Oh i mean any hex number under 1000 not decimal, so even 1300 in decimal won't work, if you don't know what the difference between hex and decimal is, no offense, but go away and learn, or check out my tutorial.
__________________






Reply With Quote
  #525    
Old October 9th, 2010 (07:07 PM). Edited October 9th, 2010 by chriskid198.
chriskid198's Avatar
chriskid198
Happy New Year!
 
Join Date: Jul 2010
Location: Australia
Age: 17
Gender: Male
Nature: Relaxed
Quote originally posted by PEDRO12:
It doesn't matter any flag you use in one script generally affects its use in another script, so if you set a flag, it's perminantly set, and by the way, almost all flags under 1000 are used, so just use a four character flag where 0 isn't the first character. So
and so on all work as long as it's not like:
Oh i mean any hex number under 1000 not decimal, so even 1300 in decimal won't work, if you don't know what the difference between hex and decimal is, no offense, but go away and learn, or check out my tutorial.
I know that it would affect another script in the game, I am keeping track of what flags I use.

Now, I kinda understand, if you use a checkflag that has one in the game already, it could mess up? Is there anyway to clear every flag/script?

EDIT: And I do know what the difference is between Hex and Decimal...
Reply With Quote
Reply
Quick Reply

Sponsored Links
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 12:28 PM.