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
  #1701    
Old July 15th, 2009 (11:51 AM).
BananasGoMoo's Avatar
BananasGoMoo BananasGoMoo is offline
Pokemon Electrum
 
Join Date: Dec 2008
Location: Richmond, California
Age: 23
Gender:
Nature: Lax
Posts: 149
Send a message via AIM to BananasGoMoo
Quote originally posted by ColbieCallaitPie:
haha, well I converted the code to XSE form, it compiled but I'm facing a new problem, the professor doesn't seem to give me a pokemon and the texts are broken off..

here's the new script:
Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x828
preparemsg @1
waitmsg
multichoice 0xE 0x0 0x1E 0x0
copyvar 0x8000 0x800D
compare 0x8000 0x0
if 0x1 goto @option1
compare 0x8000 0x1
if 0x1 goto @option2
compare 0x8000 0x2
if 0x1 goto @option3
compare 0x8000 0x3
if 0x1 goto @option4
compare 0x8000 0x4
if 0x1 goto @option5
compare 0x8000 0x5
if 0x1 goto @option6
compare 0x8000 0x7F
if 0x0 goto @2
end

______________________________
#org @option1
if 0x1 goto @done
msgbox @char 0x5
compare LASTRESULT 0x1
if 0x1 goto @take1
release
end

#org @take1
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @31 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @41 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @51 0x6
release
end

#org @name
call 0x1A74EB
return

#org @done
msgbox @6 0x6
release
end





#org @option2
if 0x1 goto @done
msgbox @char 0x5
compare LASTRESULT 0x1
if 0x1 goto @take2
release
end

#org @take2
givepokemon 0x158 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @32 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @42 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @52 0x6
release
end




#org @option3
if 0x1 goto @done
msgbox @char 0x5
compare LASTRESULT 0x1
if 0x1 goto @take3
release
end

#org @take3
givepokemon 0x277 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @33 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @43 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @53 0x6
release
end




#org @option4
if 0x1 goto @done
msgbox @char 0x5
compare LASTRESULT 0x1
if 0x1 goto @take4
release
end

#org @take4
givepokemon 0x133 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @34 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @44 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @54 0x6
release
end


#org @option5
if 0x1 goto @done
msgbox @char 0x5
compare LASTRESULT 0x1
if 0x1 goto @take5
release
end

#org @take5
givepokemon 0x236 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @35 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @45 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @55 0x6
release
end




#org @option6
if 0x1 goto @done
msgbox @char 0x5
compare LASTRESULT 0x1
if 0x1 goto @take6
msgbox @2 0x6
release
end

#org @take6
givepokemon 0x392 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @36 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @46 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @56 0x6
release
end









#org @1
@1 1 =Ah [playername]!\nI almost forgot you\lwere on your way to\n\c\h01\h06
LaRouuse Academy!\lI better make this quick,\pso which pokemon would you\llike to team up with?

#org @char
@char 1 =Are you sure?\lPick wisely..

#org @2
@2 1 =Didn't mean to rush you.\nThere's lots to choose from!

#org @31
@31 1 =\c\h01\h02You received a CHARMANDER!

#org @41
@41 1 =\c\h01\h02Would you like to rename CHARMANDER?

#org @51
@51 1 =Take Care of CHARMANDER.

#org @6
@6 1 =I can tell you and that Pokemon/lwill be best buds!


#org @32
@32 1 =\c\h01\h02You received a TOTODILE!

#org @42
@42 1 =\c\h01\h02Would you like to rename TOTODILE?

#org @52
@52 1 =Take Care of TOTODILE.


#org @33
@33 1 =\c\h01\h02You received a TREECKO!

#org @43
@43 1 =\c\h01\h02Would you like to rename TREECKO?

#org @53
@53 1 =Take Care of TREECKO.



#org @34
@34 1 =\c\h01\h02You received a EEVEE!

#org @44
@44 1 =\c\h01\h02Would you like to rename EEVEE?

#org @54
@54 1 =Take Care of EEVEE.



#org @35
@35 1 =\c\h01\h02You received a TYROUGE!

#org @45
@45 1 =\c\h01\h02Would you like to rename TYROUGE?

#org @55
@55 1 =Take Care of TYROUGE.



#org @36
@36 1 =\c\h01\h02You received a RALTS!

#org @46
@46 1 =\c\h01\h02Would you like to rename RALTS?

#org @56
@56 1 =Take Care of RALTS.


(note: I know 1e is the TM multichoice thing from Celadon, I'm planning to edit that)
firstly, did you insert it to an offset where there was enough free space? if not, then thats why your text is being cut off (maybe)

also, are you allowed to put a line in the middle there?

also, not sure what else is wrong, maybe someone who knows more than me can help better.
__________________
This signature has been disabled.
Images in the spoiler tags still count; remove the images in the spoiler tags -- too tall.
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
  #1702    
Old July 15th, 2009 (02:06 PM).
Blaziquaza's Avatar
Blaziquaza Blaziquaza is offline
...
 
Join Date: Jun 2009
Location: Whyalla, Australia
Gender: Male
Nature: Jolly
Posts: 781
I'm posting this again,because nobody answered.

OK,I have a problem with a script.Whenever I modify it so you can get certain Pokemon,but when you try to get get another it says what happens AFTER you get the Pokemon.What's wrong?

Game:Emerald
Type:givepokemon

Scripts:
Spoiler:
#dynamic 0x2EA1F0
#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 0x9B 0x5 0x109 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.\nSorry to trouble you.\nI can't take care\nof my Cyndaquil.\pCan you take care of\nit for me?
#org @2
= That's okay.\pI'm sure someone else will\ntake it.
#org @3
= [red_em]You received a Cyndaquil!
#org @4
= [red_em]Would you like to give a\nnickname to Cyndaquil?
#org @5
= Please take care of\nCyndaquil.
#org @6
= Are you taking good care\nof Cyndaquil?

Spoiler:
#dynamic 0x2EA1F0
#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 0x9E 0x5 0x178 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.\nSorry to trouble you.\nI can't take care\nof my Totodile.\pCan you take care of\nit for me?
#org @2
= That's okay.\pI'm sure someone else will\ntake it.
#org @3
= [red_em]You received a Totodile!
#org @4
= [red_em]Would you like to give a\nnickname to Totodile?
#org @5
= Please take care of\nTotodile.
#org @6
= Are you taking good care\nof Totodile?
__________________
Everything you say to me pushes one step closer to the edge



And I'm about to break
I need a little room to breathe...

Steam IGN: Hybrid Theory
  #1703    
Old July 15th, 2009 (04:53 PM).
justdieplz's Avatar
justdieplz justdieplz is offline
Pokemon White Enthusiast
 
Join Date: Aug 2008
Location: Kansas
Age: 20
Gender: Male
Nature: Bold
Posts: 29
REPOSTING BECAUSE OF NO ANSWER!

I Have a problem with my script that is like this.


Code:
#Dynamic 0x200

#org @main
lock
faceplayer
checkflag 0x200
if 0x1 goto @end
msgbox @msg1
boxset 6
givepokemon 0x37 0x10 0x0 0x0 0x0 0x0
msgbox @msg2
boxset 6
setflag 0x200
release
end

#org @end
msgbox @msg3
boxset 6
release
end

#org @msg1
= Here, I have\n a present for\p you. Take my pokemon.

#org @msg2
= Take good care of it,\nand everything will be fine.

#org @msg3
= How is my pokemon doing?
It should be giving me a VULPIX Lv. 10, but instead I get a GOLDUCK Lv.16.

I'm using a Fire Red rom, if that makes a difference, and if my code isn't wrong, I would love a better rom that I could use. Just send me the rom. Ty
  #1704    
Old July 15th, 2009 (04:58 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 justdieplz:
REPOSTING BECAUSE OF NO ANSWER!

I Have a problem with my script that is like this.


Code:
#Dynamic 0x200

#org @main
lock
faceplayer
checkflag 0x200
if 0x1 goto @end
msgbox @msg1
boxset 6
givepokemon 0x25 0xA 0x0 0x0 0x0 0x0
msgbox @msg2
boxset 6
setflag 0x200
release
end

#org @end
msgbox @msg3
boxset 6
release
end

#org @msg1
= Here, I have\n a present for\p you. Take my pokemon.

#org @msg2
= Take good care of it,\nand everything will be fine.

#org @msg3
= How is my pokemon doing?
It should be giving me a VULPIX Lv. 10, but instead I get a GOLDUCK Lv.16.

I'm using a Fire Red rom, if that makes a difference, and if my code isn't wrong, I would love a better rom that I could use. Just send me the rom. Ty
You need to concert from hex to dec.
Changes in quote, BOLD RED.
__________________
>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...

>
  #1705    
Old July 15th, 2009 (05:00 PM).
Doom Chaos's Avatar
Doom Chaos Doom Chaos is offline
I don't have a title
 
Join Date: Jun 2008
Location: Canada
Age: 21
Nature: Calm
Posts: 44
Quote originally posted by Fan King:
if its a level script, you need to put a setvar 0x7000 0x1 or up at the top, if its a trigger script, put a
checkflag 0x_
if 0x1 goto @end
setflag 0x_

and just put this anywhere in the script

@end
release
end
Late reply I know, but anyway.
-I raised the variable to 7000, now once I leave the lab, the same message displays over and over again and NEVER stops. The message is about the rival saying "I'll battle with my POKéMON, Smell you later".
-A level script is something that happens EVERYTIME you enter a map, right?
-What's a trigger?
-When you said add "checkflag 0x_...setflag 0x_", the _ is the same hex or the two different flags? And where do I add it in my script?
  #1706    
Old July 15th, 2009 (05:04 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 Doom Chaos:
Late reply I know, but anyway.
-I raised the variable to 7000, now once I leave the lab, the same message displays over and over again and NEVER stops. The message is about the rival saying "I'll battle with my POKéMON, Smell you later".
-A level script is something that happens EVERYTIME you enter a map, right?
-What's a trigger?
-When you said add "checkflag 0x_...setflag 0x_", the _ is the same hex or the two different flags? And where do I add it in my script?
Okay, let me see your script, I'll fix it since people seem lazy today.
__________________
>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...

>
  #1707    
Old July 15th, 2009 (05:06 PM).
justdieplz's Avatar
justdieplz justdieplz is offline
Pokemon White Enthusiast
 
Join Date: Aug 2008
Location: Kansas
Age: 20
Gender: Male
Nature: Bold
Posts: 29
Quote:
You need to concert from hex to dec.
Changes in quote, BOLD RED.
Ty Omega, but how do I go about converting?
  #1708    
Old July 15th, 2009 (05:12 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 justdieplz:
Ty Omega, but how do I go about converting?
I already fixed your script.

Since you are trying to make it give you pokemon #37, you need to turn 37 into HEX format... Open up XSE and make sure the calculator on the side of it is in DEC format.Then click 37, and then click the HEX button.

You will see the number 25.

Then just use that in XSE, by adding an 0x in front, to make 0x25.

This is the same process with EVERY hex number.

(Try to learn how to count in HEX... It will help)
__________________
>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...

>
  #1709    
Old July 15th, 2009 (05:16 PM).
Doom Chaos's Avatar
Doom Chaos Doom Chaos is offline
I don't have a title
 
Join Date: Jun 2008
Location: Canada
Age: 21
Nature: Calm
Posts: 44
Spoiler:
#dynamic 0x800000
#org @start
showsprite 0x3
lockall
faceplayer
setvar 0x7000 0x1
checkflag 0x2B
goto @snippet1
if 0x1 goto @done
setflag 0x2B
release
end
#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
setvar 0x4050 0x1
setflag 0x2C
setflag 0x4001
warp 0x4 0x3 0xFF 0x6 0xC
waitstate
#org @done
clearflag 0x2B
release
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


It was edited straight from the original OAK one, you know, when you exit Pallet Town at the beginning. Thanks for helping by the way =D
  #1710    
Old July 15th, 2009 (05:22 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 Doom Chaos:
Spoiler:
#dynamic 0x800000
#org @start
showsprite 0x3
lockall
faceplayer
setvar 0x7000 0x1
checkflag 0x2B
goto @snippet1
if 0x1 goto @done
setflag 0x2B
release
end
#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
setvar 0x4050 0x1
setflag 0x2C
setflag 0x4001
warp 0x4 0x3 0xFF 0x6 0xC
waitstate
#org @done
clearflag 0x2B
release
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


It was edited straight from the original OAK one, you know, when you exit Pallet Town at the beginning. Thanks for helping by the way =D
I want you to tell me EXACTLY what you want to happen....
__________________
>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...

>
  #1711    
Old July 15th, 2009 (05:22 PM).
justdieplz's Avatar
justdieplz justdieplz is offline
Pokemon White Enthusiast
 
Join Date: Aug 2008
Location: Kansas
Age: 20
Gender: Male
Nature: Bold
Posts: 29
Ty Omega, srry for sounding so noobish...
  #1712    
Old July 15th, 2009 (05:24 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 justdieplz:
Ty Omega, srry for sounding so noobish...
You might sound a little noobish, but you are probably new to this, keep at it, you'll get better at it, I used to be bad at HEX too.
__________________
>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...

>
  #1713    
Old July 15th, 2009 (05:26 PM).
Doom Chaos's Avatar
Doom Chaos Doom Chaos is offline
I don't have a title
 
Join Date: Jun 2008
Location: Canada
Age: 21
Nature: Calm
Posts: 44
Quote originally posted by 0m3GA ARS3NAL:
I want you to tell me EXACTLY what you want to happen....
Oooh, my bad again... Anyway, this is what is supposed to happen:
You exit the house, as soon as you are outside, OAK is here, talks to you and brings you to the lab's location (unrelated, the door won't open, but I don't really mind). Then you are in the lab and the story goes on (that's a different script I'll have to do, I probably am gonna need help again... I am having a lot of difficulties for hacking...).
  #1714    
Old July 15th, 2009 (05:32 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 Doom Chaos:
Oooh, my bad again... Anyway, this is what is supposed to happen:
You exit the house, as soon as you are outside, OAK is here, talks to you and brings you to the lab's location (unrelated, the door won't open, but I don't really mind). Then you are in the lab and the story goes on (that's a different script I'll have to do, I probably am gonna need help again... I am having a lot of difficulties for hacking...).
Well, the script is really jumbled, but I tried here... if this does not work at all, then I dunno what is going on...
__________________
>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...

>
  #1715    
Old July 15th, 2009 (05:39 PM).
Doom Chaos's Avatar
Doom Chaos Doom Chaos is offline
I don't have a title
 
Join Date: Jun 2008
Location: Canada
Age: 21
Nature: Calm
Posts: 44
Quote originally posted by 0m3GA ARS3NAL:
Well, the script is really jumbled, but I tried here... if this does not work at all, then I dunno what is going on...
Maybe I shouldn't have edited the script and I should start fresh again? And about the lab script, I
want to remove all the OAK scripts and the RIVAL one (keeping only the scientists and the POKéBALLs.
But if I want to create a script for the prof, I need to unlock the POKéBALLs (you need to talk to OAK
before taking a POKéMON, but if I delete OAK, it won't work, right?). Any tips?
  #1716    
Old July 15th, 2009 (05:48 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 Doom Chaos:
Maybe I shouldn't have edited the script and I should start fresh again? And about the lab script, I
want to remove all the OAK scripts and the RIVAL one (keeping only the scientists and the POKéBALLs.
But if I want to create a script for the prof, I need to unlock the POKéBALLs (you need to talk to OAK
before taking a POKéMON, but if I delete OAK, it won't work, right?). Any tips?
LOL, hold on a minute, I sense a disturbance...
I forgot to post the script! lol

here you go.

Code:
#dynamic 0x800000

#org @start
lock
checkflag 0x1000
if b_true goto @done
showsprite 0x3
goto @snippet1
release
end

#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
setvar 0x4050 0x1
setflag 0x2C
setflag 0x4001
setflag 0x1000
warp 0x4 0x3 0xFF 0x6 0xC
waitstate

#org @done
release
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
__________________
>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...

>
  #1717    
Old July 15th, 2009 (06:52 PM).
xchrisliax's Avatar
xchrisliax xchrisliax is offline
 
Join Date: Jul 2009
Location: 7 Cities, VA
Gender: Male
Posts: 3
Send a message via AIM to xchrisliax
fire red hack
ok so i have this script where
you choose a pokemon, then the other pokeballs are offlimits
but when i exit the map and return, the pokeball is still there
heres my script
Spoiler:

#dynamic 0x805CD7

#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 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
hidesprite 0x800F
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
= Would you like the \nfire-breathing Charmander?

#org @2
= That's okay.\pI'm sure someone else will\ntake it.

#org @3
= You received a Charmander!

#org @4
= Would you like to give a\nnickname to Charmander?

#org @5
= Please take care of\nCharmander.

#org @6
= Don't be greedy!
__________________
I have a life.
  #1718    
Old July 15th, 2009 (08:24 PM). Edited July 15th, 2009 by ColbieCallaitPie.
ColbieCallaitPie's Avatar
ColbieCallaitPie ColbieCallaitPie is offline
Yummy Yummy Groovy Pie
 
Join Date: Jul 2009
Gender: Male
Posts: 6
Quote originally posted by xchrisliax:
fire red hack
ok so i have this script where
you choose a pokemon, then the other pokeballs are offlimits
but when i exit the map and return, the pokeball is still there
heres my script
Spoiler:

#dynamic 0x805CD7

#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 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
hidesprite 0x800F
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
= Would you like the \nfire-breathing Charmander?

#org @2
= That's okay.\pI'm sure someone else will\ntake it.

#org @3
= You received a Charmander!

#org @4
= Would you like to give a\nnickname to Charmander?

#org @5
= Please take care of\nCharmander.

#org @6
= Don't be greedy!
no one wants to help a noob blehhhhh
  #1719    
Old July 15th, 2009 (09:11 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 xchrisliax:
fire red hack
ok so i have this script where
you choose a pokemon, then the other pokeballs are offlimits
but when i exit the map and return, the pokeball is still there
heres my script
Spoiler:

#dynamic 0x805CD7

#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 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
hidesprite 0x800F
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
setflag 0x1000
release
end

#org @name
call 0x1A74EB
return


#org @done
msgbox @6 0x6
release
end

#org @1
= Would you like the \nfire-breathing Charmander?

#org @2
= That's okay.\pI'm sure someone else will\ntake it.

#org @3
= You received a Charmander!

#org @4
= Would you like to give a\nnickname to Charmander?

#org @5
= Please take care of\nCharmander.

#org @6
= Don't be greedy!
Don't you DARE listen to him, that was incredibly disrespectful here, and we here at PC are PROUD to help anyone who may need help. At least I am.
Check the quote, I fixed up your script to make the Pokeball disappear.
Now, what YOU have to do to make this work for sure, is make your Pokeball sprite have a
'Person ID' of 1000, okay?
Changes to your script are in BOLD RED.
__________________
>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...

>
  #1720    
Old July 15th, 2009 (11:16 PM).
xchrisliax's Avatar
xchrisliax xchrisliax is offline
 
Join Date: Jul 2009
Location: 7 Cities, VA
Gender: Male
Posts: 3
Send a message via AIM to xchrisliax
Quote originally posted by 0m3GA ARS3NAL:
Don't you DARE listen to him, that was incredibly disrespectful here, and we here at PC are PROUD to help anyone who may need help. At least I am.
Check the quote, I fixed up your script to make the Pokeball disappear.
Now, what YOU have to do to make this work for sure, is make your Pokeball sprite have a
'Person ID' of 1000, okay?
Changes to your script are in BOLD RED.
hmm
when i put the code in and set the person ID to 1000
i got the same effect
pokeball disappeared, left map, reentered lab and its still there
__________________
I have a life.
  #1721    
Old July 15th, 2009 (11:22 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 xchrisliax:
hmm
when i put the code in and set the person ID to 1000
i got the same effect
pokeball disappeared, left map, reentered lab and its still there
Odd, anyone else care to help?!
That makes no sense that that wouldn't work, since that IS how to make sprites disappear, set a flag to them...
__________________
>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...

>
  #1722    
Old July 15th, 2009 (11:53 PM).
xchrisliax's Avatar
xchrisliax xchrisliax is offline
 
Join Date: Jul 2009
Location: 7 Cities, VA
Gender: Male
Posts: 3
Send a message via AIM to xchrisliax
Quote originally posted by 0m3GA ARS3NAL:
Odd, anyone else care to help?!
That makes no sense that that wouldn't work, since that IS how to make sprites disappear, set a flag to them...
well the way i got this script was weird lol
i saw somebody elses problem that wasnt correct and it looked similar
[i forgot where i got it from]
so i messed with it and got that, i thought it worked til the pokeball kept reappearing lol
__________________
I have a life.
  #1723    
Old July 16th, 2009 (12:08 AM).
Chileno4Live's Avatar
Chileno4Live Chileno4Live is offline
«Step into the light with me.»
 
Join Date: May 2009
Location: Almere - The Netherlands
Age: 22
Gender: Male
Nature: Adamant
Posts: 13
Send a message via Windows Live Messenger to Chileno4Live
okay since no1 really replied to my script, i'll post it again.

Spoiler:
#dynamic 0x71C935

#org @start
checkflag 0x828
if b_false goto @done
message @1
boxset 6
applymovement 0x11 @gary2
waitmovement 0x00
trainerbattle 0x1 0x146 0x0 @2 @3 @4
applymovement 0x11 @gary3
waitmovement 0x00
release
end

#org @done
release
end

#org @4
message @later2
boxset 6
fanfare 0x13E
special 0x16F
setflag 829
message @5
boxset 4
waitfanfare
closeonkeypress
message @6
release
end

#org @gary2
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0xFE

#org @gary3
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @1
= [RED_FR]HOLD ON!!!!!

#org @2
= [RED_FR][rival]: You're not leaving until\nyou give me a pokemon battle!\lSo get your pokemon and fight!

#org @3
= WHAAATT!\nHOW COULD I HAVE LOST?!

#org @later2
= [rival]: Wow man, you got lucky\nthere!\lAnyway, gramps told me to give you\lthis whenever i see you.

#org @5
= [BLACK_FR]You received the National Pokedex!

#org @6
= That's all i'm ever going to give\nyou though! I think you'll be a\lgreat rival, so let's meet\lsomewhere again and battle alright?\lWell i don't have time for your\lanswer, smell ya later.


I'll try to list the problems again and maybe someone will help me.

Rom: FireRed
Scripting program: XSE
problem: I'll list the problems here and i hope you guys can fix it:

1: Gary doesn't walk to you in the script, as a matter of fact, you don't even see him in the script, i don't know what's wrong.
2: Pokedex menu doesn't activate. I've set ''setflag 0x829'' but it didn't work. Whats wrong? What it needs to do it activate the pokedex menu and the national dex.
3: After you beat him, he gives you the national dex. After that, he has to say something and then walk out of the screen, but that part doesn't activate.
4: Everytime i walk through that script tile it says: ''HOLD ON!!'' So it doesn't stop the script once it has been activated, how come?

What it's supposed to do:
You walk out of Professor Oak's lab after you obtained your starter pokemon. When you walk into the script without a pokemon, it will not activate. After you got a pokemon and you walk into the script, gary says "HOLD ON!!" and he'll walk to you. He says he wants to battle you so you battle. After the battle, he's supposed to give you the National Pokedex. Your Pokedex menu should also be activated now. After that, he'll talk a bit and then walk away.

Now for a different question: How do you make sprites invisible until your script is activated? For example, on the beginning on FireRed and LeafGreen, when you try to leave Pallet Town Prof Oak stops you and takes you to his lab. I want something similar. You can't see Prof Oak before you try to walk out of Pallet Town. And if you open Advance Map you clearly see a Prof Oak sprite standing there. How do you do that?

If someone could help me, i would appreciate that so much. Please help me D=<
__________________
This signature has been disabled.
Spoiler tags are not permitted in signatures, sorry!
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
  #1724    
Old July 16th, 2009 (01:42 AM).
Haz's Avatar
Haz Haz is offline
Haz ya seen my hack?
 
Join Date: Nov 2008
Location: Australia- Aussie, Aussie, Aussie!, Oi, Oi, Oi!
Gender: Female
Nature: Docile
Posts: 698
Send a message via Yahoo to Haz
Can anyone help me, a weird menu pops up when I click compile. Is was working before I edited it to change the Pokemon.
#dynamic 0x8007BA
#org @start
lock
faceplayer
msgbox @1 0x6
release
end

#org @1
= Pikachu!\nPikachu is having fun.
__________________
DeviantART: Haz-Za

Fanfiction.net: Ha-Za-A


Credits to Galukxy for this awesome banner
  #1725    
Old July 16th, 2009 (02:09 AM). Edited July 16th, 2009 by 0m3GA ARS3NAL.
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 Haz:
Can anyone help me, a weird menu pops up when I click compile. Is was working before I edited it to change the Pokemon.
#dynamic 0x8007BA
#org @start
lock
faceplayer
msgbox @1 0x6
release
end

#org @1
= Pikachu!\nPikachu is having fun.
Absolutely nothing is wrong with this script.
It is perfect the way it is, I can't even optimize it.
That strange menu that pops up, is your Compiler Log.
You might have inserted the script, but you can't use it 'till make one of the Sprites in A-Map use it. (Or if you point to it, but you are not really doing that here...)
In the compiler log, you'll see a thing that says @start... next to it should be an offset, probably the same one as your Dynamic One, if this is the first script you are inserting.
Just copy that offset, and go into A-Map, find the sprite you want to have use this script, and paste the offset into the 'Script Offset' box.

Quote originally posted by Chileno4Live:
Why does my script always get ignored, this is the third time i posted it here but people completely ignore it D=
I never ignored it, I was just busy reading that HUGE post of yours.

Here you go.
Changes are in BOLD RED.

I decided to make this for the NEWEST XSE.
If you are going to continue using that old copy, then you need to delete the numbers that follow after the msgbox commands, and replace them with boxset commands...
Also, I changed your Dynamic offset, since you should NEVER start that close to important data.
Your Problem with Gary not moving is because you don't have the numbers matching correctly between the Sprite, and XSE. Look it over. (In A-Map, the Sprite number is NOT in HEX, so if you are trying to move person #11, don't use the 0x11... just use 11... get it?)
Code:
#dynamic 0x760000

#org @start
checkflag 0x829
if b_false goto @done
message @1 6
applymovement 11 @gary2
waitmovement 0x0
trainerbattle 0x1 0x146 0x0 @2 @3 @4
applymovement 11 @gary3
waitmovement 0x0
release
end

#org @done
release
end

#org @4
message @later2 6
fanfare 0x13E
special 0x16F
setflag 0x829
message @5 4
waitfanfare
closeonkeypress
message @6 6
release
end

#org @gary2
#raw 0x10 0x10
#raw 0x10
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0xFE

#org @gary3
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @1
= [RED_FR]HOLD ON!!!!!

#org @2
= [RED_FR][rival]: You're not leaving until\nyou give me a pokemon battle!\lSo get your pokemon and fight!

#org @3
= WHAAATT!\nHOW COULD I HAVE LOST?!

#org @later2
= [rival]: Wow man, you got lucky\nthere!\lAnyway, gramps told me to give you\lthis whenever i see you.

#org @5
= [BLACK_FR]You received the National Pokedex!

#org @6
= That's all i'm ever going to give\nyou though! I think you'll be a\lgreat rival, so let's meet\lsomewhere again and battle alright?\lWell i don't have time for your\lanswer, smell ya later.
__________________
>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...

>
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 01:58 PM.