Quote:
Originally Posted by TigerC10
I love it when people actually have the code for a mod they're developing. It makes things so much more fun and interesting.
|
And I love it when people post such amazingly perfect responses! I'll take a look at where I screwed up, at least I know I was in the right hook location!

I'm actually really surprised at myself for that, considering last time I wrote an addon, there were no such things as "hooks" and "plugins"... Code works nicely though, thank you.
Edit: I think there's a slight mistake though... if you "
count($rndgroups)" when there's 3 groups in the list, you get a result of 3. At that point, you randomly pick between 0-3... But if 3 is picked, there is no $rndgroups[3] to correspond to it. That's why I had a -1 on mine, to drop the count by 1 then randomly pick. Or am I wrong to do that?