View Single Post
  #7247    
Old August 22nd, 2012 (10:43 PM). Edited August 23rd, 2012 by iLoveHate.
iLoveHate's Avatar
iLoveHate iLoveHate is offline
Hmmmmmm.... :D
 
Join Date: Aug 2012
Location: Holland :D
Gender: Male
Nature: Modest
Posts: 35
Send a message via Skype™ to iLoveHate
Quote:
Yay, I failed at a basic script again This time I tried following a youtube tut (Hack Tutorials: Script Lesson One). I followed the tutorial exactly using Pokescript (I know its outdated, but i've been having no more luck with XSE, so I'm willing to try anything. Instead of getting a message box that says hello, I'm getting a choice between "buy" or "quit", neither of which I can select, and I can't back away either. Does anyone know what I'm doing wrong? I'm fairly sure it isn't my rom, I downloaded a new one to try this on.

Notepad Code

Spoiler:

#org $script
lock
faceplayer
message $talk
$talk 1 = Hello.
boxset 6
release
end
NinjaLizzard i read you are using pokescript cuz you dont have more luck with XSE, but i can tell you this: downloads XSE 1.1.1 and look for any helpin the Diegoisawesome mega-huge xse tutorial, im kinda beginner but that tutorial helped me a lot. then the script would be:
Spoiler:

#dynamic 0x800000

#org @script
lock
faceplayer
msgbox @talk 0x6
release
end

#org @talk
= Haia


isnt this easier, the 0x6 is the same as boxset 6. it is al explained in the tutorial. if you sdont know how to get xse 1.1.1 pm me oki? REally XSE is far more easier

Can some1 help me?
My problem: Over and over again battling with a Weedle.
Its like this: You start, walk somewhere and then you have to rescue prof oak by killing the weedle. he says thank you and its done. but it can also happen if you you fail against the weedle. then you go back to you mommy and go to prof oak again over and over again until you defeat that weedle. my problem is when i killed the weedle and walk over the tile again its okej, no worries. But when i walk in house and go out again and walk over the tile again it starts the battle again.

I hope you guys understand me. I also made a video for the problem and i put the scripts in the disription, i also will put the script here.

Video: i cant post url yet but the video link is in my Visitor message so you only have to press on my name and the link will show up i guess

Script for starter and killing weedle:
Spoiler:
#dynamic 0x800000

#org @start
setvar 0x5002 0x2
goto @script
end

#org @script
checkflag 0x5005
if 0x1 goto @done
compare 0x5002 0x0
if 0x1 goto @lefttile
compare 0x5002 0x1
if 0x1 goto @middletile
compare 0x5002 0x2
if 0x1 goto @righttile
end

#org @final
msgbox @finally 0x4
closeonkeypress
setflag 0x5006
release
end

#org @finally
= Thank you for saving me!

#org @done
release
end

#org @lefttile
applymovement 0x02 @movetotheleft
waitmovement 0x0
goto @cont
end

#org @middletile
applymovement 0x02 @movetothemiddle
waitmovement 0x0
goto @cont
end

#org @righttile
applymovement 0x02 @movetotheright
waitmovement 0x0
goto @cont
end

#org @cont
msgbox @help 0x4
closeonkeypress
setflag 0x5005
goto @choose
end

#org @help
= Help me please, a wild weedle is\nattacking me. Take one of my\lpoke


#org @choose
msgbox @3starters 0x4
closeonkeypress
goto @bulba
end

#org @3starters
= You can choose Bulbasaur,\nCharmander or Squirtle. Give it a\lname if you want and fight that\lweedle!

#org @bulba
hidepokepic
showpokepic 0x1 0x0A 0x03
msgbox @bulbasaur 0x5
compare LASTRESULT 0x1
if 0x0 goto @char
hidepokepic
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotbu 0x4
waitfanfare
closeonkeypress
msgbox @nick1 0x5
compare LASTRESULT 0x1
if 0x1 goto @callpok
setflag 0x828
goto @further
end

#org @char
hidepokepic
showpokepic 0x4 0x0A 0x03
msgbox @charmander 0x5
compare LASTRESULT 0x1
if 0x0 goto @squir
hidepokepic
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotch 0x4
waitfanfare
closeonkeypress
msgbox @nick2 0x5
compare LASTRESULT 0x1
if 0x1 goto @callpok
setflag 0x828
goto @further
end

#org @squir
hidepokepic
showpokepic 0x7 0x0A 0x03
msgbox @squirtle 0x5
compare LASTRESULT 0x1
if 0x0 goto @bulba
hidepokepic
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotsq 0x4
waitfanfare
closeonkeypress
msgbox @nick3 0x5
compare LASTRESULT 0x1
if 0x1 goto @callpok
setflag 0x828
goto @further
end

#org @further
msgbox @lol 0x4
closeonkeypress
msgbox @cry 0x6
cry 0xD 0x0
wildbattle 0xD 0x3 0x0
goto @final
end

#org @cry
= Wee-ee-eedlee

#org @lol
= Now attack that weedle!

#org @squirtle
= Your last choice is a Squirtle, do\nyou want a Squirtle?

#org @gotsq
= You received a Squirtle!

#org @nick3
= Do you want to give Squirtle a\nnickname?

#org @charmander
= Maybe the Charmander?

#org @gotch
= You received a Charmander!

#org @nick2
= Do you want to give Charmander a\nnickname?

#org @callpok
call 0x1A74EB
setflag 0x828
goto @further
end

#org @bulbasaur
= Take the Bulbasaur?

#org @gotbu
= You received a Bulbasaur!

#org @nick1
= Do you want to give Bulbasaur a\nnickname?

#org @movetotheleft
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x1D
#raw 0xFE

#org @movetothemiddle
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x1D
#raw 0xFE

#org @movetotheright
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x6
#raw 0x1F
#raw 0x1F
#raw 0x4
#raw 0x1D
#raw 0x1D
#raw 0xFE


And the script for when you didnt kill the weedle:
I think something is wrong in this one:
Spoiler:
#dynamic 0x800000

#org @start
lock
checkflag 0x5006
if 0x1 goto @end
checkflag 0x828
if 0x1 goto @battle
release
end

#org @end
release
end

#org @battle
msgbox @weedle 0x4
closeonkeypress
msgbox @cry 0x6
cry 0xD 0x0
wildbattle 0xD 0x3 0x0
goto 0x801C4A (That is @final in script 1)
end

#org @weedle
= Make it quick plz

#org @cry
= Wee-ee-edle



Thanks in advance, could you pm/vp me the solution?