beacons and essences
Posted: Fri Oct 23, 2015 12:27 pm
if I wanted to do something like have the beacon of air on one level, then the beacon of fire on a different level etc...
and when the player places the correct essence on all 4 beacons then places the essence of balance on the beacon of balance, a teleporter appears.
how would I do this?
I need each beacon to respond only to the correct essence, and then when placing the balance essence, it checks for the conditions of all 4 essences placed correctly to be true.
I know this is a scripting thing.
does the game keep track of it if the beacons are all on different levels, like the fire is at x1 y1 z1 and the air is at x3 y1 z1 and then the balance beacon is at x2 y2 z1?
I'm still a noob to lua scripting. if it was me, i'd try to establish some global variable, that updates whenever a correct essence is placed or removed and when it reaches a certain value, the event occurs
maybe with a counter? like set the value to 5 and whenever the correct essence is placed on the beacons it decrements it by 1 and when all the essences are placed it activates the teleporter.
so i'd need it to say like for the fire beacon, something like "if essence_fire = true then decrememt the counter, else do nothing" (keep in mind i have absolutely no idea what i'm talking about lol)
perhaps this has all been explained elsewhere, but i don't know how to search it out, if you know a link to the answer, you can just direct me there.
and when the player places the correct essence on all 4 beacons then places the essence of balance on the beacon of balance, a teleporter appears.
how would I do this?
I need each beacon to respond only to the correct essence, and then when placing the balance essence, it checks for the conditions of all 4 essences placed correctly to be true.
I know this is a scripting thing.
does the game keep track of it if the beacons are all on different levels, like the fire is at x1 y1 z1 and the air is at x3 y1 z1 and then the balance beacon is at x2 y2 z1?
I'm still a noob to lua scripting. if it was me, i'd try to establish some global variable, that updates whenever a correct essence is placed or removed and when it reaches a certain value, the event occurs
maybe with a counter? like set the value to 5 and whenever the correct essence is placed on the beacons it decrements it by 1 and when all the essences are placed it activates the teleporter.
so i'd need it to say like for the fire beacon, something like "if essence_fire = true then decrememt the counter, else do nothing" (keep in mind i have absolutely no idea what i'm talking about lol)
perhaps this has all been explained elsewhere, but i don't know how to search it out, if you know a link to the answer, you can just direct me there.