Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
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 | | | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
User | Post | ||
Baro Hoarder Level: 30 Posts: 305/366 EXP: 153824 For next: 12045 Since: 07-07-04 From: Portonovo, Spain Since last post: 1 day Last activity: 15 hours |
| ||
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 |
|||
interdpth Rex Level: 36 Posts: 471/527 EXP: 294398 For next: 13712 Since: 03-20-04 Since last post: 10 days Last activity: 31 days |
| ||
#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 Hoarder Level: 30 Posts: 306/366 EXP: 153824 For next: 12045 Since: 07-07-04 From: Portonovo, Spain Since last post: 1 day Last activity: 15 hours |
| ||
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. (edited by Baro on 06-10-05 11:36 PM) (edited by Baro on 06-10-05 11:46 PM) |
|||
loadingNOW Red Paragoomba Level: 14 Posts: 60/61 EXP: 10382 For next: 2689 Since: 07-15-04 From: Silent Hill Since last post: 136 days Last activity: 3 days |
| ||
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) |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread |
Acmlm's Board - I2 Archive - Pokémon hacking - Nice try, but not a sucessful one. -SCRIPT FOR RUBY | | | |