HackChu
I need a haircut...
- 674
- Posts
- 18
- Years
- Age 32
- Bankrupt Amerika
- Seen Sep 23, 2020
Uh I think the flag 0x1 has been used,take a look at XSE guide in the prog. itself.
Uh I think the flag 0x1 has been used,take a look at XSE guide in the prog. itself.
If I can I might upload it as some pics.
And the guy with the huge script should place spoiler tags around it,read the rules before you post,Im not trying to act as a mod but Im just pointing it out,so you don't get rained on by people here,lol.
EDIT:I need help with this:
Spoiler:#dynamic 0x800005
#org @start
checkflag 0x200
showsprite 0x03
applymovement 0x03 @move
waitmovement 0x0
msgbox @1 0x6
trainerbattle 0x0 0x001 0x0 @before @after
applymovement 0x03 @move2
waitmovement 0x0
hidesprite 0x03
setflag 0x200
release
end
#org @done
msgbox @beaten 0x6
clearflag 0x200
release
end
#org @move
#raw 0x62
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
#org @1
= Hey watch it!\nDo you know where I can find\pPROF.OAK? So he is in\nthat town ahead?
#org @before
= Well before I get there how\nabout we have a little battle!
#org @after
= Not bad.
#org @beaten
= Well that was a shocker.\nwho would think I'd lose\pto you. Well don't sweat it\nbe seeing you!
#org @move2
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
For some reason after the battle "#org @beaten" doesn't come,than when I walk back to the script it repeats the "#org @1" than goes to "#org @beaten" than the last set of movements.How can I make it occur once,and how do I make the text show after the battle.Thanks to anyone who helps.And Ive tried everything,took out the checkflag,took out stuff,replaced stuff,rearrange and still...nothing.Once again thanks!
First script: switch the applymovement with the waitmovement, because waitmovement needs to go AFTER applymovement.Hey im doing a hack of fire red, and these two scripts dont work.
Spoiler:#dynamic 0x80037F
#org @start
checkflag 0x8
if 0x1 goto @done
msgbox @1 0x6
waitmovement 0x0
applymovement 0xFF @move
release
end
#org @move
#raw 0x13
#raw 0xFE
#org @1
= [red_fr]\v\h01:[black_fr] Huh? What am i doing? I have to\ngo to \v\h06's house.
#org @done
release
end
the problem witht this is that you dont move when you supposed to.
ad a second script
Spoiler:#dynamic 0x800000
#org @start
checkflag 0x7
if 0x1 goto @done
setflag 0x7
applymovement 0x01 @move
msgbox @1 0x6
applymovement 0x01 @move1
msgbox @2 0x6
applymovement 0x01 @move2
release
end
#org @move
#raw 0x01
#raw 0xFE
#org @move1
#raw 0x11
#raw 0x11
#raw 0x03
#raw 0xFE
#org @move2
#raw 0x10
#raw 0x10
#raw 0x02
#raw 0xFE
#org @1
= [blue_fr]Uncle Willie:[black_fr] Oh there you are \v\h01!
#org @2
= \v\h06 was looking for you, he was\nsaying something about the\lSigma Authority Guild. hey, aren't\lthe guys fighting for the free\lregion of Roan? Heh, Fat chance, the\lOrder of the Sentinels already\lconquered several other Regions, like\la small group like that could\lstop them. Be careful, \v\h01.
#org @done
release
end
this script is fine except for two things.
the #org @move2 dosent happen,and the event restarts can happen again once you go to a different map.
any help is appreciated
'---------------
#org 0x8005F5
checkflag 0x51D
if 0x1 goto 0x8800660
faceplayer
msgbox 0x880066B MSG_YESNO '"You look like a good trainer.\nWou..."
compare LASTRESULT 0x1
if 0x1 goto 0x880061C
msgbox 0x88006B2 MSG_NORMAL '"That's a pity...\pI think you two ..."
release
end
'---------------
#org 0x800660
faceplayer
msgbox 0x8800765 MSG_NORMAL '"Are you taking good care\nof BULBA..."
release
end
'---------------
#org 0x80061C
givepokemon 0x1 0x14 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x88006EB MSG_KEEPOPEN '"[black_fr]You received a BULBASAUR..."
waitfanfare
closeonkeypress
setflag 0x51D
msgbox 0x880070A MSG_YESNO '"[black_fr]Would you like to give a..."
compare LASTRESULT 0x1
if 0x1 call 0x8800659
msgbox 0x880073F MSG_NORMAL '"Please take good care of\nBULBASAU..."
release
end
'---------------
#org 0x800659
call 0x81A74EB
return
'---------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return
'---------
' Strings
'---------
#org 0x80066B
= You look like a good trainer.\nWould you care for this BULBASAUR?
#org 0x8006B2
= That's a pity...\pI think you two would\nhave got along.
#org 0x800765
= Are you taking good care\nof BULBASAUR?
#org 0x8006EB
= [black_fr]You received a BULBASAUR!
#org 0x80070A
= [black_fr]Would you like to give a\nnickname to BULBASAUR?
#org 0x80073F
= Please take good care of\nBULBASAUR.
well what you do is when you click COMPILE not save as,than a box will come up saying whatever with the copy button,click it than copy it over to the Amap and the guy you click over to where"$" is and paste the offset that was copied there.You should read dieagoisawsome's xse guide as it has helped me alot in scripting.
You should leave some space between the #dynamic and #org @main.And try msgbox @speak than 0x6,that may be the prob.0x6 triggers a textbox.I LOVE YOU!!!
Lol yeah but thanks. And another question when I do that there are two offsets, @main and @speak?
I tried @main and that worked does @speak work as well? Or not.
And you don't have to save the .rbc files corrrect?
Look at the XSE tut from dieagoisawsome.Im not a big fan on givepkmn scripts as I have trouble with it.And you have to look at applymovements,than figuire a way to combine the givepokemon and applymovement scripts.Don't feel inferior by the commands and all,it takes practice and patience,I thought it was overwelming but if you pay attention you will learn,thats how it is with me.Trust me,applymovements and givepokemon scripts is the only key for what your trying to do.What is the script for a character to give u a pokemon then walk off of the screen then leave forever? I don't need the give pokemon commands, just the exiting one
Well my friend,givepokemon scripts aren't a strong suit for me,im sure someone else will help....This script freezes in the game. And it is for ruby. Could someone please fix it or tell me how?
Spoiler:#dynamic 0x800461
#org @start
checkflag 0x800
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x318B 0x5 0x0 0x0 0x0 0x0
fanfare 0x71A
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x800
setflag 0x801
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox 0x6 0x0
release
end
#org @1
= Hello!
#org @2
= You received a Bagon!
#org @3
= Would you like to give a\nnickname to Bagon?
#org @4
= Enjoy your pokemon!
#org @5
= I gave BULBASAUR CHARMANDER and \nSQUIRTLE to the other trainers.
I have a question regarding XSE and Advance Map.
I'm having trouble getting the scripts too... well work lol and was hoping if I could get some help.
Here's a sample script that I did (offest found with FSF, Using XSE and Advance Map to open the script.)
Spoiler:
#dynamic 0x1E5A2F
#org @main
lock
faceplayer
message @speak
boxset 0x6
release
end
#org @speak
= This is a message!
Now I'm pretty sure I didn't have a scripting error, but the problem is after I finish writing the script. I complie the script to the ROM and when I close XSE it asks "do you want to save the file" (or something like that). I hit yes and it saves the script as a .rbc file. Now when I play my ROM and go up to the person that the scipt is assigned to, i hear a click noise, and nothing happens. When I go back to Advance Map to see what the problem is, I open up the script again. Low and Behold none of my script is in the offset. This happens everytime I try to edit/create a script.
How can I fix this or what am I doing n00bishly wrong?
(BTW I'm using a Ruby ROM)
Thanks in advance!
This script freezes in the game. And it is for ruby. Could someone please fix it or tell me how?
Spoiler:#dynamic 0x800461
#org @start
checkflag 0x800
if 0x1 goto @done
msgbox @1 0x5 'A yes/no message to hello?
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6 'I don't think you meant @2
release
end
#org @take
givepokemon 0x318B 0x5 0x0 0x0 0x0 0x0
fanfare 0x71A
msgbox @3 0x4 'Did you mean @2? This is the nickname string
waitfanfare
closeonkeypress 'Shouldn't be necessary - in fact, it will probably make the msgbox flash
setflag 0x800
setflag 0x801
msgbox @4 0x5 'A yes/no to "Enjoy your Pokemon!"? Did you mean @3?
compare LASTRESULT 0x1
if 0x1 call 0x1A74EB
msgbox @5 0x6
release
end
'This block is unecessary - see above
#org @name
call 0x1A74EB
return
#org @done
msgbox 0x6 0x0 '0x6 is not a pointer and 0x0 is MSG_OBTAIN
'This might be why it's freezing
'Did you mean "msgbox @5 MSG_NORMAL"
release
end
#org @1
= Hello!
#org @2
= You received a Bagon!
#org @3
= Would you like to give a\nnickname to Bagon?
#org @4
= Enjoy your pokemon!
#org @5
= I gave BULBASAUR CHARMANDER and \nSQUIRTLE to the other trainers.
How do you (err whats commands allow you to) have a guy sit by a cave entrance or something and when u step on the tile before the cave, he stops you, then has to see if you have pokemon then if not pushes you back but if you do he lets you go?
Something to do with lockall, flags and what not?