Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub > Beginner’s Lounge
Reload this Page Script Help Thread (DO NOT REQUEST SCRIPTS)

Notices
For all updates, view the main page.

Beginner’s Lounge Where all good (and bad) ideas start. This is the Beginner’s Lounge, where if you need a helping hand or want to develop your small ideas, you bring it here. We won't bite.



Closed Thread
 
Thread Tools
  #1476    
Old June 21st, 2009 (09:12 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
Crystal Tier
 
Join Date: Jun 2006
Posts: 1,314
Quote originally posted by yuuichi:
Hack of Ruby
XSE 1.1.1

i dont know whats going one it wont even show a text box when i press a

Spoiler:
#Dynamic 0x734287

#org @start
lock
faceplayer
checkflag 0x8D3
if 0x0 goto @give
if 0x1 goto @sry
release
end

#org @give
givepokemon 0x84 0x10 0x16 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
setflag 0x800
setflag 0x801
setflag 0x802
setflag 0x8D3
= Flara:This is the eevee my espeon just hatched \p it should help through the castle for now
release
end

#org @sry
= Flara:I can't give you anymore.
end
You script is totally screwed up. See the one below:

Spoiler:
#dynamic 0x734287

#org @start
lock
faceplayer
checkflag 0x8D3
if 0x1 goto @sry
givepokemon 0x84 0x10 0x16 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
msgbox @this 0x6
setflag 0x800
setflag 0x801
setflag 0x802
setflag 0x8D3
release
end

#org @sry
msgbox @cant 0x6
release
end

#org @this
= Flara:This is the eevee my espeon just hatched \p it should help through the castle for now

#org @cant
= Flara:I can't give you anymore.
__________________
  #1477    
Old June 21st, 2009 (01:48 PM).
Toon Link's Avatar
Toon Link Toon Link is offline
POKEMON TRAINER
 
Join Date: May 2009
Posts: 25
Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x1000
applymovement 0x4 @move
trainerbattle 0x1 0x2DC 0x0 @before @after (@later)
applymovement 0x4 @move2
This script won't compile in XSE
setflag 0x1000
release
end
#org @move
#raw 0x09
#raw 0xFE
#org @before
= I'm a new trainer!
#org @after
= Wow!\nYou're good!
#org @later
= I want a Pichu!
#org @move2
#raw 0x09
#raw 0xFE

This script doesn't complie in XSE
  #1478    
Old June 21st, 2009 (01:52 PM).
Samike360's Avatar
Samike360 Samike360 is offline
Lover of May
 
Join Date: Mar 2009
Location: ATL
Gender:
Nature: Bold
Posts: 397
^Add this after "checkflag 0x1000": if 0x1 goto @done

And then:

#org @done
release
end

You need a goto script after checkflags.
__________________





Please warm my eggs...I'll be sure to return the favor

From now one, if you haven't contacted me yet....I will not accept hacks unless they are at least in progressing hacks. So if you want my help, get some screenshots first.
  #1479    
Old June 21st, 2009 (02:28 PM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
Crystal Tier
 
Join Date: Jun 2006
Posts: 1,314
Quote originally posted by Toon Link:
Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x1000
applymovement 0x4 @move
trainerbattle 0x1 0x2DC 0x0 @before @after (@later)
applymovement 0x4 @move2
This script won't compile in XSE
setflag 0x1000
release
end
#org @move
#raw 0x09
#raw 0xFE
#org @before
= I'm a new trainer!
#org @after
= Wow!\nYou're good!
#org @later
= I want a Pichu!
#org @move2
#raw 0x09
#raw 0xFE

This script doesn't complie in XSE
Oh, my... of course it doesn't compile... did you even check the script to understand why? See the fixed one below carefully.

Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x1000
if 0x1 goto @later
applymovement 0x4 @move
waitmovement 0x0
setflag 0x1000
trainerbattle 0x1 0x2DC 0x0 @before @after @later
release
end

#org @later
msgbox @want 0x6
applymovement 0x4 @move2
waitmovement 0x0
release
end

#org @move
#raw 0x09
#raw 0xFE

#org @move2
#raw 0x09
#raw 0xFE

#org @before
= I'm a new trainer!

#org @after
= Wow!\nYou're good!

#org @want
= I want a Pichu!
__________________
  #1480    
Old June 21st, 2009 (08:51 PM).
ExitWound's Avatar
ExitWound ExitWound is offline
Boggle
 
Join Date: Aug 2007
Age: 23
Posts: 72
Quote originally posted by Pokepal17:
I think you got mixed up between hex and decimal. 0x??? means it's hex. So 25 in hex is 19. Changes in script.
No, I did not get mixed up because the number is 37, which is 25 in hex. Any other suggestions?
__________________

+====================Supports====================+


+====================Supports====================+
  #1481    
Old June 21st, 2009 (09:21 PM).
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL 0m3GA ARS3NAL is offline
Im comin' home...
Silver Tier
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Posts: 1,816
Quote originally posted by ExitWound:
I'm still having problems with my script... It stops running after the battle like it was doing before.

Spoiler:
#dynamic 0x802D48

#org @start
message @alert 6
applymovement 0x25 @approach
waitmovement 0x0
message @battle 6
trainerbattle 0x9 0x01D 0x1 @before @won @after
end

#org @after
lock
//insert faceplayer here if necessary.
message @after 6
applymovement 0x25 @leave
waitmovement 0x0
release
end

#org @approach
#raw 0x08 0x08 0x08 0x08 0x08 0xFE

#org @leave
#raw 0x0B 0x08 0x08 0x08 0x08 0x08 0x08 0x54 0xFE

#org @alert
= You!

#org @battle
= You're \v\h01 right?\p...

#org @before
= Battle me!

#org @won
= ...

#org @after
= Damn it...\lSo the rumors were true.\pWe'll soon battle again.\lBe ready!

#org @nevermind
release
end
Changes in quote. (also, you can write all movements on one line, using only one raw... like in the quote...
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #1482    
Old June 22nd, 2009 (04:23 AM).
Toon Link's Avatar
Toon Link Toon Link is offline
POKEMON TRAINER
 
Join Date: May 2009
Posts: 25
Quote originally posted by HackMew:
Oh, my... of course it doesn't compile... did you even check the script to understand why? See the fixed one below carefully.

Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x1000
if 0x1 goto @later
applymovement 0x4 @move
waitmovement 0x0
setflag 0x1000
trainerbattle 0x1 0x2DC 0x0 @before @after @later
release
end

#org @later
msgbox @want 0x6
applymovement 0x4 @move2
waitmovement 0x0
release
end

#org @move
#raw 0x09
#raw 0xFE

#org @move2
#raw 0x09
#raw 0xFE

#org @before
= I'm a new trainer!

#org @after
= Wow!\nYou're good!

#org @want
= I want a Pichu!
The battle works perfectly but the person doesn't move at all.
  #1483    
Old June 22nd, 2009 (06:02 AM).
LaccyO's Avatar
LaccyO LaccyO is offline
Sspriterr
 
Join Date: Mar 2009
Gender: Male
Nature: Adamant
Posts: 9
problem: XSE says that there is something wrong with the script when i chose compile, but what?

Game: fire red
Script Type: person script

Script:

Spoiler:
#Dynamic 0x71A37C

#org @start
checkflag 0x82F
if 0x0 goto @hey!
if 0x1 goto @end
end

#org @hey!
lock
applymovement 0x10 @back
waitmovement 0x0
msgbox @are
boxset 0x6
trainerbattle 0 1BB
msgbox @run
boxset 0x6
release
end

#org @back
#raw 0x02
#raw 0x62
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE

#org @are
= Are you a trainer?/nI thought so!/pMy name is Agatha./nI'm from the elite four!/pDo you want to battle/nfor a badge?/pWhat?..../nYou already won this badge?/pOk! But should we battle/nanyway?

#org @run
= You are good skilled!/nI will give you this!/pObtained the running shoes!
setflag 0x82F

#org @end
release
end
  #1484    
Old June 22nd, 2009 (06:10 AM).
NewbiePKMNHCKR NewbiePKMNHCKR is offline
 
Join Date: Jun 2009
Gender: Male
Posts: 3
I have a gigantic problem whit poketronic, and that is that i can´t use my pokemon rom on it.
  #1485    
Old June 22nd, 2009 (07:46 AM).
Quickster's Avatar
Quickster Quickster is offline
Dream or Drop?
 
Join Date: Oct 2007
Gender: Male
Nature: Quiet
Posts: 350
Quote originally posted by Quickster:
Has anyone made a script to nickname a pokemon that you just recieved but when you choose yes,it doesnt nickname the right pokemon,for instance,an egg sprite might appear?How do you fix this,ill post my script too.

Spoiler:
#dynamic 0x8038DC

#org @start
checkflag 0x1022
if 0x1 goto @done
special2 LASTRESULT 0xE6
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto @no
compare 0x8000 0x1
if 0x1 goto @no
compare 0x8000 0x2
if 0x1 goto @no
compare 0x8000 0x3
if 0x1 goto @yes
compare 0x8000 0x4
if 0x1 goto @yes
compare 0x8000 0x5
if 0x1 goto @yes
compare 0x8000 0x6
if 0x1 goto @yes
release
end

#org @no
msgbox @1 0x2
release
end

#org @yes
msgbox @2 0x5
compare LASTRESULT 0x1
if 0x1 goto @receive
msgbox @3 0x2
release
end

#org @receive
givepokemon 0x5 0x10 0x0 0x0 0x0 0x0
hidesprite 0x2
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
setflag 0x1022
msgbox @5 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @6 0x2
release
end

#org @name
call 0x1A74EB
return

#org @done
msgbox @7 0x2
release
end

#org @1
= I take care if injured POKeMON.\pI nursed this BULBASAUR back to\nhealth.\pIt needs a good trainer to take\ncare of it now.

#org @2
= I take care of injured POKeMON.\pI nursed this BULBASAUR back to\nhealth.\pIt needs a good trainer to take\ncare of it now.\pI know! Would you take care of\nthis BULBASAUR?

#org @3
= Oh...\nThat's too bad...

#org @4
= [black_fr]\v\h01 recieved BULBASAUR.

#org @5
= [black_fr]Would you like to give a nickname\nto BULBASAUR?

#org @6
= Please take care of BULBASAUR!

#org @7
= Is BULBASAUR doing well?
My question got bumped back a page.Everything works fine exceprt the nickname.I shows an egg and doesnt nickname bulbasaur.Any ideas?
__________________
I laugh looking at this.

But sometimes I want to come back to it...

  #1486    
Old June 22nd, 2009 (08:08 AM).
diegoisawesome's Avatar
diegoisawesome diegoisawesome is offline
Please understand
Silver Tier
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 18
Gender: Male
Nature: Quirky
Posts: 974
Quote originally posted by Quickster:
Spoiler:
#dynamic 0x8038DC

#org @start
checkflag 0x1022
if 0x1 goto @done
special2 LASTRESULT 0xE6
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto @no
compare 0x8000 0x1
if 0x1 goto @no
compare 0x8000 0x2
if 0x1 goto @no
compare 0x8000 0x3
if 0x1 goto @yes
compare 0x8000 0x4
if 0x1 goto @yes
compare 0x8000 0x5
if 0x1 goto @yes
compare 0x8000 0x6
if 0x1 goto @yes
release
end

#org @no
msgbox @1 0x2
release
end

#org @yes
ountpokemon
compare 0x800D 0x6
if 0x1 goto @toomany
msgbox @2 0x5
compare LASTRESULT 0x1
if 0x1 goto @receive
msgbox @3 0x2
release
end

#org @receive
givepokemon 0x5 0x10 0x0 0x0 0x0 0x0
hidesprite 0x2
fanfare 0x13E
msgbox @4 0x4
waitfanfare
closeonkeypress
setflag 0x1022
msgbox @5 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @6 0x2
release
end

#org @name
countpokemon
subvar 0x800D 0x1
copyvar 0x8004 0x800D
fadescreen 0x1
special 0x166
waitstate
return

#org @done
msgbox @7 0x2
release
end

#org @toomany
msgbox @8 0x6
release
end

#org @1
= I take care if injured POKeMON.\pI nursed this BULBASAUR back to\nhealth.\pIt needs a good trainer to take\ncare of it now.

#org @2
= I take care of injured POKeMON.\pI nursed this BULBASAUR back to\nhealth.\pIt needs a good trainer to take\ncare of it now.\pI know! Would you take care of\nthis BULBASAUR?

#org @3
= Oh...\nThat's too bad...

#org @4
= [black_fr]\v\h01 recieved BULBASAUR.

#org @5
= [black_fr]Would you like to give a nickname\nto BULBASAUR?

#org @6
= Please take care of BULBASAUR!

#org @7
= Is BULBASAUR doing well?


#org @8
= Your party is full.\nPlease deposit one to\nmake room.
My question got bumped back a page.Everything works fine exceprt the nickname.I shows an egg and doesnt nickname bulbasaur.Any ideas?
Try that out and see if it helps.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Diego's Miscellaneous Patches
GBA Intro Manager
  #1487    
Old June 22nd, 2009 (08:11 AM).
NewbiePKMNHCKR NewbiePKMNHCKR is offline
 
Join Date: Jun 2009
Gender: Male
Posts: 3
Scratch my problem, i fixed it.
  #1488    
Old June 22nd, 2009 (08:14 AM).
Larsie13 Larsie13 is offline
Gone
Crystal Tier
 
Join Date: Oct 2006
Location: The Netherlands
Age: 24
Nature: Modest
Posts: 159
Quote originally posted by LaccyO:
problem: XSE says that there is something wrong with the script when i chose compile, but what?

Game: fire red
Script Type: person script

Script:

Spoiler:
#Dynamic 0x71A37C

#org @start
checkflag 0x82F
if 0x0 goto @hey!
goto @end 'Two compares in a row don't work.
end

#org @hey!
lock
applymovement 0x10 @back
waitmovement 0x0
msgbox @are 'If you use the latest XSE, this should be 'msgbox @are 0x6', and you should remove the 'boxset 0x6' line below.
boxset 0x6
trainerbattle 0 0x1BB 'Without the 0x, you'll have decimal. And decimal doesn't know the "B" character. That's probably the error.
msgbox @run 'Same as above, only if you're using XSE's latest version.
boxset 0x6
release
end

#org @back
#raw 0x02
#raw 0x62
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE

#org @are
= Are you a trainer?/nI thought so!/pMy name is Agatha./nI'm from the elite four!/pDo you want to battle/nfor a badge?/pWhat?..../nYou already won this badge?/pOk! But should we battle/nanyway?

#org @run
= You are good skilled!/nI will give you this!/pObtained the running shoes!
setflag 0x82F

#org @end
release
end
If you are using the latest XSE, you have to make 4 changes. Otherwise just 2.
  #1489    
Old June 22nd, 2009 (08:50 AM).
Quickster's Avatar
Quickster Quickster is offline
Dream or Drop?
 
Join Date: Oct 2007
Gender: Male
Nature: Quiet
Posts: 350
Quote originally posted by diegoisawesome:
Try that out and see if it helps.
It didnt work,now its showing a ?? now with the name ???????.
__________________
I laugh looking at this.

But sometimes I want to come back to it...

  #1490    
Old June 22nd, 2009 (11:50 AM).
ExitWound's Avatar
ExitWound ExitWound is offline
Boggle
 
Join Date: Aug 2007
Age: 23
Posts: 72
Quote originally posted by 0m3GA ARS3NAL:
Changes in quote. (also, you can write all movements on one line, using only one raw... like in the quote...
Wow... The script still doesn't finish after the battle.
__________________

+====================Supports====================+


+====================Supports====================+
  #1491    
Old June 22nd, 2009 (01:15 PM).
theswordbuggy's Avatar
theswordbuggy theswordbuggy is offline
Rom Hacker
 
Join Date: May 2009
Location: Australia, Queensland
Gender: Male
Posts: 21
i am requesting. i am just asking because i am looking for a item script that gives you a item and talks before and after. and it cant have boxset in it they dnt work. this is for pokemon emerald and xse.

Thanks
Buggy
  #1492    
Old June 22nd, 2009 (04:05 PM).
Xatoku's Avatar
Xatoku Xatoku is offline
Game Developer
 
Join Date: Feb 2009
Location: Canada
Gender: Male
Posts: 451
My problem is that in this yesno script, even if the player choses yes, it still goes to no, and won't go to @yes. Heres the script.

Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x373
if 0x1 goto @end
msgbox @yesno MSG_YESNO
closeonkeypress
compare LASTRESULT B_YES
if B_== goto @yes
msgbox @text1 0x6
release
end

#org @end
release
end

#org @yesno
= There's a berry here!\pWould you like to pick it?

#org @yes
lock
giveitem 0x8B 0x3 MSG_OBTAIN
waitmsg
hidesprite 0x3
setflag 0x373
releaseall
end

#org @text1
= The berry was left on the tree.
  #1493    
Old June 23rd, 2009 (06:07 AM).
Sky the Shaym's Avatar
Sky the Shaym Sky the Shaym is offline
Sky the Shaymin, NOT Shaym
 
Join Date: Jun 2009
Gender: Male
Nature: Modest
Posts: 12
Send a message via AIM to Sky the Shaym
I made this script, but it says i'm missing something... Can someone help?


RUBY
TRIGGER
XSE

Spoiler:

#dynamic 0x80005B
#org @start
checkflag 0x829
if 0x0 goto @pokemon
end
#org @pokemon
applymovement 0x6 @move
waitmovement 0x0
msgbox @fuu 0x6
fanfare 0x13E
msgbox @pok 0x4
givepokemon 0x286 0x10 0x0 0x0 0x0 0x0
waitfanfare
closeonkeypress
msgbox @nomnu 0x6
applymovement 0x6 @move2
setflag 0x829
release
end
#org @move
#raw 0xright 0xright 0xright 0xright 0xFE
#org @move2
#raw 0xleft 0xleft 0xleft 0xleft 0xFE
#org @fuu
= Hey! Your the new guy, right?\p Well, since you joined TEAM AQUA\n you need this.
#org @pok
= [player] recived a POKeMON!
#org @nomnu
= Don't forget to check out the AQUA\p CENTER and your dorm... Meet me in the gengerator room for\n your first mission.
__________________
Just help me hatch my eggs... http://gpxplus.net/user/Sky+the+Shaymin
  #1494    
Old June 23rd, 2009 (07:09 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is offline
Team Rocket Grunt would like to battle!
ModeratorCS
 
Join Date: Nov 2007
Location: Leicester, UK
Posts: 3,684
Quote originally posted by Sky the Shaym:
I made this script, but it says i'm missing something... Can someone help?


RUBY
TRIGGER
XSE

Spoiler:

#dynamic 0x80005B
#org @start
checkflag 0x829
if 0x0 goto @pokemon
end
#org @pokemon
applymovement 0x6 @move
waitmovement 0x0
msgbox @fuu 0x6
fanfare 0x13E
msgbox @pok 0x4
givepokemon 0x286 0x10 0x0 0x0 0x0 0x0
waitfanfare
closeonkeypress
msgbox @nomnu 0x6
applymovement 0x6 @move2
setflag 0x829
release
end
#org @move
#raw 0xright 0xright 0xright 0xright 0xFE
#org @move2
#raw 0xleft 0xleft 0xleft 0xleft 0xFE
#org @fuu
= Hey! Your the new guy, right?\p Well, since you joined TEAM AQUA\n you need this.
#org @pok
= [player] recived a POKeMON!
#org @nomnu
= Don't forget to check out the AQUA\p CENTER and your dorm... Meet me in the gengerator room for\n your first mission.
Aren't you missing a waitmovement 0x0 above the setflag 0x829? Oh, and you don't need spaces after \n, \p or \l.
__________________

"Develop amnesia conveniently and forget everything you've heard!"
spheal clicker | rom hacking | pokémon gaia
staff antagonists collab 2015
  #1495    
Old June 23rd, 2009 (07:19 AM).
Sky the Shaym's Avatar
Sky the Shaym Sky the Shaym is offline
Sky the Shaymin, NOT Shaym
 
Join Date: Jun 2009
Gender: Male
Nature: Modest
Posts: 12
Send a message via AIM to Sky the Shaym
Quote originally posted by Spherical Ice:
Aren't you missing a waitmovement 0x0 above the setflag 0x829? Oh, and you don't need spaces after \n, \p or \l.
Thanks, but it says i need a define or parameter for the line with the movements, the #raw then all the movements.
__________________
Just help me hatch my eggs... http://gpxplus.net/user/Sky+the+Shaymin
  #1496    
Old June 23rd, 2009 (08:05 AM). Edited June 23rd, 2009 by NatureKeeper.
NatureKeeper NatureKeeper is offline
No longer active here.
 
Join Date: Jun 2008
Location: Somewhere.
Age: 17
Gender: Male
Nature: Hasty
Posts: 1,234
Send a message via Windows Live Messenger to NatureKeeper Send a message via Skype™ to NatureKeeper
Quote originally posted by Xatoku:
My problem is that in this yesno script, even if the player choses yes, it still goes to no, and won't go to @yes. Heres the script.

Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x373
if 0x1 goto @end
msgbox @yesno MSG_YESNO
closeonkeypress
compare LASTRESULT B_YES
if B_== goto @yes
msgbox @text1 0x6
release
end

#org @end
release
end

#org @yesno
= There's a berry here!\pWould you like to pick it?

#org @yes
lock
giveitem 0x8B 0x3 MSG_OBTAIN
waitmsg
hidesprite 0x3
setflag 0x373
releaseall
end

#org @text1
= The berry was left on the tree.
Code:
#org @start
checkflag 0x373
if 0x1 goto @end
msgbox @yesno 0x5
compare LASTRESULT 0x1
if 0x1 goto @yes
msgbox @text1 0x6
release
end

#org @end
release
end

#org @yes
lock
giveitem 0x8B 0x3 MSG_OBTAIN
waitmsg
hidesprite 0x3
setflag 0x373
releaseall
end

#org @yesno
= There's a berry here!\pWould you like to pick it?

#org @text1
= The berry was left on the tree.


I corrected some stuff. Inform me if it works, now.

Quote originally posted by Sky the Shaym:
I made this script, but it says i'm missing something... Can someone help?


RUBY
TRIGGER
XSE

Spoiler:

#dynamic 0x80005B
#org @start
checkflag 0x829
if 0x0 goto @pokemon
end
#org @pokemon
applymovement 0x6 @move
waitmovement 0x0
msgbox @fuu 0x6
fanfare 0x13E
msgbox @pok 0x4
givepokemon 0x286 0x10 0x0 0x0 0x0 0x0
waitfanfare
closeonkeypress
msgbox @nomnu 0x6
applymovement 0x6 @move2
waitmovement 0x0
setflag 0x829
release
end
#org @move
#raw 0xright 0xright 0xright 0xright 0xFE
#org @move2
#raw 0xleft 0xleft 0xleft 0xleft 0xFE
#org @fuu
= Hey! Your the new guy, right?\p Well, since you joined TEAM AQUA\n you need this.
#org @pok
= [player] recived a POKeMON!
#org @nomnu
= Don't forget to check out the AQUA\p CENTER and your dorm... Meet me in the gengerator room for\n your first mission.
Code:
#dynamic 0x80005B
#org @start
checkflag 0x829
if 0x0 goto @pokemon
end

#org @pokemon
applymovement 0x6 @move
waitmovement 0x0
msgbox @fuu 0x6
fanfare 0x13E
msgbox @pok 0x4
givepokemon 0x286 0x10 0x0 0x0 0x0 0x0
waitfanfare
closeonkeypress
msgbox @nomnu 0x6
applymovement 0x6 @move2
setflag 0x829
release
end

#org @move
#raw 0x07
#raw 0x07 
#raw 0x07 
#raw 0x07 
#raw 0xFE

#org @move2
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0xFE

#org @fuu
= Hey! Your the new guy, right?\pWell, since you joined TEAM AQUA\nyou need this.

#org @pok
= [player] recived a POKéMON!

#org @nomnu
= Don't forget to check out the AQUA\nCENTER and your dorm... Meet me in the gengerator room for\nyour first mission.
Corrected some stuff here, too.
  #1497    
Old June 23rd, 2009 (08:20 AM).
Xatoku's Avatar
Xatoku Xatoku is offline
Game Developer
 
Join Date: Feb 2009
Location: Canada
Gender: Male
Posts: 451
Quote originally posted by NatureKeeper:
Code:
#org @start
checkflag 0x373
if 0x1 goto @end
msgbox @yesno 0x5
compare LASTRESULT 0x1
if 0x1 goto @yes
msgbox @text1 0x6
release
end

#org @end
release
end

#org @yes
lock
giveitem 0x8B 0x3 MSG_OBTAIN
waitmsg
hidesprite 0x3
setflag 0x373
releaseall
end

#org @yesno
= There's a berry here!\pWould you like to pick it?

#org @text1
= The berry was left on the tree.
I corrected some stuff. Inform me if it works, now.
Well everything worked but now after the tree dissapears, if you take 1 step it will reappear. How can I make it dissapear indefinitley?
  #1498    
Old June 23rd, 2009 (08:27 AM).
NatureKeeper NatureKeeper is offline
No longer active here.
 
Join Date: Jun 2008
Location: Somewhere.
Age: 17
Gender: Male
Nature: Hasty
Posts: 1,234
Send a message via Windows Live Messenger to NatureKeeper Send a message via Skype™ to NatureKeeper
Try this: hidesprite LASTTALKED instead of hide sprite 0x373
  #1499    
Old June 23rd, 2009 (08:33 AM).
Xatoku's Avatar
Xatoku Xatoku is offline
Game Developer
 
Join Date: Feb 2009
Location: Canada
Gender: Male
Posts: 451
I figured it out, I had unkown set at 03 and Movement set to 11 but once they were both put at 0, they worked.
  #1500    
Old June 23rd, 2009 (09:01 AM).
Sky the Shaym's Avatar
Sky the Shaym Sky the Shaym is offline
Sky the Shaymin, NOT Shaym
 
Join Date: Jun 2009
Gender: Male
Nature: Modest
Posts: 12
Send a message via AIM to Sky the Shaym
Quote originally posted by NatureKeeper:
Code:
#org @start
checkflag 0x373
if 0x1 goto @end
msgbox @yesno 0x5
compare LASTRESULT 0x1
if 0x1 goto @yes
msgbox @text1 0x6
release
end

#org @end
release
end

#org @yes
lock
giveitem 0x8B 0x3 MSG_OBTAIN
waitmsg
hidesprite 0x3
setflag 0x373
releaseall
end

#org @yesno
= There's a berry here!\pWould you like to pick it?

#org @text1
= The berry was left on the tree.


I corrected some stuff. Inform me if it works, now.



Code:
#dynamic 0x80005B
#org @start
checkflag 0x829
if 0x0 goto @pokemon
end

#org @pokemon
applymovement 0x6 @move
waitmovement 0x0
msgbox @fuu 0x6
fanfare 0x13E
msgbox @pok 0x4
givepokemon 0x286 0x10 0x0 0x0 0x0 0x0
waitfanfare
closeonkeypress
msgbox @nomnu 0x6
applymovement 0x6 @move2
setflag 0x829
release
end

#org @move
#raw 0x07
#raw 0x07 
#raw 0x07 
#raw 0x07 
#raw 0xFE

#org @move2
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0x04
#raw 0xFE

#org @fuu
= Hey! Your the new guy, right?\pWell, since you joined TEAM AQUA\nyou need this.

#org @pok
= [player] recived a POKéMON!

#org @nomnu
= Don't forget to check out the AQUA\nCENTER and your dorm... Meet me in the gengerator room for\nyour first mission.
Corrected some stuff here, too.
Thanks, but whenever i paste it into XSE and compile, i close XSE, then reopen the script, and all that's there is:'-----------------------
#org 0x80005B
checkflag 0x829
__________________
Just help me hatch my eggs... http://gpxplus.net/user/Sky+the+Shaymin
Closed Thread
Quick Reply

Sponsored Links

You may also like.. (Beta)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 12:17 PM.