View Single Post
  #24416    
Old March 30th, 2013 (04:18 AM).
karatekid552's Avatar
karatekid552 karatekid552 is offline
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Posts: 1,767
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by robin22gongon:
Sorry for the noobish question and being a disturbance, I haven't mastered vars yet and I'm more of like exam now lesson later type so...... Ummmm...... Sample?
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.
__________________

Paired with Simba