Search the Community
Showing results for tags 'rand'.
Found 1 result
-
I'm trying to make a random reward that keeps the amount in the amount array. I've tried several variations/methods and this is the closest I have gotten: setarray .Prize[1],604,12129,617,12208,12103,12414; setarray .Prize[2],25,5,5,1,1,1; getitem .Prize[rand(getarraysize(.Prize))],.Prize[2]; This actually doesn't work, .Prize[1] in place of the rand command works, only getting the first values in each array, but as soon as I put the rand in there it won't get the .Prize[1] array. It says in map-server: [Error]: buildin_getitem: Nonexistant item 5 requested. [Debug]: Source (NPC): Disguise Event at quiz_02 (303,259) Item 5 being from .Prize[2], it just skips .Prize[1].