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
  #1026    
Old 3 Weeks Ago, 02:26 PM
Flower's Avatar
Flower
ワイルドフラワー
 
Join Date: Nov 2013
Location: Void
Gender: Male
Nature: Quiet
Send a message via Skype™ to Flower

Advertise here
Quote:
Originally Posted by Superelectivire View Post
Yes, there are no set-flags for disappearance or a #raw for hide either.
Also, no trainers there can be seen except Poké Balls.

~ What Trainers ID do I put?
A-map, right side. Click on the NPC first then go see the right side, find the trainer id or id
__________________
Flower
Reply With Quote
  #1027    
Old 3 Weeks Ago, 02:28 PM
Superelectivire's Avatar
Superelectivire
 
Join Date: Jul 2014
Gender: Male
Quote:
Originally Posted by VV View Post
A-map, right side. Click on the NPC first then go see the right side, find the trainer id or id
So I looked at PET, and the ID is 001 (The first one, right?) So do I input it as 0001?
__________________
Want to watch boring and horrible Youtube videos? Check out my channel.
Reply With Quote
  #1028    
Old 3 Weeks Ago, 02:30 PM
Flower's Avatar
Flower
ワイルドフラワー
 
Join Date: Nov 2013
Location: Void
Gender: Male
Nature: Quiet
Send a message via Skype™ to Flower
Quote:
Originally Posted by Superelectivire View Post
So I looked at PET, and the ID is 001 (The first one, right?) So do I input it as 0001?
Yeah. Just put the same. 001
__________________
Flower
Reply With Quote
  #1029    
Old 3 Weeks Ago, 02:33 PM
Superelectivire's Avatar
Superelectivire
 
Join Date: Jul 2014
Gender: Male
Quote:
Originally Posted by VV View Post
Yeah. Just put the same. 001
Lol, problem is:

Trainer: 00
Person ID: 0000

Which one do I put it in? I notice that all the gym leaders have neither... they have 00(00) for both.

EDIT: I put the PET 001 in the script itself.
__________________
Want to watch boring and horrible Youtube videos? Check out my channel.

Last edited by Superelectivire; 3 Weeks Ago at 02:48 PM.
Reply With Quote
  #1030    
Old 3 Weeks Ago, 11:15 PM
Flower's Avatar
Flower
ワイルドフラワー
 
Join Date: Nov 2013
Location: Void
Gender: Male
Nature: Quiet
Send a message via Skype™ to Flower
Quote:
Originally Posted by Superelectivire View Post
Lol, problem is:

Trainer: 00
Person ID: 0000

Which one do I put it in? I notice that all the gym leaders have neither... they have 00(00) for both.

EDIT: I put the PET 001 in the script itself.
In the Person ID of course, since it's impossible to put it on the Trainer.
__________________
Flower
Reply With Quote
  #1031    
Old 3 Weeks Ago, 07:17 AM
Superelectivire's Avatar
Superelectivire
 
Join Date: Jul 2014
Gender: Male
Quote:
Originally Posted by VV View Post
In the Person ID of course, since it's impossible to put it on the Trainer.
Right, but you said to put it as 001, but there are 4 spaces, so are you allowed to leave one blank?

~ As I said before, none of the gym leaders have their ID there...or the trainers.
__________________
Want to watch boring and horrible Youtube videos? Check out my channel.
Reply With Quote
  #1032    
Old 3 Weeks Ago, 04:03 AM
Flower's Avatar
Flower
ワイルドフラワー
 
Join Date: Nov 2013
Location: Void
Gender: Male
Nature: Quiet
Send a message via Skype™ to Flower
Quote:
Originally Posted by Superelectivire View Post
Right, but you said to put it as 001, but there are 4 spaces, so are you allowed to leave one blank?

~ As I said before, none of the gym leaders have their ID there...or the trainers.
I don't know what you have to. But cutting this convo just watch tut on youtube lol
__________________
Flower
Reply With Quote
  #1033    
Old 3 Weeks Ago, 07:30 AM
Superelectivire's Avatar
Superelectivire
 
Join Date: Jul 2014
Gender: Male
Quote:
Originally Posted by VV View Post
I don't know what you have to. But cutting this convo just watch tut on youtube lol
Okay, I'll look it up.

So, back to my original question about the warps.
__________________
Want to watch boring and horrible Youtube videos? Check out my channel.
Reply With Quote
  #1034    
Old 6 Days Ago, 07:37 PM
MarandiaYoung's Avatar
MarandiaYoung
 
Join Date: Aug 2014
Gender: Female
Can you please help me? I'm new at this, I am trying to write a trainer script, i can do the battle just fine, but i'm wanting to make it a rival so that when i win they say something witty and disappear, i find with this script i have to talk to them after the battle to get them to walk away, and they keep reappearing too..Would you please tell me what i did wrong?


#dyn 0x740000
#org @begin
trainerbattle 0x0 0x004 0x0 @intro @defeat
message @afterwards
callstd msg_NOCLOSE
closemsg
applymovement 0x4 @walkaway
end
#org @intro
= I'm Ready to fight!

#org @defeat
= Darn, You won[.]

#org @afterwards
= I can also say something after \nthe battle
#org @walkaway
m walk_up walk_up walk_up walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_left walk_up walk_up walk_up walk_up walk_up end
Reply With Quote
  #1035    
Old 6 Days Ago, 01:50 AM
Magic's Avatar
Magic
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Quote:
Originally Posted by MarandiaYoung View Post
Can you please help me? I'm new at this, I am trying to write a trainer script, i can do the battle just fine, but i'm wanting to make it a rival so that when i win they say something witty and disappear, i find with this script i have to talk to them after the battle to get them to walk away, and they keep reappearing too..Would you please tell me what i did wrong?
You need to use trainerbattle 0x1 so the script continues straight after winning the battle.

Like in Diego's example script for a Gym Leader:

Code:
#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x820
if 0x1 goto @done
msgbox @2 0x6
trainerbattle 0x1 0x001 0x0 @before @after @later
end

#org @before
= Show me what ya got!

#org @after
= What the-?

#org @later
msgbox @3 0x6
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
msgbox @5 0x6
giveitem 0x147 0x1
setflag 0x820
release
end

#org @done
msgbox @1 0x6
release
end

#org @1
= You should travel to Cerulean City\nto get your next badge.

#org @2
= Welcome to Pewter City Gym.\nYou want to challenge me?

#org @3
= Congratulations!\pFor beating me, you get\nthis badge!

#org @4
= \v\h01 recieved a badge!

#org @5
= Oh, and please take this.
Quote:
Originally Posted by Superelectivire View Post
Thanks so much for this!

However, I have a problem. I'm not sure if anybody else who has posted above me has posted this question and/or had it answered, but here it is.
It doesn't let me script Warps.

As this is my first post, I can't post links yet, but it is"
i m g u r . c o m / z p m e Y C i
(without any spaces.)
You don't script warps tiles - that part has nothing to do with this tutorial. The warp diego used is as part of a script, whilst you're looking at warp tiles. The [W]s in A-Map simply go on a door (or by stairs, etc.) and will automatically warp you when you move in the correct manner. The warp you have a picture of takes you to Map 3,0 - Warp 0. Which should be Pallet Town. Change the numbers to change where it goes.
__________________

Sunkern, the Seed Pokémon.

It may drop out of the sky suddenly. If attacked by a Spearow, it will violently shake its leaves.
Reply With Quote
  #1036    
Old 6 Days Ago, 02:24 AM
4768fitz's Avatar
4768fitz
 
Join Date: Feb 2008
Location: England
Age: 22
Gender:
Nature: Brave
Hey great tutorial it is really helping me out. I have come across a problem though and don't know how to rectify it. Basically I have a script where a girl walks up to the player, talks and gives player a pokemon. She then walks back off screen. The problem is, when you walk the way she went, you can see her sprite standing there (standing where it originally walked from)

I want that sprite/person event to disappear after she walks off screen. Like the prof oak follow me script; his sprite isn't there until he gets you to follow him but you can see his person event in advance map. Thank you.

I have also tried hidesprite 0Xx and hidesprite 0x800F.
Reply With Quote
  #1037    
Old 6 Days Ago, 02:31 AM
Magic's Avatar
Magic
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Quote:
Originally Posted by 4768fitz View Post
Hey great tutorial it is really helping me out. I have come across a problem though and don't know how to rectify it. Basically I have a script where a girl walks up to the player, talks and gives player a pokemon. She then walks back off screen. The problem is, when you walk the way she went, you can see her sprite standing there (standing where it originally walked from)

I want that sprite/person event to disappear after she walks off screen. Like the prof oak follow me script; his sprite isn't there until he gets you to follow him but you can see his person event in advance map. Thank you.

I have also tried hidesprite 0Xx and hidesprite 0x800F.
Keep the hidesprite, make sure it is 0xEVENTNUMBER. But also set a flag in your script (you might already have one in there?) - once you've got a flag going, copy the number into her PERSON ID in A-Map. When you combo setting a flag and hidesprite it makes the sprite disappear permanently, she'll only reappear if you use showsprite or clear the flag.
__________________

Sunkern, the Seed Pokémon.

It may drop out of the sky suddenly. If attacked by a Spearow, it will violently shake its leaves.
Reply With Quote
  #1038    
Old 6 Days Ago, 05:57 AM
4768fitz's Avatar
4768fitz
 
Join Date: Feb 2008
Location: England
Age: 22
Gender:
Nature: Brave
Thank you it worked I just have another problem, I can't edit a script I have already compiled. Every time I try to re-compile the script it keeps reverting to the unchanged version.
Reply With Quote
  #1039    
Old 6 Days Ago, 01:52 PM
MarandiaYoung's Avatar
MarandiaYoung
 
Join Date: Aug 2014
Gender: Female
Quote:
Originally Posted by Magic View Post
You need to use trainerbattle 0x1 so the script continues straight after winning the battle.

Like in Diego's example script for a Gym Leader:

Code:
#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x820
if 0x1 goto @done
msgbox @2 0x6
trainerbattle 0x1 0x001 0x0 @before @after @later
end

#org @before
= Show me what ya got!

#org @after
= What the-?

#org @later
msgbox @3 0x6
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
msgbox @5 0x6
giveitem 0x147 0x1
setflag 0x820
release
end

#org @done
msgbox @1 0x6
release
end

#org @1
= You should travel to Cerulean City\nto get your next badge.

#org @2
= Welcome to Pewter City Gym.\nYou want to challenge me?

#org @3
= Congratulations!\pFor beating me, you get\nthis badge!

#org @4
= \v\h01 recieved a badge!

#org @5
= Oh, and please take this.
You don't script warps tiles - that part has nothing to do with this tutorial. The warp diego used is as part of a script, whilst you're looking at warp tiles. The [W]s in A-Map simply go on a door (or by stairs, etc.) and will automatically warp you when you move in the correct manner. The warp you have a picture of takes you to Map 3,0 - Warp 0. Which should be Pallet Town. Change the numbers to change where it goes.
wheni do that, it says that there is an invalid character in the data, that it needs to be an integer, why is this?
Reply With Quote
  #1040    
Old 6 Days Ago, 02:31 PM
MarandiaYoung's Avatar
MarandiaYoung
 
Join Date: Aug 2014
Gender: Female
i did what it showed. And got this as a response tinyurl . com/ l9kmskz
my script was

#dyn 0x740000
#org @begin
lock
faceplayer
checkflag 0x220
if 0x1 goto @done
msgbox @2 0x4
trainerbattle 0x1 0x004 0x0 @before @after @later
end
#org @before
= Hina: Here we go are you ready?!

#org @after
= Hina: Ngh You win...

#org @later
Msgbox @3 0x4
applymovement 0x4 @walkaway
setflag 0x220
release
end
#org @done
msgbox @1 0x4
release
end
#org @1
= Why can you see me?

#org @2
= Hina: Are you ready to \nfight me.

#org @3
= You won. This will be \nthe only time you do.

#org @walkaway
m walk_up walk_up walk_up walk_up walk_up walk_up walk_up walk_up walk_up walk_left walk_left walk_left walk_left walk_left walk_left walk_up walk_up walk_up walk_up end
Reply With Quote
  #1041    
Old 6 Days Ago, 03:04 PM
Magic's Avatar
Magic
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Phone posting! Pew pew. There's nothing obvious wrong with your script, did you edit it at all after compiling?

Are you using a green event script tile for this? May be the problem. Maybe.
__________________

Sunkern, the Seed Pokémon.

It may drop out of the sky suddenly. If attacked by a Spearow, it will violently shake its leaves.
Reply With Quote
  #1042    
Old 5 Days Ago, 03:52 PM
MarandiaYoung's Avatar
MarandiaYoung
 
Join Date: Aug 2014
Gender: Female
no i was not, i restarted my computer and openeed it and it worked. do you have any idea where i would put the hidesprite in that?
Reply With Quote
  #1043    
Old 5 Days Ago, 03:55 PM
MarandiaYoung's Avatar
MarandiaYoung
 
Join Date: Aug 2014
Gender: Female
but it did it again after the battle....
Reply With Quote
  #1044    
Old 5 Days Ago, 12:28 AM
Magic's Avatar
Magic
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
...
Applymovement
Waitmovement 0x0
Setflag 0x220
Hidesprite 0x
...

Also on that @done section change the msgbox number to 0x6 - 0x4 will mean it is stuck open.
__________________

Sunkern, the Seed Pokémon.

It may drop out of the sky suddenly. If attacked by a Spearow, it will violently shake its leaves.
Reply With Quote
  #1045    
Old 5 Days Ago, 09:45 AM
MarandiaYoung's Avatar
MarandiaYoung
 
Join Date: Aug 2014
Gender: Female
Okay thank you very much for your help. I really appreciate it!
Reply With Quote
  #1046    
Old 5 Days Ago, 12:11 PM
Superelectivire's Avatar
Superelectivire
 
Join Date: Jul 2014
Gender: Male
Quote:
Originally Posted by Magic View Post
You need to use trainerbattle 0x1 so the script continues straight after winning the battle.

Like in Diego's example script for a Gym Leader:

Code:
#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x820
if 0x1 goto @done
msgbox @2 0x6
trainerbattle 0x1 0x001 0x0 @before @after @later
end

#org @before
= Show me what ya got!

#org @after
= What the-?

#org @later
msgbox @3 0x6
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
msgbox @5 0x6
giveitem 0x147 0x1
setflag 0x820
release
end

#org @done
msgbox @1 0x6
release
end

#org @1
= You should travel to Cerulean City\nto get your next badge.

#org @2
= Welcome to Pewter City Gym.\nYou want to challenge me?

#org @3
= Congratulations!\pFor beating me, you get\nthis badge!

#org @4
= \v\h01 recieved a badge!

#org @5
= Oh, and please take this.


You don't script warps tiles - that part has nothing to do with this tutorial. The warp diego used is as part of a script, whilst you're looking at warp tiles. The [W]s in A-Map simply go on a door (or by stairs, etc.) and will automatically warp you when you move in the correct manner. The warp you have a picture of takes you to Map 3,0 - Warp 0. Which should be Pallet Town. Change the numbers to change where it goes.
Okay then, how do I input that offset in then?
__________________
Want to watch boring and horrible Youtube videos? Check out my channel.
Reply With Quote
  #1047    
Old 5 Days Ago, 12:20 PM
Magic's Avatar
Magic
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Quote:
Originally Posted by Superelectivire View Post
Okay then, how do I input that offset in then?
I'm not sure what you're asking
Warp Number = The number of the purple tile you are warping too (says it on the event tab)
Map Bank = First number of a map in A-Map (IE all the towns are map bank 3)
Map Number = Second number of a map in A-Map.
If you're trying to warp at the end of the script (which would fit in this thread, but you weren't very clear) then you must have the warp command present so the end is:
warp 0xBANK 0xMAPNO 0xWARPNO 0x0 0x0
end
If you don't want to warp to an actual warp tile, but co-ordinates then the last two numbers work as X and Y. Hover over the tile you will want to end up on, in a-map, and in the bottom left corner it will tell you the co-ordinates in hex. For that kind of script you use:
warp 0xBANK 0xMAPNO 0xFF 0xXCOORD 0xYCOORD
end
__________________

Sunkern, the Seed Pokémon.

It may drop out of the sky suddenly. If attacked by a Spearow, it will violently shake its leaves.
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 03:27 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.