![]() |
help? scripting event like old man in viridian or boy in pewter
I'm new to scripting and not sure how I'd go about scripting a character like the old man who won't let you pass in viridian or the boy in pewter who won't let you pass until you beat Brock. I remember seeing something in passing, but after two hours of google and YouTube searches I found nothing that could specificly help me. In short, all I need is a script to prevent the player from leaving the start town until they have received their starter pokemon but also want to e sure I understand the theory behind it completely for future use. Thinking this has to do with flags?
|
Quote:
Here's a script I made just now for you as an example for Firered in XSE. Code:
Here are the rest. Spoiler:
Under the checkflag is if 0x1 goto @HavePoke. Basically it's if flag 0x828 is activated, then go to our pointer @HavePoke. 0x1 is active, 0x0 is not active. Under @HavePoke is our applymovement. In this case it's make the guy you last talked use the movements under @Move. #raw 0x13 makes our guy move over to the right, while 0xFE ends the movement section. Here's the full list of movements too. (It's long) Spoiler:
Feel free to use the code snippet or PM me for more help. |
That did it, thanks!
|
Quote:
|
#dynamic 0x2E04CF
#org @start msgbox @1 0x6 applymovement 7 @walk1 waitmovement 7 applymovement 0xff @walk2 waitmovement 0xff trainerbattle 0x0 0x146 0x0 @before @after msgbox @2 0x6 applymovement 7 @walk3 hidesprite 0x7 waitmovement 7 setvar 0x6500 0x1 setflag 0x1208 release end #org @1 = Hey, if it isn't [player]! #org @before = Did you\nfinally get a pokemon of your own?\lLet's see how strong it is with a\lbattle. #org @after = I can't believe you beat me. I\neven have my trainers license\lalready! #org @2 = With as strong as you are\lalready, you should go get yours\ltoo and take the pokemon league\lgym challenge. Anyway, I have to\lstop by and see Professor Swann so\lI'll catch ya later! #org @walk1 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x12 #raw 0x4 #raw 0x4c #raw 0x10 #raw 0x10 #raw 0xfe #org @walk2 #raw 0x63 #raw 0xfe #org @walk3 #raw 0x2 #raw 0x4c #raw 0x12 #raw 0x4 #raw 0x4c #raw 0x10 #raw 0x10 #raw 0x10 #raw 0x2 #raw 0x4c #raw 0x12 #raw 0x4 #raw 0x4c #raw 0x10 #raw 0x10 #raw 0x1 That's the script. It gets through the battle then he stops. You step off and back on the tile again and he does the same movements and speaking prior to the battle, then says the last line and then dissapears. The whole last movement is cuut out and replaced with the first movements again and I don't understand why. |
| All times are GMT -8. The time now is 2:31 AM. |
![]()
© 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.