
Ok, I was making a map with some random events. I did it with LUA Script, but it's a bit tiring to make a script for each place we need one.
I think it might be a good idea to create a "Trigger_Random" that does something near that math.random does.
I've been thinking in kind of probability.
The entity will have 3 properties:




XX = probability from zero to one hundred, which triggers a entity
So, just a silly example:
A guy runs into a move entity, and it triggers the Trigger_Random, then it has a probability to trigger an Env_NPC in front of him, something like this.
That's all.
Please comment.