Hi there.
i am trying to get a randomized npc system going. What I did was to use a bunch of actors and used some scripting magic to make events use their graphics. I created a bunch of variables to pick random numbers corresponding to the actors and then use these variables to control the individual events.
This is easy to set up and easily expandable but, there is a problem... duplicates.
The Eventing system does not allow for lists etc. to be used. So I need something that ensures i do not end up with duplicates. It would be possible using conditional branches, looping back in to themselves. But with a larger number of options for npcs this is just not practical.
Long story short, I need certain variables (in my test build 41-50) to be given a value from a range of possible numbers ( in my test build this would be 200-210) without any number being assigned twice.
Thanks in advance for any help.
P.S. Dear mods, i was unsure if this should go in to the general support or the JS support forums. Please move the post if need be.
i am trying to get a randomized npc system going. What I did was to use a bunch of actors and used some scripting magic to make events use their graphics. I created a bunch of variables to pick random numbers corresponding to the actors and then use these variables to control the individual events.
This is easy to set up and easily expandable but, there is a problem... duplicates.
The Eventing system does not allow for lists etc. to be used. So I need something that ensures i do not end up with duplicates. It would be possible using conditional branches, looping back in to themselves. But with a larger number of options for npcs this is just not practical.
Long story short, I need certain variables (in my test build 41-50) to be given a value from a range of possible numbers ( in my test build this would be 200-210) without any number being assigned twice.
Thanks in advance for any help.
P.S. Dear mods, i was unsure if this should go in to the general support or the JS support forums. Please move the post if need be.