View Single Post
  #312    
Old April 16th, 2009, 03:05 PM
Raiser
Beginning Trainer
 
Join Date: Jun 2008
Gender:
Quote:
Originally Posted by score_under View Post
You only extracted the new PKSVUI.exe, didn't you? XD
You need to extract every single file in the ZIP, and into the same folder.

The "unknown command #dynamic" means you haven't updated PKSV.exe, and the "Unknown value in checkattack" means you have an absolutely ancient PokeInc.txt

If you downloaded the "pksvui_only" zip file (I uploaded that by accident ) then get the other one: https://sourceforge.net/project/down...i_pkg2-0-0.zip
Ah, I see. Well it's working now. ;D
I'm just having trouble with the HM-Move still. (CUT on a tree)
So I start with this using the generator:
Spoiler:
' Also used as a demonstration of the new dynamic offsets:
#dyn FREESPACE400
#org @start
special 0x187
compare LASTRESULT 2
if == jump 0x81A7AE0
lockall
checkattack CUT
compare LASTRESULT 6
if == jump @donthave
setanimation 0 LASTRESULT
storepokemonvar 0 LASTRESULT
storeatk 1 CUT
msgbox @doit
callstd MSG_YESNO
compare LASTRESULT 0
if == jump 0x81BDF91
msgbox 0x81BDFD7 ' \v\h02 used \v\


And then I change the #dyn to #dynamic 0x700000

Then I click compile, and the offset comes up. I copy that and place it in Script Offset in A-Map. However, I open it back up and get

Spoiler:

#org 0x88000B7
'-----------------------------------
special 0x187
compare LASTRESULT 0x2
if 0x1 jump 0x81A7AE0 ' Equal To
lockall
checkattack 0xF
compare LASTRESULT 0x6
if 0x1 jump 0x8000000 ' Equal To
setanimation 0x0 0x800D
storepokemonvar 0x0 0x800D
storeatk 0x1 0xF
msgbox 0x8000000 ' \h7F v\h24
callstd MSG_YESNO ' Yes/No message
compare LASTRESULT 0x0
if 0x1 jump 0x81BDF91 ' Equal To
msgbox 0x81BDFD7 ' \v\h02 used \v\h03!
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xFF
#raw 0xBE
#raw 0xDD
#raw 0xD8
nop0 ' #raw 0x0
#raw 0xED
#raw 0xE3
#raw 0xE9
nop0 ' #raw 0x0
#raw 0xDF
#raw 0xE2
#raw 0xE3
#raw 0xEB
nop0 ' #raw 0x0
#raw 0xE8
#raw 0xDC
#raw 0xD5
#raw 0xE8
nop0 ' #raw 0x0
checkobedience 0xE7C7
nop0 ' #raw 0x0
#raw 0xD9
#raw 0xE2
#raw 0xD5
#raw 0xD6
#raw 0xE0
#raw 0xD9
nop0 ' #raw 0x0
CMD_FE 0xE3
#raw 0xE2
#raw 0xD9
nop0 ' #raw 0x0
#raw 0xE8
#raw 0xE3
nop0 ' #raw 0x0
#raw 0xD8
#raw 0xE3
nop0 ' #raw 0x0
#raw 0xE7
#raw 0xE4
#raw 0xD9
#raw 0xD7
#raw 0xDD
#raw 0xD5
#raw 0xE0
nop0 ' #raw 0x0
#raw 0xE8
#raw 0xDC
#raw 0xDD
#raw 0xE2
#raw 0xDB
#raw 0xE7
setdooropened 0xFB00 0xDDC6
#raw 0xDF
#raw 0xD9
#raw 0xB8
nop0 ' #raw 0x0
updatecoins 0xC7 0xA1
setweather 0xD500
#raw 0xE0
#raw 0xE0
#raw 0xE3
#raw 0xEB
#raw 0xE7
nop0 ' #raw 0x0
#raw 0xED
#raw 0xE3
#raw 0xE9
nop0 ' #raw 0x0
#raw 0xE8
#raw 0xE3
nop0 ' #raw 0x0
#raw 0xE7
#raw 0xEB
#raw 0xDD
#raw 0xE1
nop0 ' #raw 0x0
CMD_FE 0xDD
#raw 0xE2
nop0 ' #raw 0x0
#raw 0xEB
#raw 0xD5
#raw 0xE8
#raw 0xD9
#raw 0xE6
setdoorclosed 0xFB00 0xDCCE
#raw 0xD5
#raw 0xE8
givetocoincase 231 ' Bear in mind, it's not in hex
#raw 0xE7
#raw 0xE3
nop0 ' #raw 0x0
#raw 0xD7
#raw 0xE3
#raw 0xE3
#raw 0xE0
tempspriteface 0xFF 0x6A
faceplayer
msgbox 0x8800274 ' Always make sure you...
callstd MSG_NORMAL ' Normal message
release
end
#org 0x81A7AE0
'-----------------------------------
release
end
#org 0x8000000
'-----------------------------------
storepokemonvar 0x0 0xEA00
callasm2 0x6951AEFF
lightroom 0xA2
compare 0x843D 0xA82
storecomp 0xE4 0xAD09
writebytetooffset 0x24 0x81C0988B
storepokemonvar 0x21 0x52A3
#raw 0xBE
copyvar 0x993 0x20CE
setbyte2 0x46 0x4A
checkiteminpc 0x27F8 0xEC31
farreappear 0xE8C7 0x33 0x82
#raw 0xE3
checkobedience 0x85BF
#raw 0xF4
#raw 0xDF
hidemoney 0xCE 0x4B
callstd 0xC1 '
hidemoney 0x56 0x8A
showcoins 0x13 0x72
setmapfooter 0x9FFC
storecomp 0x4D 0xA373
msgboxsign
lightroom 0x61
farreappear 0xA397 0x27 0xFC
return
#org 0x81BDF91
'-----------------------------------
closemsg
releaseall
end

#org 0x8000000
= \h7F v\h24
#org 0x81BDFD7
= \v\h02 used \v\h03!
#org 0x8800274
= Always make sure you're \nprepared before a battle. \pSo check your items and POKéMON.


Don't know what that is, but obviously, the event itself didn't work.
I'm probably doing something wrong, but what is it? xD

Oh also, what command is used to change the music of a WILD BATTLE (generated by the generator)?

Thanks.