View Single Post
Old March 30th, 2013 (4:51 AM). Edited March 30th, 2013 by BlackWhiteRobin.
BlackWhiteRobin's Avatar
BlackWhiteRobin BlackWhiteRobin is offline
    Join Date: Sep 2012
    Age: 19
    Gender: Male
    Nature: Quirky
    Posts: 537

    Originally Posted by karatekid552 View Post
    All you will need is setvar and compare.

    When you step on a tile, have this:

    setvar 0x[Var: see var list for a good one] 0x[House number]

    Then, put an invisible person or a tile in front of every house for which the script contains:

    checkflag 0x[Override] 'in case you want on override flag
    if 0x1 goto @this_house_is_unlocked
    compare 0x[Var we picked earlier] 0x[House number of this house]
    if 0x1 goto @this_house_is_unlocked
    if 0x0 goto @this_house_is_locked

    I think you can figure the rest out.

    Okay, I'll figure the rest out.

    Everyone! Anybody except karatekid552, does any of you have a var list? The one used in scripts!?
    I can't find a var list in diegoisawesome and tajaros' scripting thread!

    Also, what command in A-map do I use for a random weather?
    Here's the script:

    #org 0x80008A
    random 0xA
    compare LASTRESULT 0x0
    if 0x1 goto 0x88000FC
    compare LASTRESULT 0x1
    if 0x1 goto 0x8800102
    compare LASTRESULT 0x2
    if 0x1 goto 0x8800108
    compare LASTRESULT 0x3
    if 0x1 goto 0x880010E
    compare LASTRESULT 0x4
    if 0x1 goto 0x8800114
    compare LASTRESULT 0x5
    if 0x1 goto 0x880011A
    compare LASTRESULT 0x6
    if 0x1 goto 0x8800120
    compare LASTRESULT 0x7
    if 0x1 goto 0x8800126
    compare LASTRESULT 0x8
    if 0x1 goto 0x880012C
    compare LASTRESULT 0x9
    if 0x1 goto 0x8800132
    #org 0x8000FC
    setweather 0x1

    '--------------- #org 0x800102 setweather 0x2 doweather end

    '--------------- #org 0x800108 setweather 0x3 doweather end

    '--------------- #org 0x80010E setweather 0x4 doweather end

    '--------------- #org 0x800114 setweather 0x5 doweather end

    '--------------- #org 0x80011A setweather 0x7 doweather end

    '--------------- #org 0x800120 setweather 0xB doweather end

    '--------------- #org 0x800126 setweather 0xD doweather end

    '--------------- #org 0x80012C setweather 0x2 doweather end

    '--------------- #org 0x800132 setweather 0xB doweather end