View Single Post
Old April 10th, 2012 (4:29 PM).
redriders180's Avatar
redriders180 redriders180 is offline
Mastermind of Pokemon Glazed
    Join Date: Jun 2010
    Location: Path of Victory, Tunod
    Gender: Male
    Nature: Quirky
    Posts: 540
    Originally Posted by sonic1 View Post

    Well, actually, they are normal flags, like 0x800 etc..., but are Hidden ID + Flag 0x3E8. (E.g: Hidden item 0x10 would be flag 0x3F8. Clear the flag to be able to get the item again)

    The script is somewhat easy. There are 0xBE hidden items. Here's a script made now for the purpose:
    #dynamic 0x800000
    #org @start
    setvar 0x8000 0x3E8 'Base flag
    setvar 0x8001 0x0   'Counter
    goto @loop
    #org @loop
    compare 0x8001 0xBE
    if B_> goto @end
    addvar 0x8001 0x1
    clearflag 0x8000    ' Clear flag in var 8000
    addvar 0x8000 0x1
    goto @loop
    #org @end
    setvar 0x8000 0
    setvar 0x8001 0     'Reset vars
    I made this in 5 minutes and didn't test it. Test it and please warn me if there's an inconvenience with this.

    (to @redriders180: I saw your PM, i just hadn't the time to answer it because its a little complex for my current time available)
    I just tested this, and for some odd reason, it's not working. I activated a hidden item in the usual way, obtained it, and then ran this script via signpost, but I couldn't get the item again. I even expanded it to clear every flag from 0x1 to 0xFFF, but nothing. Am I doing something wrong?

    I think I'm done with ROM hacking. I'll still pop in and visit, though.

    Reply With Quote