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

Notices
For all updates, view the main page.

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
New threads in this forum are to be approved by a moderator before they are displayed.



Closed Thread
 
Thread Tools
  #2751    
Old December 25th, 2009 (01:05 PM).
lugiaguy lugiaguy is offline
 
Join Date: Nov 2009
Posts: 3
Quote originally posted by Darthatron:
Simply put, your msgbox function points to something that isn't text, and your goto function points to text. I attempted to fix your script, though I'm not really sure what it was meant to do... Fixes are in bold.



Try that, it seemed to fix the problem when I had a similar one. Also, you didn't need a second 'lock' and 'faceplayer' after your 'goto'.

EDIT: Also, make sure you have a warp on the map you are warping to.
Thanks for the advice, Darthatron. Unfortunately, it didn't do the trick, but I eventually got it to work. Apparently, the script only works when it's assigned to a person event, not a green S tile script event. Something is going on with my rom, I think, because now my applymovement script stopped working (and it used to work perfectly) when it was on a green S tile and I had to assign the script to a person to get it to work again.
  #2752    
Old December 25th, 2009 (01:21 PM).
Tropical Sunlight's Avatar
Tropical Sunlight Tropical Sunlight is offline
The Faltine
 
Join Date: Mar 2008
Location: Slovenia
Age: 18
Gender: Male
Posts: 3,578
Send a message via Windows Live Messenger to Tropical Sunlight
Quote originally posted by H2O Turquoise:
ROM: FireRed
Scripted in: XSE
Script: Person
Actual script:
Spoiler:
#dynamic 0x000000

#org @start
lock
faceplayer
checkflag 0x1581
compare LASTRESULT 0x1
if 0x1 goto @1581set
checkflag 0x1580
compare LASTRESULT 0x1
if 0x1 goto @1580set
checkitem ITEM_MOOMOOMILK 2
compare LASTRESULT 0x1
if 0x1 goto @havethemilk
checkflag 0x1582
compare LASTRESULT 0x1
if 0x1 goto @1582set
msgbox @wygb MSG_NORMAL
setflag 0x1582
release
end

#org @1581set
msgbox @sell MSG_NORMAL
pokemart @pokemart
release
end

#org @1582set
msgbox @getbusy MSG_NORMAL
release
end

#org @havethemilk
removeitem ITEM_MOOMOOMILK 2
msgbox @gimmethemilk MSG_NORMAL
setflag 0x1580
release
end

#org @1580set
checkitem ITEM_GREPABERRY 1
compare LASTRESULT 0x1
if 0x1 goto @havetheberry
msgbox @youonly MSG_NORMAL
release
end

#org @havetheberry
removeitem ITEM_LEEMONBERRY 1
msgbox @gimmetheberry MSG_NORMAL
applymovement LASTTALKED @moveup
pause 0x100
applymovement LASTTALKED @movedown
msgbox @deserve MSG_NORMAL
giveitem ITEM_GOLDTEETH 1 MSG_OBTAIN
setflag 0x1581
release
end

#org @gimmethemilk
= RYAN: You got the MOOMOO MILK!\nGive it to me now.

#org @wygb
= RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [fr_blue]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[black_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

#org @youonly
= RYAN: I only need a LEEMON BERRY\nnow.

#org @gimmethemilk
= RYAN: You got the LEEMON BERRY!\nGive it to me now.

#org @getbusy
= RYAN: Chop-chop, get busy!\pRemember, I need [fr_blue]2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

#org @deserve
= RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

#org @sell
= RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

#org @pokemart
#raw word ITEM_BERRYJUICE
#raw word ITEM_RARECANDY
#raw word 0x0

#org @moveup
#raw 0x11 0x13 0x11 0x60 0xFE

#org @movedown
#raw 0x10 0x12 0x10 0x61 0xFE

Don't mind the offset.

Compiled:
Spoiler:
#include stditems.rbh

;---------------
#org 0x80F00B
lock
faceplayer
checkflag 0x1651
compare LASTRESULT 0x1
if 0x1 goto 0x880F055
checkflag 0x1580
compare LASTRESULT 0x1
if 0x1 goto 0x88104B8
checkitem ITEM_MOOMOOMILK 0x2
compare LASTRESULT 0x1
if 0x1 goto 0x880FFE0
checkflag 0x1852
compare LASTRESULT 0x1
if 0x1 goto 0x880F065
msgbox 0x8810CEC MSG_NORMAL ;"RYAN: Hey, [player]!\nSo you're he..."
setflag 0x1852
release
end

;---------------
#org 0x80F055
msgbox 0x8810F27 MSG_NORMAL ;"RYAN: Hello, dear friend! I have a..."
pokemart 0x8810F87
release
end

;---------------
#org 0x8104B8
checkitem ITEM_GREPABERRY 0x1
compare LASTRESULT 0x1
if 0x1 goto 0x88104D3
msgbox 0x8810E28 MSG_NORMAL ;"RYAN: I only need a LEEMON BERRY\n..."
release
end

;---------------
#org 0x80FFE0
removeitem ITEM_MOOMOOMILK 0x2
msgbox 0x881050B MSG_NORMAL ;"RYAN: You got the MOOMOO MILK!\nGi..."
setflag 0x1580
release
end

;---------------
#org 0x80F065
msgbox 0x8810E85 MSG_NORMAL ;"RYAN: Chop-chop, get busy!\pRememb..."
release
end

;---------------
#org 0x8104D3
removeitem ITEM_GREPABERRY 0x1
msgbox 0x8810E50 MSG_NORMAL ;"RYAN: You got the LEEMON BERRY!\nG..."
applymovement LASTTALKED 0x8810F8E
pause 0x100
applymovement LASTTALKED 0x8810F94
msgbox 0x8810EEC MSG_NORMAL ;"RYAN: Here you go, buddy!\nYou des..."
giveitem ITEM_GOLDTEETH 0x1 MSG_OBTAIN
setflag 0x1651
release
end

;---------
; Strings
;---------
#org 0x810CEC
= RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [blue_fr]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[red_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

#org 0x810F27
= RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

#org 0x810E28
= RYAN: I only need a LEEMON BERRY\nnow.

#org 0x81050B
= RYAN: You got the MOOMOO MILK!\nGive it to me now.

#org 0x810E85
= RYAN: Chop-chop, get busy!\pRemember, I need fr blue 2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

#org 0x810E50
= RYAN: You got the LEEMON BERRY!\nGive it to me now.

#org 0x810EEC
= RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

;-----------
; Movements
;-----------
#org 0x810F8E
#raw 0x11 ;Step Up (Normal)
#raw 0x13 ;Step Right (Normal)
#raw 0x11 ;Step Up (Normal)
#raw 0x60 ;Hide
#raw 0xFE ;End of Movements
#org 0x810F94
#raw 0x10 ;Step Down (Normal)
#raw 0x12 ;Step Left (Normal)
#raw 0x10 ;Step Down (Normal)
#raw 0x61 ;Show
#raw 0xFE ;End of Movements

;-----------
; MartItems
;-----------
#org 0x810F87
#raw word ITEM_BERRYJUICE
#raw word ITEM_RARECANDY
#raw word ITEM_NONE
Reposting... Doesn't anyone know how to fix it? Please?
Again, the flags set themselves incorrectly for example when I give RYAN his MooMoo Milk, the script goes to the Pokemart part.
__________________
  #2753    
Old December 25th, 2009 (02:14 PM).
Teh Blazer's Avatar
Teh Blazer Teh Blazer is offline
Divider of Zero
 
Join Date: Feb 2009
Location: 'MERICA
Age: 19
Gender: Male
Nature: Relaxed
Posts: 689
I just can't get my script to work, maybe I'm doing something wrong...
Spoiler:

'---------------
#org 0x71C000
checkflag 0x11D6
if 0x1 call 0x871BFFC
call 0x8873890
end

'---------------
#org 0x71BFFC
release
end

'---------------
#org 0x873890
lockall
playsong 0x12E 0x0
applymovement 0x1 0x871C050
pause 0x20
textcolor 0x01
msgbox 0x817532D 0x2 '"Oh [player], you're final..."
call 0x88738B0
end

'---------------
#org 0x8738B0
givepokemon 0x116 0x5 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
special 0x16F
showpokepic 0x116 0x0A 0x03
msgbox 0x819110F 0x2 '"Here, take this POKéMON I..."
hidepokepic
fanfare 0x13E
applymovement 0x1 0x871C11A
setflag 0x11D6
release
end


'---------
' Strings
'---------
#org 0x17532D
= Oh [player], you're finally going /nto start your journey as a /pPOKéMON Trainer!I am just /pso proud of you! /pIf only you had a /pPOKéMON partner to help you...

#org 0x19110F
= Here, take this POKéMON I had /nsince I was a child and this /pPOKéDEX and explore this world! Oh, I'm also /pgiving you these /pspecial RUNNING SHOES which can/p give you that little extra boost.


'-----------
' Movements
'-----------
#org 0x71C050
#raw 0x62 'Exclamation Mark (!)
#raw 0xB 'Step Right (Very Slow)
#raw 0x9 'Step Up (Very Slow)
#raw 0x4A 'Face Player
#raw 0xFE 'End of Movements

#org 0x71C11A
#raw 0x8 'Step Down (Very Slow)
#raw 0xA 'Step Left (Very Slow)
#raw 0xFE 'End of Movements

What went wrong?
__________________
Coming soon...
  #2754    
Old December 25th, 2009 (07:20 PM).
lugiaguy lugiaguy is offline
 
Join Date: Nov 2009
Posts: 3
Quote originally posted by Teh Blazer:
I just can't get my script to work, maybe I'm doing something wrong...
Spoiler:

'---------------
#org 0x71C000
checkflag 0x11D6
if 0x1 call 0x871BFFC
call 0x8873890
end

'---------------
#org 0x71BFFC
release
end

'---------------
#org 0x873890
lockall
playsong 0x12E 0x0
applymovement 0x1 0x871C050
pause 0x20
textcolor 0x01
msgbox 0x817532D 0x2 '"Oh [player], you're final..."
call 0x88738B0
end

'---------------
#org 0x8738B0
givepokemon 0x116 0x5 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
special 0x16F
showpokepic 0x116 0x0A 0x03
msgbox 0x819110F 0x2 '"Here, take this POKéMON I..."
hidepokepic
fanfare 0x13E
applymovement 0x1 0x871C11A
setflag 0x11D6
release
end


'---------
' Strings
'---------
#org 0x17532D
= Oh [player], you're finally going /nto start your journey as a /pPOKéMON Trainer!I am just /pso proud of you! /pIf only you had a /pPOKéMON partner to help you...

#org 0x19110F
= Here, take this POKéMON I had /nsince I was a child and this /pPOKéDEX and explore this world! Oh, I'm also /pgiving you these /pspecial RUNNING SHOES which can/p give you that little extra boost.


'-----------
' Movements
'-----------
#org 0x71C050
#raw 0x62 'Exclamation Mark (!)
#raw 0xB 'Step Right (Very Slow)
#raw 0x9 'Step Up (Very Slow)
#raw 0x4A 'Face Player
#raw 0xFE 'End of Movements

#org 0x71C11A
#raw 0x8 'Step Down (Very Slow)
#raw 0xA 'Step Left (Very Slow)
#raw 0xFE 'End of Movements

What went wrong?
I'm still very new to scripting, so this probably won't work, but it's worth a try. What I added is in bold.

Quote:
'---------------
#org 0x71C000
checkflag 0x11D6
if 0x1 call 0x871BFFC
checkflag 0x11D6
if 0x0 call 0x8873890
end

'---------------
#org 0x71BFFC
release
end

'---------------
#org 0x873890
lockall
playsong 0x12E 0x0
applymovement 0x1 0x871C050
pause 0x20
textcolor 0x01
msgbox 0x817532D 0x2 '"Oh [player], you're final..."
call 0x88738B0
releaseall
end

'---------------
#org 0x8738B0
givepokemon 0x116 0x5 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
special 0x16F
showpokepic 0x116 0x0A 0x03
msgbox 0x819110F 0x2 '"Here, take this POKéMON I..."
hidepokepic
fanfare 0x13E
applymovement 0x1 0x871C11A
setflag 0x11D6
release
end
  #2755    
Old December 25th, 2009 (07:37 PM).
lbirrueta's Avatar
lbirrueta lbirrueta is offline
HAXXING'
 
Join Date: Aug 2009
Location: san jo'
Gender: Male
Nature: Relaxed
Posts: 31
is there a place where i can find the flag for the national dex in FR LG?
  #2756    
Old December 25th, 2009 (08:17 PM).
NarutoActor's Avatar
NarutoActor NarutoActor is offline
The rocks cry out to me
Silver Tier
 
Join Date: Jan 2009
Location: Brooklyn/Marlboro
Age: 21
Gender: Female
Nature: Bashful
Posts: 1,975
Send a message via AIM to NarutoActor Send a message via Windows Live Messenger to NarutoActor
try the simple question thread XD or look at professor oke's script.
__________________
~There are those people who understand hex, F the rest
  #2757    
Old December 25th, 2009 (11:56 PM).
lbirrueta's Avatar
lbirrueta lbirrueta is offline
HAXXING'
 
Join Date: Aug 2009
Location: san jo'
Gender: Male
Nature: Relaxed
Posts: 31
how do i look at professor oaks script?
  #2758    
Old December 26th, 2009 (12:02 AM).
pokefreak2's Avatar
pokefreak2 pokefreak2 is offline
I can't believe you read this
 
Join Date: Oct 2008
Location: that information is classified
Age: 17
Nature: Naive
Posts: 85
Quote originally posted by lbirrueta:
how do i look at professor oaks script?
you download pksv then you open your rom in it then you get prof oaks script put it in the decompile thingy then thats the script
__________________
Advanced scripter of


http://www.awsurveys.com/HomeMain.cfm?RefID=Xmouvelianx click on this please it gives my friend money it's not a rick roll and all you do is click on it sign up then leave and then we get 1.25$ ty

http://pokerum.freehostia.com/Forum/Forum/index.php

Copy and paste into your top browser
  #2759    
Old December 26th, 2009 (12:04 AM).
Darthatron's Avatar
Darthatron Darthatron is offline
巨大なトロール。
Silver Tier
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 23
Gender: Male
Nature: Modest
Posts: 1,152
Quote originally posted by lbirrueta:
how do i look at professor oaks script?
In Advance Map, select one of the green script tiles and click "Open Script". You need to choose XSE as the script editor, though.
__________________
あなた は しきしゃ です
わたし は ばか です
  #2760    
Old December 26th, 2009 (12:26 AM).
lbirrueta's Avatar
lbirrueta lbirrueta is offline
HAXXING'
 
Join Date: Aug 2009
Location: san jo'
Gender: Male
Nature: Relaxed
Posts: 31
i only have xse and it seems i have a lot of learning to do.... thanks
  #2761    
Old December 26th, 2009 (07:03 AM).
Mister_No_Name Mister_No_Name is offline
 
Join Date: Apr 2009
Gender:
Posts: 10
Hi, I've a question.
I made a normal trainerbattlescript in pokescript but when I try to compile it, there is always the same error:

Run-time error '5:

Invalid procedure call or argument

i think it has something to do with the trainer editing but I don't get it....what do I have to change?

thanks
  #2762    
Old December 26th, 2009 (07:36 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: 970
Quote originally posted by H2O Turquoise:
ROM: FireRed
Scripted in: XSE
Script: Person
Actual script:
Spoiler:
#dynamic 0x000000

#org @start
lock
faceplayer
checkflag 0x1581
compare LASTRESULT 0x1
if 0x1 goto @1581set
checkflag 0x1580
compare LASTRESULT 0x1
if 0x1 goto @1580set
checkitem ITEM_MOOMOOMILK 2
compare LASTRESULT 0x1
if 0x1 goto @havethemilk
checkflag 0x1582
compare LASTRESULT 0x1
if 0x1 goto @1582set
msgbox @wygb MSG_NORMAL
setflag 0x1582
release
end

#org @1581set
msgbox @sell MSG_NORMAL
pokemart @pokemart
release
end

#org @1582set
msgbox @getbusy MSG_NORMAL
release
end

#org @havethemilk
removeitem ITEM_MOOMOOMILK 2
msgbox @gimmethemilk MSG_NORMAL
setflag 0x1580
release
end

#org @1580set
checkitem ITEM_GREPABERRY 1
compare LASTRESULT 0x1
if 0x1 goto @havetheberry
msgbox @youonly MSG_NORMAL
release
end

#org @havetheberry
removeitem ITEM_LEEMONBERRY 1
msgbox @gimmetheberry MSG_NORMAL
applymovement LASTTALKED @moveup
pause 0x100
applymovement LASTTALKED @movedown
msgbox @deserve MSG_NORMAL
giveitem ITEM_GOLDTEETH 1 MSG_OBTAIN
setflag 0x1581
release
end

#org @gimmethemilk
= RYAN: You got the MOOMOO MILK!\nGive it to me now.

#org @wygb
= RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [fr_blue]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[black_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

#org @youonly
= RYAN: I only need a LEEMON BERRY\nnow.

#org @gimmethemilk
= RYAN: You got the LEEMON BERRY!\nGive it to me now.

#org @getbusy
= RYAN: Chop-chop, get busy!\pRemember, I need [fr_blue]2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

#org @deserve
= RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

#org @sell
= RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

#org @pokemart
#raw word ITEM_BERRYJUICE
#raw word ITEM_RARECANDY
#raw word 0x0

#org @moveup
#raw 0x11 0x13 0x11 0x60 0xFE

#org @movedown
#raw 0x10 0x12 0x10 0x61 0xFE

Don't mind the offset.

Compiled:
Spoiler:
#include stditems.rbh

;---------------
#org 0x80F00B
lock
faceplayer
checkflag 0x1581
compare LASTRESULT 0x1
if 0x1 goto 0x880F055
checkflag 0x1580
compare LASTRESULT 0x1
if 0x1 goto 0x88104B8
checkitem ITEM_MOOMOOMILK 0x2
compare LASTRESULT 0x1
if 0x1 goto 0x880FFE0
checkflag 0x1582
compare LASTRESULT 0x1
if 0x1 goto 0x880F065
msgbox 0x8810CEC MSG_NORMAL ;"RYAN: Hey, [player]!\nSo you're he..."
setflag 0x1582
release
end

;---------------
#org 0x80F055
msgbox 0x8810F27 MSG_NORMAL ;"RYAN: Hello, dear friend! I have a..."
pokemart 0x8810F87
release
end

;---------------
#org 0x8104B8
checkitem ITEM_GREPABERRY 0x1
compare LASTRESULT 0x1
if 0x1 goto 0x88104D3
msgbox 0x8810E28 MSG_NORMAL ;"RYAN: I only need a LEEMON BERRY\n..."
release
end

;---------------
#org 0x80FFE0
removeitem ITEM_MOOMOOMILK 0x2
msgbox 0x881050B MSG_NORMAL ;"RYAN: You got the MOOMOO MILK!\nGi..."
setflag 0x1580
release
end

;---------------
#org 0x80F065
msgbox 0x8810E85 MSG_NORMAL ;"RYAN: Chop-chop, get busy!\pRememb..."
release
end

;---------------
#org 0x8104D3
removeitem ITEM_GREPABERRY 0x1
msgbox 0x8810E50 MSG_NORMAL ;"RYAN: You got the LEEMON BERRY!\nG..."
applymovement LASTTALKED 0x8810F8E
pause 0x100
applymovement LASTTALKED 0x8810F94
msgbox 0x8810EEC MSG_NORMAL ;"RYAN: Here you go, buddy!\nYou des..."
giveitem ITEM_GOLDTEETH 0x1 MSG_OBTAIN
setflag 0x1581
release
end

;---------
; Strings
;---------
#org 0x810CEC
= RYAN: Hey, [player]!\nSo you're here eh?\pRYAN: If I can recall, you need a\nPIKA-CHEW, correct?\pRYAN: Ah, I'm sorry to disappoint\nyou, but I've ran out of the basic\lingredients for it.\pRYAN: I need [blue_fr]2 bottles of MOOMOO\nMILK and a LEEMON BERRY[red_fr].\pRYAN: Bring me those and I'll make\nyou a PIKA-CHEW free of charge.

#org 0x810F27
= RYAN: Hello, dear friend! I have a\nspecial discount just for you!\pNow, what can I do for you?

#org 0x810E28
= RYAN: I only need a LEEMON BERRY\nnow.

#org 0x81050B
= RYAN: You got the MOOMOO MILK!\nGive it to me now.

#org 0x810E85
= RYAN: Chop-chop, get busy!\pRemember, I need fr blue 2 bottles of\nMOOMOO MILK and a LEEMON BERRY[black_fr].

#org 0x810E50
= RYAN: You got the LEEMON BERRY!\nGive it to me now.

#org 0x810EEC
= RYAN: Here you go, buddy!\nYou deserve it! Use it wisely.

;-----------
; Movements
;-----------
#org 0x810F8E
#raw 0x11 ;Step Up (Normal)
#raw 0x13 ;Step Right (Normal)
#raw 0x11 ;Step Up (Normal)
#raw 0x60 ;Hide
#raw 0xFE ;End of Movements
#org 0x810F94
#raw 0x10 ;Step Down (Normal)
#raw 0x12 ;Step Left (Normal)
#raw 0x10 ;Step Down (Normal)
#raw 0x61 ;Show
#raw 0xFE ;End of Movements

;-----------
; MartItems
;-----------
#org 0x810F87
#raw word ITEM_BERRYJUICE
#raw word ITEM_RARECANDY
#raw word ITEM_NONE
Try this. Once you have the script decompiled (as shown above) change the flags back and recompile it.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
  #2763    
Old December 26th, 2009 (07:45 AM).
Tropical Sunlight's Avatar
Tropical Sunlight Tropical Sunlight is offline
The Faltine
 
Join Date: Mar 2008
Location: Slovenia
Age: 18
Gender: Male
Posts: 3,578
Send a message via Windows Live Messenger to Tropical Sunlight
Quote originally posted by diegoisawesome:
Try this. Once you have the script decompiled (as shown above) change the flags back and recompile it.
No, still not working...

Why is it that these kind of things always happen to me?
__________________
  #2764    
Old December 26th, 2009 (07:49 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: 970
Quote originally posted by H2O Turquoise:
No, still not working...

Why is it that these kind of things always happen to me?
Well, then, what exactly happens when it crashes? And at what point in the script?
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
  #2765    
Old December 26th, 2009 (09:09 AM).
Teh Blazer's Avatar
Teh Blazer Teh Blazer is offline
Divider of Zero
 
Join Date: Feb 2009
Location: 'MERICA
Age: 19
Gender: Male
Nature: Relaxed
Posts: 689
Quote originally posted by lugiaguy:
I'm still very new to scripting, so this probably won't work, but it's worth a try. What I added is in bold.
Yeah, it didn't work. But thanks for trying. Anybody else want to help?
Spoiler:

'---------------
#org 0x71C000
checkflag 0x11D6
if 0x1 call 0x871BFFC
call 0x8873890
end

'---------------
#org 0x71BFFC
release
end

'---------------
#org 0x873890
lockall
playsong 0x12E 0x0
applymovement 0x1 0x871C050
pause 0x20
textcolor 0x01
msgbox 0x817532D 0x2 '"Oh [player], you're final..."
call 0x88738B0
end

'---------------
#org 0x8738B0
givepokemon 0x116 0x5 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
special 0x16F
showpokepic 0x116 0x0A 0x03
msgbox 0x819110F 0x2 '"Here, take this POKéMON I..."
hidepokepic
fanfare 0x13E
applymovement 0x1 0x871C11A
setflag 0x11D6
release
end


'---------
' Strings
'---------
#org 0x17532D
= Oh [player], you're finally going /nto start your journey as a /pPOKéMON Trainer!I am just /pso proud of you! /pIf only you had a /pPOKéMON partner to help you...

#org 0x19110F
= Here, take this POKéMON I had /nsince I was a child and this /pPOKéDEX and explore this world! Oh, I'm also /pgiving you these /pspecial RUNNING SHOES which can/p give you that little extra boost.


'-----------
' Movements
'-----------
#org 0x71C050
#raw 0x62 'Exclamation Mark (!)
#raw 0xB 'Step Right (Very Slow)
#raw 0x9 'Step Up (Very Slow)
#raw 0x4A 'Face Player
#raw 0xFE 'End of Movements

#org 0x71C11A
#raw 0x8 'Step Down (Very Slow)
#raw 0xA 'Step Left (Very Slow)
#raw 0xFE 'End of Movements
__________________
Coming soon...
  #2766    
Old December 26th, 2009 (11:30 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 Teh Blazer:
Yeah, it didn't work. But thanks for trying. Anybody else want to help?
Spoiler:

'---------------
#org 0x71C000
checkflag 0x11D6
if 0x1 call 0x871BFFC
call 0x8873890
end

'---------------
#org 0x71BFFC
release
end

'---------------
#org 0x873890
lockall
playsong 0x12E 0x0
applymovement 0x1 0x871C050
pause 0x20
textcolor 0x01
msgbox 0x817532D 0x2 '"Oh [player], you're final..."
call 0x88738B0
end

'---------------
#org 0x8738B0
givepokemon 0x116 0x5 0x0 0x0 0x0 0x0
setflag 0x828
setflag 0x829
special 0x16F
showpokepic 0x116 0x0A 0x03
msgbox 0x819110F 0x2 '"Here, take this POKéMON I..."
hidepokepic
fanfare 0x13E
applymovement 0x1 0x871C11A
waitmovement 0x0
setflag 0x11D6
release
end


'---------
' Strings
'---------
#org 0x17532D
= Oh [player], you're finally going /nto start your journey as a /pPOKéMON Trainer!I am just /pso proud of you! /pIf only you had a /pPOKéMON partner to help you...

#org 0x19110F
= Here, take this POKéMON I had /nsince I was a child and this /pPOKéDEX and explore this world! Oh, I'm also /pgiving you these /pspecial RUNNING SHOES which can/p give you that little extra boost.


'-----------
' Movements
'-----------
#org 0x71C050
#raw 0x62 'Exclamation Mark (!)
#raw 0xB 'Step Right (Very Slow)
#raw 0x9 'Step Up (Very Slow)
#raw 0x4A 'Face Player
#raw 0xFE 'End of Movements

#org 0x71C11A
#raw 0x8 'Step Down (Very Slow)
#raw 0xA 'Step Left (Very Slow)
#raw 0xFE 'End of Movements
What happens? I tried fixing it,but the problem will help still. Fixes in bold.Thats all I can see wrong,as of now.
  #2767    
Old December 26th, 2009 (10:12 PM).
liuyanghejerry's Avatar
liuyanghejerry liuyanghejerry is offline
 
Join Date: Jan 2008
Location: China,Xi'an
Nature: Calm
Posts: 218
Send a message via ICQ to liuyanghejerry Send a message via Windows Live Messenger to liuyanghejerry Send a message via Yahoo to liuyanghejerry
-。-I just got a problem when combine MOVE CAMERA script and NORMAL MOVE script:

Code:
#dynamic 0x800000
#org @start
lockall
special 0x113
applymovemenrt 0xFF @moveplayer1
pause 0x50
applymovement 0x7F @move1
waitmovement 0x0
pause 0x50
applymovement 0x7 @move2
waitmovement 0x0
pause 0x50
fadescreen 0x3
message @msg1 0x2
fadescreen 0x2
applymovement 0x7 @move3
waitmovement 0x0
pause 0x50
message @msg2 0x2
applymovement 0x7F @move4
special 0x114
releaseall
end
 
#org @moveplayer1
#raw 0x62
#raw 0xEF
 
#org @move1
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE
 
#org @move2
#raw 0x13
#raw 0x13
#raw 0xFE
 
#org @move3
#raw 0x16
#raw 0x03
#raw 0x62
#raw 0xFE
 
 
#org @msg1
=BBB
 
#org @msg2
=AAA
 
#org @move4
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE
Can anyone help this?
__________________
Zel,thethethethe,LU-HO,Darthatron,HackMew,ZodiacDaGreat,Juan,score_under,JPAN,Tamah-chan,I really appreciate your kindness and your help!:D


I did something that really bad.But made all Chinese can hack Pokemon, too.If you guys hate me, I totally understand,but cannot do anything but force to keep everything.
If there must be someone to undertake all spit and curse, it must be me.
  #2768    
Old December 26th, 2009 (10:17 PM).
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: 970
Quote originally posted by liuyanghejerry:
-。-I just got a problem when combine MOVE CAMERA script and NORMAL MOVE script:

Code:
#dynamic 0x800000
#org @start
lockall
special 0x113
applymovement 0xFF @moveplayer1
pause 0x50
applymovement 0x7F @move1
waitmovement 0x0
pause 0x50
applymovement 0x7 @move2
waitmovement 0x0
pause 0x50
fadescreen 0x3
message @msg1 0x2
fadescreen 0x2
applymovement 0x7 @move3
waitmovement 0x0
pause 0x50
message @msg2 0x2
applymovement 0x7F @move4
special 0x114
releaseall
end
 
#org @moveplayer1
#raw 0x62
#raw 0xFE
 
#org @move1
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE
 
#org @move2
#raw 0x13
#raw 0x13
#raw 0xFE
 
#org @move3
#raw 0x16
#raw 0x03
#raw 0x62
#raw 0xFE
 
 
#org @msg1
= BBB
 
#org @msg2
= AAA
 
#org @move4
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE
Can anyone help this?
A few misspellings. Nothing hard to fix.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
  #2769    
Old December 27th, 2009 (12:05 AM).
liuyanghejerry's Avatar
liuyanghejerry liuyanghejerry is offline
 
Join Date: Jan 2008
Location: China,Xi'an
Nature: Calm
Posts: 218
Send a message via ICQ to liuyanghejerry Send a message via Windows Live Messenger to liuyanghejerry Send a message via Yahoo to liuyanghejerry
Quote originally posted by diegoisawesome:
A few misspellings. Nothing hard to fix.
Sorry for that mistake...I just write the mistake at the post...When fixed,it still makes game crush...
__________________
Zel,thethethethe,LU-HO,Darthatron,HackMew,ZodiacDaGreat,Juan,score_under,JPAN,Tamah-chan,I really appreciate your kindness and your help!:D


I did something that really bad.But made all Chinese can hack Pokemon, too.If you guys hate me, I totally understand,but cannot do anything but force to keep everything.
If there must be someone to undertake all spit and curse, it must be me.
  #2770    
Old December 27th, 2009 (12:20 AM).
lbirrueta's Avatar
lbirrueta lbirrueta is offline
HAXXING'
 
Join Date: Aug 2009
Location: san jo'
Gender: Male
Nature: Relaxed
Posts: 31
Quote originally posted by Darthatron:
In Advance Map, select one of the green script tiles and click "Open Script". You need to choose XSE as the script editor, though.
after i do so how do i save the new script? make it say the new script when i play it?
  #2771    
Old December 27th, 2009 (09:07 AM). Edited December 27th, 2009 by Shadow_Knux.
Shadow_Knux's Avatar
Shadow_Knux Shadow_Knux is offline
 
Join Date: Jan 2009
Gender: Male
Nature: Brave
Posts: 25
Game: Fire Red
Type of Event: Person
Scripted in: XSE
Goal of Script: Display message, initiate trainer battle, display losing message, give shiny Dratini, display message, hide sprite.
What it does: It does everything, except I need to talk to the person after the battle in order for him to give the Dratini to me, and I want that to happen as soon as the battle finishes. The sprite also won't stay hidden, but that's not the main problem.
Script:
Spoiler:
'---------------
#org 0x71D888
setvar 0x8003 0x102
trainerbattle 0x0 0x4B 0x0 0x871D9FC 0x871D934
setvar 0x8003 0x1
setvar 0x4001 0x93
givepokemon 0x93 0x19 0xD8 0x0 0x0 0x0
fanfare 0x101
preparemsg 0x87B0000 '"[player] obtained a DRATINI!"
waitmsg
waitfanfare
bufferpokemon 0x0 0x93
bufferboxname 0x0 0x4037
bufferpokemon 0x1 0x4001
special2 LASTRESULT 0x165
compare LASTRESULT 0x1
if 0x1 goto 0x81A8C9B
msgbox 0x81A5D31 MSG_KEEPOPEN '"[buffer2] was transferred to\nBILL..."
msgbox 0x87B012C MSG_FACE '"Take care of that POKéMON.\pI have..."
fadescreen 0x1
closeonkeypress
hidesprite 0x12
fadescreen 0x0
end

'---------------
#org 0x1A8C9B
special2 LASTRESULT 0x18A
bufferboxname 0x2 LASTRESULT
msgbox 0x81A5DB1 MSG_KEEPOPEN '"BOX ["][buffer3]" on\nBILL'S PC wa..."
msgbox 0x87B012C MSG_FACE '"Take care of that POKéMON.\pI have..."
fadescreen 0x1
closeonkeypress
hidesprite 0x12
fadescreen 0x0
end


'---------
' Strings
'---------
#org 0x71D9FC
= My name is Lance. People\nrefer to me as "the Dragon Master".\pOnly the strongest trainers can\nwield Dragons.\pTell me, do you understand the\nstrength of the Dragon?\pShow me in a POKéMON battle.

#org 0x71D934
= It seems you do. Then, here,\ntake this POKéMON.\pIt is a Dragon, but it is\nmore rare than most.

#org 0x7B0000
= [player] obtained a DRATINI!

#org 0x1A5D31
= [buffer2] was transferred to\nBILL'S PC.\pIt was placed in \nBOX ["][buffer1]."

#org 0x7B012C
= Take care of that POKéMON.\pI have feeling we will meet\nagain sometime in the future.

#org 0x1A5DB1
= BOX ["][buffer3]" on\nBILL'S PC was full.\p[buffer2] was transferred to\nBOX ["][buffer1]."

Additional Notes: I tried making the trainer type 0x1, like you would expect, but after I add in the @after offset, it truncates the script to this:
Spoiler:
'---------------
#org 0x71D888
preparemsg 0x87B0000 '"[player] obtained a DRATINI!"
waitmsg
waitfanfare
bufferpokemon 0x0 0x93
bufferboxname 0x0 0x4037
bufferpokemon 0x1 0x4001
special2 LASTRESULT 0x165
compare LASTRESULT 0x1
if 0x1 goto 0x81A8C9B
msgbox 0x81A5D31 MSG_KEEPOPEN '"[buffer2] was transferred to\nBILL..."
msgbox 0x87B012C MSG_FACE '"Take care of that POKéMON.\pI have..."
end

'---------------
#org 0x1A8C9B
special2 LASTRESULT 0x18A
bufferboxname 0x2 LASTRESULT
msgbox 0x81A5DB1 MSG_KEEPOPEN '"BOX ["][buffer3]" on\nBILL'S PC wa..."
msgbox 0x87B012C MSG_FACE '"Take care of that POKéMON.\pI have..."
end


'---------
' Strings
'---------
#org 0x7B0000
= [player] obtained a DRATINI!

#org 0x1A5D31
= [buffer2] was transferred to\nBILL'S PC.\pIt was placed in \nBOX ["][buffer1]."

#org 0x7B012C
= Take care of that POKéMON.\pI have feeling we will meet\nagain sometime in the future.

#org 0x1A5DB1
= BOX ["][buffer3]" on\nBILL'S PC was full.\p[buffer2] was transferred to\nBOX ["][buffer1]."

The script for the 0x1 trainer type that I wrote is this:
Spoiler:
'---------------
#org 0x71D888
setvar 0x8003 0x102
trainerbattle 0x0 0x4B 0x0 0x871D9FC 0x871D934 0x871D86C
fadescreen 0x1
closeonkeypress
hidesprite 0x12
fadescreen 0x0
end

'---------------
#org 0x71D86C
setvar 0x8003 0x1
setvar 0x4001 0x93
givepokemon 0x93 0x19 0xD8 0x0 0x0 0x0
fanfare 0x101
preparemsg 0x7B0000
waitmsg
waitfanfare
bufferpokemon 0x0 0x93
bufferboxname 0x0 0x4037
bufferpokemon 0x1 0x4001
special2 LASTRESULT 0x165
compare LASTRESULT 0x1
if 0x1 goto 0x1A8C9B
msgbox 0x1A5D31 MSG_KEEPOPEN
msgbox 0x7B012C 0x2
end

'---------------
#org 0x1A8C9B
special2 LASTRESULT 0x18A
bufferboxname 0x2 LASTRESULT
msgbox 0x81A5DB1 MSG_KEEPOPEN '"BOX ["][buffer3]" on\nBILL'S PC wa..."
msgbox 0x87B012C MSG_FACE '"Take care of that POKéMON.\pI have..."
end


'---------
' Strings
'---------
#org 0x71D9FC
= My name is Lance. People\nrefer to me as "the Dragon Master".\pOnly the strongest trainers can\nwield Dragons.\pTell me, do you understand the\nstrength of the Dragon?\pShow me in a POKéMON battle.

#org 0x71D934
= It seems you do. Then, here,\ntake this POKéMON.\pIt is a Dragon, but it is\nmore rare than most.

#org 0x7B0000
= [player] obtained a DRATINI!

#org 0x1A5D31
= [buffer2] was transferred to\nBILL'S PC.\pIt was placed in \nBOX ["][buffer1]."

#org 0x7B012C
= Take care of that POKéMON.\pI have feeling we will meet\nagain sometime in the future.

#org 0x1A5DB1
= BOX ["][buffer3]" on\nBILL'S PC was full.\p[buffer2] was transferred to\nBOX ["][buffer1]."


Thank you in advance! This has been a pain in my neck for about 3 weeks now.
__________________
  #2772    
Old December 28th, 2009 (11:56 AM).
Teh Blazer's Avatar
Teh Blazer Teh Blazer is offline
Divider of Zero
 
Join Date: Feb 2009
Location: 'MERICA
Age: 19
Gender: Male
Nature: Relaxed
Posts: 689
Well, my game just freezes when I step on the tile. Anyone know how to fix it?
__________________
Coming soon...
  #2773    
Old December 28th, 2009 (12:05 PM).
Tropical Sunlight's Avatar
Tropical Sunlight Tropical Sunlight is offline
The Faltine
 
Join Date: Mar 2008
Location: Slovenia
Age: 18
Gender: Male
Posts: 3,578
Send a message via Windows Live Messenger to Tropical Sunlight
Quote originally posted by Teh Blazer:
Well, my game just freezes when I step on the tile. Anyone know how to fix it?
Maybe there's a script on it that has no var? Or any strange property bytes? Try checking those.
__________________
  #2774    
Old December 28th, 2009 (05:03 PM).
giradialkia's Avatar
giradialkia giradialkia is offline
Crystal Tier
 
Join Date: Apr 2009
Location: Ireland
Age: 21
Gender: Male
Nature: Timid
Posts: 1,549
Ok, so I'm hacking Emerald. I've read some tutorials, and I've got the basics down, such as simple message scripts, signs, and Yes/no choiceboxes. I was able to do these no problem before (as in a few weeks ago) but now that I've tried again, none of them work. Today, I even followed diegoisawesome's tutorial exactly (or thethethethe, whoever did one on XSE). I tried copying in the example scripts, typing them exactly, and yet when I press "A" on any sign or person the script is assigned to, all I get is an endless string of these characters:
Code:
qÀF
A space is also present, after the F. They just continue until I'm forced to reset. I really don't know what goes wrong, as I definately copy exactly what the example scripts say. For my dynamic offsets, I use the free space finder in AdvanceMap, click "OK" and use the first offset shown. Does anyone have any idea as to what I'm doing wrong? (because I really could get it to work before. Really. *rocks back and forth*). If you can solve this, you get a cookie
__________________

This one's called 'Blue', and it's very Pokémon themed, so have a listen! Check out the links below for more stuff, if you like this!



This is the Doctor
This is my Soundcloud
This is my bandcamp

My Pokémon Y character is the same as my username. If you see me as a Passerby let me know! I tend to get a lot of Passerby requests and I often wonder if it's people from this site.
  #2775    
Old December 28th, 2009 (05:23 PM).
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 giradialkia:
Ok, so I'm hacking Emerald. I've read some tutorials, and I've got the basics down, such as simple message scripts, signs, and Yes/no choiceboxes. I was able to do these no problem before (as in a few weeks ago) but now that I've tried again, none of them work. Today, I even followed diegoisawesome's tutorial exactly (or thethethethe, whoever did one on XSE). I tried copying in the example scripts, typing them exactly, and yet when I press "A" on any sign or person the script is assigned to, all I get is an endless string of these characters:
Code:
qÀF
A space is also present, after the F. They just continue until I'm forced to reset. I really don't know what goes wrong, as I definately copy exactly what the example scripts say. For my dynamic offsets, I use the free space finder in AdvanceMap, click "OK" and use the first offset shown. Does anyone have any idea as to what I'm doing wrong? (because I really could get it to work before. Really. *rocks back and forth*). If you can solve this, you get a cookie
Hmm maybe you opened the wrong rom and compiled it into the wrong rom?
__________________
Closed Thread
Quick Reply

Sponsored Links
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:10 PM.