Hello there!!
I'm trying to create a stealth mission for my game (with very bad results 🤣)! I'm using, as said, terrax lighting.
The structure of the dungeon is the following:
- The player must get from point A to point B passing through a hallway, which is guarded.
- A guard is walking from side to side parallel to the hallway, with five stops along the way.
- For each stop, there is a torch which lights in the moment the guard gets in front of it. Once the guard moves, the torch turns off.
- If the player is found next to a lighted torch, an event will trigger and the player loses.
- If the player stays in the dark, so standing next to a turned off torch waiting for the lighted one to shut, it will not be noticed.
I've put five different regions, one for each torch. What I'm trying to do is to create several conditional branches that check if the player is standing in the same region as the guard. The thing that i'm missing is the script call that checks if the light is on or off. In fact, if this last part is missing, the guard will notice the player even if the torch is not lighted.
There is a plugin command that turns on or off the light, but I don't know how to use it in a conditional branch.
Could someone help me? Or even suggest a different way to get what I want?
I hope everything is understandable ☺️
I'm trying to create a stealth mission for my game (with very bad results 🤣)! I'm using, as said, terrax lighting.
The structure of the dungeon is the following:
- The player must get from point A to point B passing through a hallway, which is guarded.
- A guard is walking from side to side parallel to the hallway, with five stops along the way.
- For each stop, there is a torch which lights in the moment the guard gets in front of it. Once the guard moves, the torch turns off.
- If the player is found next to a lighted torch, an event will trigger and the player loses.
- If the player stays in the dark, so standing next to a turned off torch waiting for the lighted one to shut, it will not be noticed.
I've put five different regions, one for each torch. What I'm trying to do is to create several conditional branches that check if the player is standing in the same region as the guard. The thing that i'm missing is the script call that checks if the light is on or off. In fact, if this last part is missing, the guard will notice the player even if the torch is not lighted.
There is a plugin command that turns on or off the light, but I don't know how to use it in a conditional branch.
Could someone help me? Or even suggest a different way to get what I want?
I hope everything is understandable ☺️