BlitŻ1
guahh my dog is so cute
- 472
- Posts
- 16
- Years
- Bay Area, Califronia.
- Seen Oct 1, 2015
Can someone tell me how I have a script continue even after you lose a battle? I have tried to reconstruct something lie it myself but to no avail...
umm yea, That not really making any sense.you can do this thing:you beat your enemy and then after the battle with a script,he uses max revive on his pokemon and then uses a strong move like hyper beam to knock your pokemon out and then you'll lose(thi won't be at the battle screen only at the script after the battle)
edit: Okay I think I found out how the game does, instead of trainerbattle 0x1 or 0x0 it does 0x9, I think that continues it after the battle, but if anyone could help me confirm this it would be cool.
okay I think I almost got it
but how do I make so if I lose it goes do a differnt part and if I win I goto a differnt part?
I edited the OAK script so it would occure as soon as I leave home. It would make him talk and make me go to the lab following him.
Everything works just fine, except for one thing: everytime I exit a house, it ALWAYS happens. It's a flag problem, but I don't know how to fix it.
Spoiler:#dynamic 0x800000
#org @start
showsprite 0x3
lockall
setvar 0x4001 0x1
goto @snippet1
#org @snippet1
setvar 0x8004 0x0
setvar 0x8005 0x2
special 0x174
textcolor 0x0
pause 0x1E
playsong 0x12E 0x0
preparemsg @prof1
waitmsg
pause 0x55
closeonkeypress
applymovement 0xFF @move1
waitmovement 0x0
sound 0x15
pause 0x1E
preparemsg @prof2
waitmsg
pause 0x1E
closeonkeypress
applymovement 0x3 @move0
applymovement 0xFF @move3
waitmovement 0x0
pause 0x1E
setdooropened 0x7 0x9
doorchange
applymovement 0x3 @move4
applymovement 0xFF @move5
waitmovement 0x0
setdoorclosed 0x7 0x9
doorchange
setvar 0x4055 0x1
clearflag 0x2B
setvar 0x4050 0x1
setflag 0x2C
setflag 0x4001
warp 0x4 0x3 0xFF 0x6 0xC
waitstate
releaseall
end
#org @prof1
= PROF: There you are, [player]!
#org @prof2
= PROF: I have been looking for you \nall morning. \pBut at last, you are here! \pAs you may know, I am the \nPROFESSOR, and I live near here. \pFollow me!
#org @move1
#raw 0x62
#raw 0xFE
#org @move0
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x03
#raw 0xFE
#org @move3
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE
#org @move4
#raw 0x11
#raw 0x60
#raw 0xFE
#org @move5
#raw 0x13
#raw 0x11
#raw 0x60
#raw 0xFE
What's the problem? The flag is, but I don't know how to fix it. Please reply :)
Game: Pokemon Fire Red
Type: Person Event (givepokemon)
Editor: XSE
Script
Spoiler:#dynamic 0x800000
#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x97 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @1
= Hello.\n[Player].\nI can't take care\nHere's a Zangoose...\pIt's my Newest\nPokemon.
#org @2
= That's okay.\pI'm sure your sister will\ntake it...
#org @3
= [black_fr]You received a Zangoose!
#org @4
= [black_fr]Would you like to give a\nnickname to Zangoose?
#org @5
= Please take care of\nZangoose.
#org @6
= Are you taking good care\nof Zangoose?
what'd i do wrong? it just freezes when i click the guy
Game: Pokemon Fire Red
Type: tigger
Editor: XSE
Script:
Ok well I got this script. Just about everything works as it is suppose but I ran into something that has always given me trouble (even in pokescript). So I have tried to avoid it. But now I can't. So I need help. the only problem with the script is the warp command. After it gets to warp, the game just goes to a black screen. So any help would be great.
Spoiler:#Dynamic 0x71c024
#org @start
msgbox @son 0x06
applymovement 0x03 @move
applymovement 0xff @move1
waitmovement 0x0
msgbox @what 0x06
applymovement 0x1 @!
applymovement 0x2 @!
msgbox @Why 0x06
applymovement 0x1 @right
waitmovement 0x0
msgbox @scold 0x06
msgbox @yes 0x06
applymovement 0x2 @leave1
waitmovement 0x0
msgbox @lucky 0x06
applymovement 0xff @move2
waitmovement 0x0
applymovement 0x2 @leave2
waitmovement 0x0
fadescreen 0x1
hidesprite 0x200
fadescreen 0x0
applymovement 0x01 @down
msgbox @mission 0x06
msgbox @Soon 0x06
msgbox @mission2 0x06
msgbox @butson 0x06
msgbox @sorry 0x06
msgbox @thank 0x06
applymovement 0x03 @look
applymovement 0xff @up
msgbox @goodbye 0x06
applymovement 0x06 @gone
fadescreen 0x1
hidesprite 0x3
fadescreen 0x0
applymovement 0xff @goingup
msgbox @home 0x06
warp 0x43 0x0 0xFF 0x2 0x2
#org @up
#raw 0x01 0xfe
#org @son
= Son I'm glad you came with me.\nThis event shall reawaken!\pYes reawaken Team Rocket,\nfrom the slumps of the city.\pTo most feared crime organization!
#org @move
#raw 0x13 0x11 0x11 0x11 0x11 0x11 0x11 0x01 0xfe
#org @move1
#raw 0x11 0x13 0x11 0x11 0x11 0x11 0x11 0x13 0x01 0xfe
#org @what
= \v\h01\:That's...That's!\pFather:Welcome back my lord.\nWe have been ready for you return.\pTell me what is your wish?
#org @!
#raw 0x62 0xfe
#org @right
#raw 0x03 0xfe
#org @Why
= Phantom:Why did you bring\n the boy?\pYou know we shouldn't lead childr...
#org @scold
= Giovanni:Shut up.\nYou despicable rat.\pI'd rather listen to this child\nthan your pathetic squeaking.\pLeave us now...
#org @yes
= Yes my liege.
#org @leave1
#raw 0x10 0xfe
#org @lucky
= Count yourself lucky boy.\nI plan to collect from you soon...\pNow out of my way!
#org @move2
#raw 0x12 0xfe
#org @leave2
#raw 0x10 0x10 0x10 0x10 0x12 0x12 0x10 0x10 0x10 0xfe
#org @down
#raw 0x00 0xfe
#org @mission
= Giovanni:You! My friend.\nHow long has it been?\p..................\n37 years of being frozen.\pI see.\nThat your boy there?
#org @soon
= Father:Yes my liege.\nHe is my son.\pHe is ten right now.\nWhen he is thirteen he will be\penrolled in the Team Academy.
#org @mission2
= Giovanni:Very good.\nHe will be a fine member.\pPerhaps he will join me,\njoin me at boss rank.\pbut enough of this.\nIt is time that we set\pup our bases in kanto.\nI want you to start setting them up.\pWe have one up,\n you are to go there,\pcheck in, then start on\nyour journey to set up bases.
#org @butson
= Father:I'd be honored.\nI have but one concerned.\pMy son he cannot travel w...
#org @sorry
= Giovanni:Stop there.\nI know your thoughts.\pThe boy I assume?\nYes\pI was the same with my boy\nbut I let him fall to his mother's\pwill, she corrupted his mind.\nThe boy has no mother?\pThen its settled he will\nstay with me.
#org @thank
= Father:Thank you my liege.\nI'm sure this is a most\pgrateful gift you have given\nI will repay with leaving\pto kanto now.
#org @look
#raw 0x00 0xfe
#org @goodbye
= Father:I will miss you boy.\nPlease respect our founder.\pThis is a... surpise.\nI will see you again.\pSee you again.
#org @gone
#raw 0x13 0x10 0x10 0x10 0x10 0x10 0x12 0x12 0x10 0x10 0xfe
#org @goingup
#raw 0x11 0xfe
#org @home
= Giovanni: It is time\n for you to leave and go\p home.\nI will send someone to take\pcare of you.\nNow go home and get your\prest.\nWe will no longer speak.
Game: Pokemon Fire Red
Type: Person Event (givepokemon)
Editor: XSE
Script
Spoiler:#dynamic 0x800000
#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x97 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @1
= Hello.\n[Player].\nI can't take care\nHere's a Zangoose...\pIt's my Newest\nPokemon.
#org @2
= That's okay.\pI'm sure your sister will\ntake it...
#org @3
= [black_fr]You received a Zangoose!
#org @4
= [black_fr]Would you like to give a\nnickname to Zangoose?
#org @5
= Please take care of\nZangoose.
#org @6
= Are you taking good care\nof Zangoose?
what'd i do wrong? it just freezes when i click the guy
IIRC, gosub doesn't exist in XSE.
Wrong. It does exists, actually.
Well, I couldn't find it in Command Help, so that's what I assumed.
I posted this script and destinyjagold answered me with an Incomprehensible answer so here this script again:
Spoiler:
'---------------
#org 0x169ECA
setvar 0x8004 0xF
setvar 0x8005 0x2
special 0x174
trainerbattle 0x1 0x3 0x0 0x818F352 0x818F43F 0x8169F04
checkflag 0x298
if 0x0 goto 0x8169F2F
msgbox 0x818F4A2 MSG_KEEPOPEN '"Rico:I'm Giovanni's brother,I'm th..."
closeonkeypress
fadescreen 0x1
hidesprite 0x8
fadescreen 0x0
release
end
'---------------
#org 0x169F04
setvar 0x8004 0xF
setvar 0x8005 0x3
special 0x173
setflag 0xAD
setflag 0x4B7
setflag 0x827
setvar 0x4054 0x3
setvar 0x8008 0x8
call 0x81A6B18
goto 0x8169F2F
'---------------
#org 0x169F2F
msgbox 0x818F586 MSG_KEEPOPEN '"This is not the last time\nyou'll ..."
checkitemroom 0x13A 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x8169F70
additem 0x13A 0x1
loadpointer 0x0 0x818F675 '"[player] received TM26 from RICO."
giveitem2 0x13A 0x1 0x101
setflag 0x298
msgbox 0x818F695 MSG_KEEPOPEN '"TM26 cotains EARTHQUAKE,I use this..."
release
end
'---------------
#org 0x1A6B18
copyvar 0x8000 0x8008
compare 0x8000 0x1
if 0x1 goto 0x81A6B76
compare 0x8000 0x2
if 0x1 goto 0x81A6B7A
compare 0x8000 0x3
if 0x1 goto 0x81A6B81
compare 0x8000 0x4
if 0x1 goto 0x81A6B8B
compare 0x8000 0x5
if 0x1 goto 0x81A6BA1
compare 0x8000 0x6
if 0x1 goto 0x81A6BB4
compare 0x8000 0x7
if 0x1 goto 0x81A6BCA
compare 0x8000 0x8
if 0x1 goto 0x81A6BE0
end
'---------------
#org 0x169F70
msgbox 0x818F71B MSG_KEEPOPEN '"You do not have space for this!"
release
end
'---------------
#org 0x1A6B76
cleartrainerflag 0x129
return
'---------------
#org 0x1A6B7A
cleartrainerflag 0x142
cleartrainerflag 0x190
return
'---------------
#org 0x1A6B81
cleartrainerflag 0x188
cleartrainerflag 0x144
cleartrainerflag 0x191
return
'---------------
#org 0x1A6B8B
cleartrainerflag 0x128
cleartrainerflag 0x143
cleartrainerflag 0x66
cleartrainerflag 0x67
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
return
'---------------
#org 0x1A6BA1
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
return
'---------------
#org 0x1A6BB4
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
return
'---------------
#org 0x1A6BCA
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
return
'---------------
#org 0x1A6BE0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
cleartrainerflag 0x0
return
'---------
' Strings
'---------
#org 0x18F352
= Rico:So you're here,you've managed\nto beat all of my mobs,but\pbeat me?,IMPOSSIBLE!
#org 0x18F43F
= WHAT??????
#org 0x18F4A2
= Rico:I'm Giovanni's brother,I'm the\nleader of team rocket now!
#org 0x18F586
= This is not the last time\nyou'll see me MUHAHAHAA!
#org 0x18F675
= [player] received TM26 from RICO.
#org 0x18F695
= TM26 cotains EARTHQUAKE,I use this\nto crash all of my enemies!
#org 0x18F71B
= You do not have space for this!
everything works good but I want that some trainers will dissaper and only rico dissapers what to do?
also I need help with this script:
Spoiler:
'---------------
#org 0x80028B
#dynamic 0x80028B
lock
faceplayer
checkflag 0x820
if 0x1 goto @done
msgbox @2 0x6
trainerbattle 0x1 0x001 0x0 @before @after @later
end
#org @before
= #org @after
= #org @later
msgbox @3 0x6
fanfare 0x13E
release
end
#org @done
msgbox @1 0x6
release
end
#org @1
= We know that you're going to the\nORANGE ISLANDS,expect to see us there MUHAHAHA
#org @2
= Jesse:Oh not that bastard again,go away!\nJames:This time we gonna beat you\pfor sure!,lets do this!
#org @3
= You're a chater!
This is a jesse james script I want to have a special music here and also I want them both to dissaper can I get a help with those 2 scripts so I can finally continue my hack?