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
  #3451    
Old April 5th, 2010 (12:55 AM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
Oh Hai Thar~ 'ω'
Silver Tier
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Posts: 7,247
Hm...
change givepokemon 0x286 0x5 0x0 0x0 0x0 0x0
to givepokemon 286 0x5 0x0 0x0 0x0 0x0
and see if it works...
__________________


3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)

~Serge,
Chrono Cross


  #3452    
Old April 5th, 2010 (01:02 AM).
Evilcrizpy's Avatar
Evilcrizpy Evilcrizpy is offline
Advanced Mapper
 
Join Date: Apr 2010
Gender: Male
Posts: 26
Quote originally posted by destinedjagold:
Hm...
change givepokemon 0x286 0x5 0x0 0x0 0x0 0x0
to givepokemon 286 0x5 0x0 0x0 0x0 0x0
and see if it works...
Thank you,
Still the text will not show up though...

Spoiler:
'-----------------------
#org 0x71B22D
lock
faceplayer
checkflag 0x828
if 0x1 goto 0x871BA75
applymovement 0x5 0x871B990
waitmovement 0x0
msgbox 0x871B9C6 '"Hello my name is Newman, who might ..."
applymovement MOVE_PLAYER 0x871B993
waitmovement 0x0
msgbox 0x871BA0A '"Would you care for a battle [player..."
applymovement 0x6 0x871B997
waitmovement 0x0
msgbox 0x871BA5A '"Here take this Poochyena."
goto 0x871B931
setflag 0x828
release
end

'-----------------------
#org 0x71BA75
release
end

'-----------------------
#org 0x71B931
givepokemon 286 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
waitfanfare
closeonkeypress
setflag 0x828
release
end


'-----------
' Movements
'-----------
#org 0x71B990
#raw 0 'Face Down
#raw FE 'End of Movements

#org 0x71B993
#raw 1 'Face Up
#raw 63 'Question Mark (?)
#raw FE 'End of Movements

#org 0x71B997
#raw 10 'Step Down (Normal)
#raw 2 'Face Left
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x71B9C6
= Hello my name is Newman, who might you be?\n \v\hFDH01 .... i see.

#org 0x71BA0A
= Would you care for a battle [player]? \n [player] : I dont have a pokemonn....

#org 0x71BA5A
= Here take this Poochyena.
  #3453    
Old April 5th, 2010 (01:03 AM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
Oh Hai Thar~ 'ω'
Silver Tier
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Posts: 7,247
I just tried it with Ruby and it worked alright.
If you want proof, I can provide a video.
If it's for FireRed, then I haven't tried it yet.

What are you hacking?
__________________


3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)

~Serge,
Chrono Cross


  #3454    
Old April 5th, 2010 (01:06 AM).
Evilcrizpy's Avatar
Evilcrizpy Evilcrizpy is offline
Advanced Mapper
 
Join Date: Apr 2010
Gender: Male
Posts: 26
I am hacking firered,

Yea sure, that would help
  #3455    
Old April 5th, 2010 (01:34 AM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
Oh Hai Thar~ 'ω'
Silver Tier
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Posts: 7,247
It works perfectly fine in FireRed.
Here's the script that I used.
Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @done
applymovement 0x05 @1
waitmovement 0x0
message @1m 0x6
applymovement 0xFF @2
waitmovement 0x0
message @2m 0x6
applymovement 0x06 @3
waitmovement 0x0
message @3m 0x6
call @take
setflag 0x828
release
end

#org @take
givepokemon 286 0x5 0 0 0 0
fanfare 0x13E
waitfanfare
closeonkeypress
return

#org @1
#raw 0x00 0xFE

#org @2
#raw 0x01 0x63 0xFE

#org @3
#raw 0x10 0x02 0xFE

#org @1m
= Hello my name is Newman, who might you be?\n \v\hFDH01 .... i see.

#org @2m
= Would you care for a battle [player]? \n [player] : I dont have a pokemon....

#org @3m
= Here take this Poochyena.

#org @done
release
end


I have a theory...
Maybe you should start at 0x800000 and so on, since that area in the ROM's free to use.
Anyways, a video, as promised...
__________________


3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)

~Serge,
Chrono Cross


  #3456    
Old April 5th, 2010 (01:38 AM).
Evilcrizpy's Avatar
Evilcrizpy Evilcrizpy is offline
Advanced Mapper
 
Join Date: Apr 2010
Gender: Male
Posts: 26
Quote originally posted by destinedjagold:
It works perfectly fine in FireRed.
Here's the script that I used.
Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x828
if 0x1 goto @done
applymovement 0x05 @1
waitmovement 0x0
message @1m 0x6
applymovement 0xFF @2
waitmovement 0x0
message @2m 0x6
applymovement 0x06 @3
waitmovement 0x0
message @3m 0x6
call @take
setflag 0x828
release
end

#org @take
givepokemon 286 0x5 0 0 0 0
fanfare 0x13E
waitfanfare
closeonkeypress
return

#org @1
#raw 0x00 0xFE

#org @2
#raw 0x01 0x63 0xFE

#org @3
#raw 0x10 0x02 0xFE

#org @1m
= Hello my name is Newman, who might you be?\n \v\hFDH01 .... i see.

#org @2m
= Would you care for a battle [player]? \n [player] : I dont have a pokemon....

#org @3m
= Here take this Poochyena.

#org @done
release
end


I jsut put that script in, and once again will give pokemon and all movements work.
jsut the messages dont appear.
  #3457    
Old April 5th, 2010 (03:16 AM).
shadix shadix is offline
 
Join Date: Mar 2010
Gender: Male
Posts: 20
Hello. I have a problem with PokeScript. Namely, when I compile the code:
#org $start
lock
faceplayer
message $talk
$talk 1 = Hello.
boxset 6
release
end

Copy the offset to the A-MAP, turn on the game, go to the characters from the offset. I see characters like this photo.:

img221.imageshack.us/img221/2049/jakisbad.png

I do not know what is causing the problem. Install the program as it is in the guide.
Please help. And thanks in advance.

Translation: google translator (Polish to English)
  #3458    
Old April 5th, 2010 (03:26 AM).
Evilcrizpy's Avatar
Evilcrizpy Evilcrizpy is offline
Advanced Mapper
 
Join Date: Apr 2010
Gender: Male
Posts: 26
Quote originally posted by shadix:
Hello. I have a problem with PokeScript. Namely, when I compile the code:
#org $start
lock
faceplayer
message $talk
$talk 1 = Hello.
boxset 6
release
end

Copy the offset to the A-MAP, turn on the game, go to the characters from the offset. I see characters like this photo.:

img221.imageshack.us/img221/2049/jakisbad.png

I do not know what is causing the problem. Install the program as it is in the guide.
Please help. And thanks in advance.

Translation: google translator (Polish to English)
Hmmmmm... i it might be due to the fact of the
Code:
$talk 1 = Hello.
You have got this part right but how ever it needs to be in a completely different section so you would right it like this.

Code:
#org $start
lock
faceplayer
message $talk 0x6
release
end

#org $talk
 = Hello.
  #3459    
Old April 5th, 2010 (04:08 AM). Edited April 5th, 2010 by shadix.
shadix shadix is offline
 
Join Date: Mar 2010
Gender: Male
Posts: 20
It did not help: ( Maybe I installed wrong PkmAdv?
Look at this:
1. Install PokeSckript (c:/pokewitch)
2. Install PkmAdv (c:/pokewitch)
3. compile file (.rbc) - compile every way and show me the marks. (google translator)
END.
  #3460    
Old April 5th, 2010 (04:27 AM).
Binary's Avatar
Binary Binary is offline
え?
 
Join Date: Aug 2007
Age: 20
Posts: 3,994
Quote originally posted by shadix:
Hello. I have a problem with PokeScript. Namely, when I compile the code:
#org $start
lock
faceplayer
message $talk
$talk 1 = Hello.
boxset 6
release
end

Copy the offset to the A-MAP, turn on the game, go to the characters from the offset. I see characters like this photo.:

img221.imageshack.us/img221/2049/jakisbad.png

I do not know what is causing the problem. Install the program as it is in the guide.
Please help. And thanks in advance.

Translation: google translator (Polish to English)
Been a while since I last used pokescript.
Anyways,

Spoiler:
#org $start
lock
faceplayer
message $talk
boxset 6
release
end

#org $talk
$talk 1 = Hello.

I think that's how you do it.
__________________
  #3461    
Old April 5th, 2010 (04:54 AM).
shadix shadix is offline
 
Join Date: Mar 2010
Gender: Male
Posts: 20
It did not help. I dn't know what could be wrong.
  #3462    
Old April 5th, 2010 (05:00 AM).
Evilcrizpy's Avatar
Evilcrizpy Evilcrizpy is offline
Advanced Mapper
 
Join Date: Apr 2010
Gender: Male
Posts: 26
Quote originally posted by shadix:
It did not help. I dn't know what could be wrong.

I have noticed while scripting that if you use $ it might not work properly so i suggest changing all the $ to @
  #3463    
Old April 5th, 2010 (06:10 AM).
Sky93's Avatar
Sky93 Sky93 is offline
 
Join Date: Dec 2007
Location: GA, USA
Gender:
Nature: Relaxed
Posts: 72
Quote originally posted by Evilcrizpy:
I have noticed while scripting that if you use $ it might not work properly so i suggest changing all the $ to @
He is talking about PokeScript, and you are talking about XSE, they are both completely different.

Anyway, its been a while since I used PokeScript, but I think this should work:

Spoiler:

#org $start
lock
faceplayer
message $talk
boxset 6
$talk 1 = Hello.
release
end
__________________



ROMs I Support:
  #3464    
Old April 5th, 2010 (06:38 AM).
shadix shadix is offline
 
Join Date: Mar 2010
Gender: Male
Posts: 20
It also does not help. I have windows XP, can by this?
  #3465    
Old April 5th, 2010 (07:16 AM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
Oh Hai Thar~ 'ω'
Silver Tier
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Posts: 7,247
Quote originally posted by shadix:
It also does not help. I have windows XP, can by this?
download HackMew's scripting tool called XSE.
__________________


3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)

~Serge,
Chrono Cross


  #3466    
Old April 5th, 2010 (07:29 AM).
Tropical Sunlight's Avatar
Tropical Sunlight Tropical Sunlight is offline
The Faltine
 
Join Date: Mar 2008
Location: Slovenia
Age: 19
Gender: Male
Posts: 3,578
Send a message via Windows Live Messenger to Tropical Sunlight
Quote originally posted by destinedjagold:

download HackMew's scripting tool called XSE.
The best solution ever! :D


It shouldn't have had anything to do with you having XP, scripting is totally unreleated to what version of Windows you have.
__________________
  #3467    
Old April 5th, 2010 (07:41 AM).
shadix shadix is offline
 
Join Date: Mar 2010
Gender: Male
Posts: 20
I worked with XSE but I can not do the script (pokeball lying on the ground and disappear after lifting it). I do not know how to do that after fulfilling the function object disappeared. : ( ( Disappears when I got him to the sight by {setflag 0xID} ).

google translate
  #3468    
Old April 5th, 2010 (08:17 AM).
Sky93's Avatar
Sky93 Sky93 is offline
 
Join Date: Dec 2007
Location: GA, USA
Gender:
Nature: Relaxed
Posts: 72
you mean, you want an item sitting on the ground, and for it to disappear after you pick it up?
__________________



ROMs I Support:
  #3469    
Old April 5th, 2010 (08:47 AM).
shadix shadix is offline
 
Join Date: Mar 2010
Gender: Male
Posts: 20
Yes. Recently, I began to learn the script.
  #3470    
Old April 5th, 2010 (11:56 AM).
PeregrineFig's Avatar
PeregrineFig PeregrineFig is offline
Starting Pokémon Obsidian
 
Join Date: Feb 2010
Location: Michigan, USA
Age: 20
Gender: Male
Nature: Hardy
Posts: 202
There are 2 ways to do it. One is still a mystery to me as to how it works, the other uses more bytes but is easier to understand. Type 1:

There's no setflag command in the script, but it appears to set one anyway, basing it off the person ID in AdvanceMap, but I believe only certain flags work. 01C0 and up can be used, but I don't know where these end and the regular flags begin. Just set the flag to Person ID of the Pokeball.
Spoiler:

#dynamic 0x740000
#org @start
giveitem 0x(item number) 0x(quantity) 0x1
end


Now, the standard script, uses many more bytes but makes sense. Set whatever flag you used to the Pokeball's person ID.
Spoiler:

#dynamic 0x740000
#org @start
lock
setvar 0x4000 (use any var you want, I just use 4000 as my temporary var) 0x(item number)
bufferitem 0x0 0x4000
additem 0x4000 0x1 (or any other quantity)
fanfare 0x13E (or any other fanfare you want)
preparemsg @text
waitmsg
waitfanfare
setflag 0x200 (again, or any other flag)
release
end

#org @text
= \v\h01 found one \v\h02!

If you aren't at that point of scripting yet, the var stores the number of the item you want, and the commands later using 0x4000 read that var. The bufferitem stores the value of 0x4000 as an item name to buffer \v\h02. So, if you set 0x4000 to 0xD, the script will add a potion and display "(name) found one POTION!" I did it this way so all you have to do is copy/paste the script and change the value of a var and flag to use other items. Set the pokeball's person ID to whatever flag you used (200 in this case) to make it vanish after the script.
__________________
Current Projects:
POKéMON AQUA SAPPHIRE
POKéMON OBSIDIAN

  #3471    
Old April 6th, 2010 (12:09 AM). Edited April 6th, 2010 by Evilcrizpy.
Evilcrizpy's Avatar
Evilcrizpy Evilcrizpy is offline
Advanced Mapper
 
Join Date: Apr 2010
Gender: Male
Posts: 26
Game : Fire Red
Script : XSE

Just a simple question the text will not appear, here is the code.

Spoiler:
'-----------------------
#org 0x8001A4
lock
faceplayer
checkflag 0x828
if 0x1 goto 0x8800244
applymovement 0x5 0x88001D2
waitmovement 0x0
msgbox 0x88001DF '"Hello my name is Scott, Did you hea..."
applymovement MOVE_PLAYER 0x88001DB
waitmovement 0x0
msgbox 0x8800238 '"FOLLOW ME!"
release
end

'-----------------------
#org 0x800244
release
end


'-----------
' Movements
'-----------
#org 0x8001D2
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw FE 'End of Movements

#org 0x8001DB
#raw 3 'Face Right
#raw 63 'Question Mark (?)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x8001DF
= Hello my name is Scott, Did you hear about...\n Ohh you did... \p Wanna investigate it?

#org 0x800238
= FOLLOW ME!
  #3472    
Old April 6th, 2010 (12:14 AM).
Omega Zero's Avatar
Omega Zero Omega Zero is offline
Is back...
Gold Tier
 
Join Date: Dec 2009
Location: I'm always living aren't I?
Age: 17
Gender: Male
Nature: Relaxed
Posts: 445
Send a message via Skype™ to Omega Zero
Quote originally posted by shadix:
It also does not help. I have windows XP, can by this?
Heh Wrong!

this is the real script

Spoiler:

#org $start
lock
faceplayer
message $test
test 1 = Hello
boxset 6
release
end


i'm sure that'll work but i suggest you use Xse :p
__________________
  #3473    
Old April 6th, 2010 (12:19 AM). Edited April 6th, 2010 by Evilcrizpy.
Evilcrizpy's Avatar
Evilcrizpy Evilcrizpy is offline
Advanced Mapper
 
Join Date: Apr 2010
Gender: Male
Posts: 26
Quote originally posted by Omega Zero:

Heh Wrong!

this is the real script

Spoiler:

#org $start
lock
faceplayer
message $test
test 1 = Hello
boxset 6
release
end


i'm sure that'll work but i suggest you use Xse :p
Do you see any problems with mine??

Spoiler:
'-----------------------
#org 0x8001A4
lock
faceplayer
checkflag 0x828
if 0x1 goto 0x8800244
applymovement 0x5 0x88001D2
waitmovement 0x0
msgbox 0x88001DF '"Hello my name is Scott, Did you hea..."
applymovement MOVE_PLAYER 0x88001DB
waitmovement 0x0
msgbox 0x8800238 '"FOLLOW ME!"
release
end

'-----------------------
#org 0x800244
release
end


'-----------
' Movements
'-----------
#org 0x8001D2
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw FE 'End of Movements

#org 0x8001DB
#raw 3 'Face Right
#raw 63 'Question Mark (?)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x8001DF
= Hello my name is Scott, Did you hear about...\n Ohh you did... \p Wanna investigate it?

#org 0x800238
= FOLLOW ME!
  #3474    
Old April 6th, 2010 (12:34 AM).
Omega Zero's Avatar
Omega Zero Omega Zero is offline
Is back...
Gold Tier
 
Join Date: Dec 2009
Location: I'm always living aren't I?
Age: 17
Gender: Male
Nature: Relaxed
Posts: 445
Send a message via Skype™ to Omega Zero
Quote originally posted by Evilcrizpy:
Do you see any problems with mine??

Spoiler:
'-----------------------
#org 0x8001A4
lock
faceplayer
checkflag 0x828
if 0x1 goto 0x8800244
applymovement 0x5 0x88001D2
waitmovement 0x0
msgbox 0x88001DF '"Hello my name is Scott, Did you hea..."
applymovement MOVE_PLAYER 0x88001DB
waitmovement 0x0
msgbox 0x8800238 '"FOLLOW ME!"
release
end

'-----------------------
#org 0x800244
release
end


'-----------
' Movements
'-----------
#org 0x8001D2
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw 12 'Step Left (Normal)
#raw FE 'End of Movements

#org 0x8001DB
#raw 3 'Face Right
#raw 63 'Question Mark (?)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x8001DF
= Hello my name is Scott, Did you hear about...\n Ohh you did... \p Wanna investigate it?

#org 0x800238
= FOLLOW ME!
can you show me the non Decompiled script please?
__________________
  #3475    
Old April 6th, 2010 (12:38 AM).
Evilcrizpy's Avatar
Evilcrizpy Evilcrizpy is offline
Advanced Mapper
 
Join Date: Apr 2010
Gender: Male
Posts: 26
Quote originally posted by Omega Zero:

can you show me the non Decompiled script please?
Sure here it is

Spoiler:
'-----------------------
#org 0x8001A4
lock
faceplayer
checkflag 0x828
if 0x1 goto @done
applymovement 0x5 @1
waitmovement 0x0
msgbox @21 0x6
applymovement 0xFF @2
waitmovement 0x0
msgbox @t2 0x6
release
end

'-----------------------
#org @done
release
end



#org @1
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE

#org @2
#raw 0x3
#raw 0x63
#raw 0xFE



#org @t1
= Hello my name is Scott, Did you hear about...\n Ohh you did... \p Wanna investigate it?

#org @t2
= FOLLOW ME!
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 05:19 AM.