Variable Scripting Problem
#1

Well, whats my problem about.. I have a RP server.. On it i have a Medical Faction... Well, what i want to do is to can exctract blood to a patient, and then analize it... And it gives me a variable or random result.. For example: "Patient Patologies: Bacterium Streptococcus pneumoniae" or else any random bacterium of this list:

Streptococcus pneumoniae
Escherichia coli
Bacillus anthracis
Helicobacter pylori

Just that, i repeat, i want to do a random selection of a bacterium of these ones in a patient... Thanks!
Reply
#2

So, someone think that know?
Reply
#3

well at the top of the script you'd create an enum containing all of the things and then use a random()
Reply
#4

Instead of a Enum, have you tryed a flat out variable?



Reply
#5

UP!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)