Forum

> > CS2D > Maps/Editor > Trigger_Random
Forums overviewCS2D overview Maps/Editor overviewLog in to reply

English Trigger_Random

7 replies
To the start Previous 1 Next To the start

old closed Trigger_Random

TwTrooper
User Off Offline

Quote
Maybe it can be a dumb idea, but it may help a lot when we are making maps with a lot of random events.

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:

• Name
• Trigger
• Probability

> "Probability" should be like this: [ xx ]/100

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.

Admin/mod comment

Closed because there is an idea thread (and I also think that this has been suggested already!) /DC

old Re: Trigger_Random

Apfelbrot
User Off Offline

Quote
Sounds interesting and would make some things easy, you can do someting similar with explosions and npcs/breakables though.
To the start Previous 1 Next To the start
Log in to reply Maps/Editor overviewCS2D overviewForums overview