Screwing around with the Bazaar.mac and I've done very little in regards to programming using macro language but I've got a fair amount of experience with programming in general. I was wondering, if I declare an array (which hopefully I did right) is there any way to randomly choose a value from that array?
For example, say I wanted my determinant percentage that calculates my items price to be chosen from 3 different values:
[CODE lang="ini" title="Array"] /declare pricePercentage[3] float outer
/varset pricePercentage[1] 0.92
/varset pricePercentage[2] 0.95
/varset pricePercentage[3] 0.97[/CODE]
Would be my arrays declaration (I think), how would I randomly choose a value to throw in to the equation calculating the items price, something like a misc.random?
Or is there a better way to do this?
Thanks!
For example, say I wanted my determinant percentage that calculates my items price to be chosen from 3 different values:
[CODE lang="ini" title="Array"] /declare pricePercentage[3] float outer
/varset pricePercentage[1] 0.92
/varset pricePercentage[2] 0.95
/varset pricePercentage[3] 0.97[/CODE]
Would be my arrays declaration (I think), how would I randomly choose a value to throw in to the equation calculating the items price, something like a misc.random?
Or is there a better way to do this?
Thanks!



I'll toy around with it, but anyone know any way to fix this? Pic for reference, works great otherwise!