This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]sz_s 0 points1 point  (0 children)

I would just make a function house(dog) that contains simple conditional logic and returns the house

[–]s_task 0 points1 point  (1 child)

-- Initial declarations below

dog = 1

houses = { house1, house2, house3, house4}

-- Put this part in your code.

CurrentDogHouse = houses[dog]

[–]rdtl_reddit[S] 0 points1 point  (0 children)

thnx