Secret syntax in oblivion scripts

Post » Mon May 12, 2014 9:10 am

I was reading http://cs.elderscrolls.com/index.php?title=Talk:GetRandomPercent of the CS wiki, when I come across this:

short varSet var to ( GetRandomPercent % <2..50> ) + 1

The question is simple:

What the...?!? Where do "<2..50>" come from?

User avatar
Blackdrak
 
Posts: 3451
Joined: Thu May 17, 2007 11:40 pm

Post » Mon May 12, 2014 11:52 am

I think that's just an example range showing how you might generate a random integer between 2 and 50. (The +1 corrects for the fact that GetRandomPercent starts at 0, not 1.)
User avatar
Jessica Lloyd
 
Posts: 3481
Joined: Fri Aug 25, 2006 2:11 pm


Return to IV - Oblivion