Full Version : random loot for reward?
xmlspawner >>XMLSpawner - Discussion >>random loot for reward?
<< Prev | Next >>
djinn- 11-23-2006
When doing a custom quest, can we offer random loot (specific items)? Haven't seen anything written about it.. thanks
ArteGordon- 11-23-2006
there are several keywords that can be used to generate random values. The
RND,min,max
RNDLIST,int1[,int2,....]
RNDSTRLIST,val1[,val2,....]
If you wanted to give out automatic rewards that were randomized, you could do things like
questholder/...../rewardstring/{RNDSTRLIST,platehelm,longsword}
which would assign the rewardstring one of the two string values listed.
questholder/.../rewardstring/bankcheck,{RNDLIST,1000,1500,10000}
would assign the rewardstring a bankcheck that had one of the three values.
djinn- 11-24-2006
you are the man thanks a bunch
peace
djinn- 11-24-2006
edit: Page by page somewhat works if you go back and edit it each time, but you can't paste from the book more than 1 page....
hit a small snag.. everytime I try and paste to the book it cuts off everything I'm trying to put in it, if it goes over 1 page...
GIVE/{RNDSTRLIST,<monsterstatuette/name/A Reward for Slaying yrmheart/type/daemon>,<monsterstatuette/name/A Reward for Slaying Wyrmheart/type/lich>,<monsterstatuette/name/A Reward for Slaying Wyrmheart/type/dragon>,<monsterstatuette/name/A Reward for Slaying Wyrmheart/type/ettin>,<monsterstatuette/name/A Reward for Slaying Wyrmheart/type/lizardman>,<monsterstatuette/name/A Reward for Slaying Wyrmheart/type/orc>,<monsterstatuette/name/A Reward for Slaying Wyrmheart/type/skeleton>,<monsterstatuette/name/A Reward for Slaying Wyrmheart/type/ogre>,<monsterstatuette/name/A Reward for Slaying Wyrmheart/type/gargoyle>}
that's my reward line...it puts
GIVE/{RNDSTRLIST,<monsterstatuette/name/A Reward for Slaying yrmheart/type/daemon>,<monsterstatuette/name/A Reward for Slaying Wyrmheart/type/lich>,<
so it's not working because obviously it's invalid and not closed....
something I'm doing wrong?
peace