So I'm takin a dump shortly after doing a lot of events for my City RP's Time system. I then thought up an awesome function that would be very useful-variable sets.
Take, for example, part of the events for my RP Time. In it, i have events that add 1 to the variable TimeMin every quarter second. When TimeMin=60, it adds 1 to TimeHour and resets TimeMin-you get what im doing. This is where variable sets come in.
i made a clock to display the time onactivate. i also wanted to show the date in a February 27, 2012 form. whenever 1 was added to TimeMonth, ifvariables would modify TimeMonthDisplay to be 1=January, 2= February, and so on.
i thought that variable sets could be used in a similar fasion.
Onactivate-client-vceifvariable-TimeMonth == {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12} [1 1]
onvariabletrue-client-modvariable-TimeMonthDisplay-set-{January, February, march, april, may, june, july, august, september, october, november, december}
Sorry for stuffty event format but its my shorthand version.
so basically, what this does is if you have an ifvariable with a Set, as defined by { and }, it check each individual value in the set, then modify the value in the modvariable setwith the same placement.
hope the next vce update could have this because it could have many uses
tell me if this is already made.