Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Pokémon hacking.
Acmlm's Board - I2 Archive - Pokémon hacking - Nice try, but not a sucessful one. -SCRIPT FOR RUBY
  
User name:
Password:
Reply:
 

UserPost
loadingNOW
Posts: 60/61
well check every single instruction break everyting up in parts (or just set a breakpoint on the script handler and run the script to find out what happens.

chances are that there is a badly documented command which causes everything to crash.

while scripting has become somewhat more relyable in the last year it's still far from perfect. and as far as i know noone is working on that since i stopped (i really hoped someone would try to improve scriptdec (and thus the documentaion we have but that did not happen)
Baro
Posts: 306/366
Hm, I'd never figure What about the fact of the checkitem makes the screen turn black? Wait, I'd try to put a "fade in". if the screen fades out...


Edit: wait, the problem is that the event script doesn't execute! I'll try putting script events

Edit: still doesn't work. the problem is in the script, but I don't understand why doesn't it work.
interdpth
Posts: 471/527


#org 0x6b4330 'this is the level script !!!!
#raw 0x0
checkflag 0x750
if 0x0 goto 0x6b4370
setmaptile 0x13 0x1b 0x2e7 0x00
setmaptile 0x13 0x1a 0x20b 0x00'Well if we were actually programming i'd say call a vblank but you need to add this
fade out
fade in'this "refreshes the screen"
end

Baro
Posts: 305/366
I am creating a script that opens a door when you have a certain item I created. When the game loads the checkitem flag, the screen turns black, even if the item is another (the rest runs well if I put ' before checkflag). The level script doesn't run well, either if the "if" is 0x0 or 0x1, no tiles are put.




#org 0x6b43B0
checkflag 0x750
if 0x1 goto 0x6b4380
nop
checkitem 0x70
if 0x0 goto 0x6b4390
message 0x6b3E3D
boxset 0x5
compare LASTRESULT 0x1
if 0x0 goto 0x6b43a0
message 0x6b3ed5
boxset 0x6
setflag 0x750
#raw 0x01
warp 0x18 0x0f 0x0
end

#org 0x6b4380
message 0x6b3f1f
boxset 0x6
end

#org 0x6b4390
message 0x6b3dec
boxset 0x6
end

#org 0x6b43A0
message 0x6b3e8c
boxset 0x6
end


#org 0x6b4330 'this is the level script !!!!
#raw 0x0
checkflag 0x750
if 0x0 goto 0x6b4370
setmaptile 0x13 0x1b 0x2e7 0x00
setmaptile 0x13 0x1a 0x20b 0x00
end

#org 0x6b4370
nop
end
Acmlm's Board - I2 Archive - Pokémon hacking - Nice try, but not a sucessful one. -SCRIPT FOR RUBY


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.002 seconds.