Another way in which you can give out random rewards is to have multiple entries that could be triggered by the same keyword, in which case it will pick one at random. Like,
Code:
<SpeechEntry>
<EntryNumber>15</EntryNumber>
<ID>34</ID>
<Text>Here is your weapon.</Text>
<Action>GIVE/weapon1</Action>
<Keywords>weapon</Keywords>
<DependsOn>33</DependsOn>
</SpeechEntry>
<SpeechEntry>
<EntryNumber>16</EntryNumber>
<ID>34</ID>
<Text>Here is your weapon.</Text>
<Action>GIVE/weapon2</Action>
<Keywords>weapon</Keywords>
<DependsOn>33</DependsOn>
</SpeechEntry>
<SpeechEntry>
<EntryNumber>17</EntryNumber>
<ID>34</ID>
<Text>Here is your weapon.</Text>
<Action>GIVE/weapon3</Action>
<Keywords>weapon</Keywords>
<DependsOn>33</DependsOn>
</SpeechEntry>
where weapon1, weapon2, and weapon3 were items that you wished to hand out one of at random. Since all of the entries have the same dependencies, one of them would be selected at random.
__________________
The first line of the first rule in the forum rules and guidelines "Be respectful of others. "
For questions, information, and support for XmlSpawner and its addons, visit the
XmlSpawner Support Forum