![]() |
I am tying to script, am I doing it wrong?
I'm using Fire Red.
The first script I want to change is the Rival's one. It is like this: Quote:
And what I did is this: Quote:
|
It doesnt work like that,you cant script with static offsets(0x800000) you have to use dynamic offsets(@msg,@move,etc)
for instance for the rival #dynamic 0x1695D7 #org @start lock faceplayer compare 0x4055 0x3 if 0x1 goto @goto compare 0x4055 0x2 if 0x1 goto @goto2 msgbox @msg1 0x4 release end #org @goto msgbox @msg2 0x4 release end #org @goto2 msgbox @msg3 0x4 release end #org @msg1 = [rival]: What, it's only [player]?\nGramps isn't around. #org @msg2 = [rival]: My POKéMON looks a lot\ntougher than yours. #org @msg3 = [rival]: Heh, I don't need to be\ngreedy like you. I'm mature!\pGo ahead and choose, [player]! |
Quote:
I can see the issue is that you're still indicating the main script to jump to the original script when you type the if 0x1 goto... and you indicate the vanilla offsets It could also be you're not pasting the @main offset generated when you hit compile. In addition, Labels @text2 and @text3 are never called and ignored when you compile it therefore. |
Thanks a lot for your answers.
What should I type in "goto" then? Sorry I'm still a noob. |
Quote:
Code:
|
Oh like this, okay I understand. Thank you!
|
It worked pretty well. The last thing I want to ask is how do you know when the text line should end in XSE and when you have to make a new paragraph ?
|
Quote:
|
Quote:
|
Oh yeah thanks!
|
| All times are GMT -8. The time now is 9:13 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.