HackChu
I need a haircut...
- 674
- Posts
- 18
- Years
- Age 32
- Bankrupt Amerika
- Seen Sep 23, 2020
Well said Pokepal17,people should post the script there using,or even better they need to read the rules...
Sorry Raycrow,but the script you gave me worked(the one you did the first time)but when I go back to the tile,he keeps saying "Say hi to PROF.OAK for me",I thought the setflag shoulda made it go once,and nothing else after that.
Same thing happens with me.
You don't have to make the script right now, just fix the first one to make the script not be a repeating loop by adding in the text after you talk to Oak the first time.Ash493: Just wondering, why does your script begin with offset 0x980000?
-------------------------------------------------------------------------
Hey, just as a disclaimer right now, I fixed your scripts so they ran, not necessarily so they do exactly what you want, because I don't know exactly what you want. It's generally your responsibility to figure out how to make a script do exactly what you want; I was mainly correcting syntax errors or telling you how to use a specific function. That's a far cry writing a script for you. I fixed your scripts in hope you would learn from them and be able to write your own. tyson, notbob; what you guys are requesting requires the understanding and use of flags/variables, something that is half common sense and half obtainable from tutorials. You need this knowledge before you're going to be able to write any complicated scripts on your own. I myself just learned scripting a few weeks ago (though I have a programming background).
notbob, what you're asking is not really a "slight" request, it's a request, and honestly I don't have time to do it right now.
tyson, take a look at the flags and structure of my script. I'm not surprised it's doing that as that is what I intended it to do. Try to understand why it's doing that by going through it step by step, and then VM me for additional help.
Both of you should take a look at XSE's F2 guide if you haven't already, especially the sections on flags and vars, and flip through ALL the commands on XSE's F1 command help, so you know what options are available to you.
Well said Pokepal17,people should post the script there using,or even better they need to read the rules...
I want to add a sethealing place to this script so that when you fight the trainer, if you lose you'll be teleported to bank 4 and map number 1. Could somebody tell me how or do it for me?
Spoiler:#dynamic 0x800000
#org @start
lockall
checkflag 0x361
if 0x1 goto @end
special 0x187
msgbox @text6 0x6
trainerbattle 0x9 0x2E6 0x0 @text1 @text2
msgbox @text3 0x6
applymovement 0x1 @move1
waitmovement 0x0
hidesprite 0x1
showsprite 0x6
applymovement 0x6 @move2
waitmovement 0x0
msgbox @text4 0x6
applymovement 0x6 @move1
applymovement MOVE_PLAYER @move3
waitmovement 0x0
warp 0x4 0x0 0x0 0x0 0x0
hidesprite 0x6
setflag 0x361
releaseall
end
#org @end
releaseall
end
#org @text6
= [Player]: Hey Will, how about a quick\nbattle for training purposes?\pWill: Okay but where is the other\nbrat, y'know, your roomate?\p[Player]: Oh you mean Blue? She's\ntraining with Karren down at the\lTraining Facility.\pWill: Karren? My Karren! That\ncannot be! I must go stop them!\p[Player]: Hey what about our battle?\pWill: Oh...right. It will be over\nsoon enough so I suppose one\lquick battle can't hurt.
#org @text1
= Argh!
#org @text2
= Good job Natu!
#org @text3
= Will:Whatever, now I must go stop\nKarren!
#org @text4
= Blue:Alright phase one complete.\nNow let's get out of here.
#org @move1
#raw 0x10
#raw 0x10
#raw 0x60
#raw 0xFE
#org @move2
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x17
#raw 0x13
#raw 0x01
#raw 0xFE
#org @move3
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
Thank, finally somebody with some common sense.
There are 20 sethealingplaces in FR which will warp you to a set map. Adding more or changing the warp location is ASM
You need to put in a setflag.So I have a givepokemon script and OMG IT WORKED.
Everything works great, except that when I open up start my screen doesn't even show a pokemon option, even though when I battle, it sends out the charmander.
Is this because I don't have a PokeDex? Or does the menu option become available once I get a flag set?
The script in case there is something wrong with it...
(Ruby version)
Spoiler:
'-----------------------
#org 0x2916B1
lock
faceplayer
checkflag 0x123
if 0x0 goto 0x8291777
if 0x1 goto 0x82918DB
release
end
'-----------------------
#org 0x291777
msgbox 0x82917BB '"How did you get in\nhere?\pOh, you ..."
callstd 0x6
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x8291923 '"You received a Charmander!"
callstd 0x4
waitfanfare
setflag 0x123
msgbox 0x8291949 '"Would you like to give a\nnickname ..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 call 0x81A74EB
msgbox 0x829189E '"Good luck, son.\pThat cave up ahead..."
callstd 0x6
release
end
'-----------------------
#org 0x2918DB
msgbox 0x82918E6 '"Good luck, son.\pThat cave up ahead..."
callstd 0x6
release
end
'-----------------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return
'---------
' Strings
'---------
#org 0x2917BB
= How did you get in\nhere?\pOh, you have a pass?\pHmm... ...\n... ... ...\n... ... ...\pWell this says you're\nsupposed to go to\nthe next town?\pThat means that you need a POKéMON!\pHere, it's not much\nbut it'll have to\ndo.
#org 0x291923
= You received a Charmander!
#org 0x291949
= Would you like to give a\nnickname to Charmander?
#org 0x29189E
= Good luck, son.\pThat cave up ahead seems\nawfully wierd...
#org 0x2918E6
= Good luck, son.\pThat cave up ahead seems\nawfully wierd...
You need to put in a setflag.
This won't compile:
Spoiler:#dynamic 0x800000
#org @start
checkflag 0x1
if 0x0 goto @hey!
goto @goout
end
#org @hey!
lock
msgbox @icant MSG_NORMAL
applymovement 0x04 @face
waitmovement 0x0
goto @ask
end
#org @icant
= OAK: I don't believe this.\nHe took all of the Pokemon...
#org @face
#raw 0x00
#raw 0xFE
#org @ask
msgbox @can MSG_YESNO
if 0x1 goto @ty
goto @please
#org @goout
lock
msgbox @gomsg MSG_NORMAL
checkitem 0x15D 0x1
compare 0x800D 0x1
if 0x1 goto @takeitem
release
end
#org @ty
msgbox @tymsg MSG_NORMAL
setflag 0x1
release
end
#org @takeitem
msgbox @takeitmmsg MSG_YESNO
if 0x1 goto @tyreward
goto @plz
release
end
#org @plz
msgbox @plzmsg MSG_NORMAL
goto @takeitem
release
end
#org @tyreward
removeitem 0x15D 0x1
msgbox @tyrewardmsg MSG_NORMAL
msgbox @reward 0x4
fanfare 0x13E
waitfanfare
closeonkeypress
setflag 0x829
giveitem 0x4 0x5 MSG_OBTAIN
release
end
#org @tyrewardmsg
= OAK: Thank you, here's a\nPokedex.\pOh! Also, here's some Pokeballs!
#org @reward
= \v\h01 got five Pokeballs and a\n Pokedex!
#org @plzmsg
= OAK: Please, I need them for\nother trainers.
#org @takeitmmsg
= OAK: You have the Pokemon! Can\nyou give them to me?
#org @gomsg
= OAK: Go out and get back the\nPokemon!
#org @tymsg
= OAK: Thank you. I will repay you\nin some way.
#org @can
= OAK: Can you retrieve the\nstolen Pokemon for me?
#org @please
msgbox @pleasemsg MSG_NORMAL
goto @ask
#org @pleasemsg
= OAK: Please, I'm begging you!
#dynamic 0x200000
#org @start
checkflag 0x900
if 0x0 goto 0x8292DC1
release
end
#org @snippet1
msgbox @string1 '"You feel a strange\nforce pulling y..." 0x6
setflag 0x900
warp 0x1 0x5 0x0 0x0 0x0
end
#org @string1
= You feel a strange\nforce pulling you...