What I would like to do next is create a test condition to prevent that code section from running a second time should the script be run again. And that is where I am running into a wall. I cannot find a method to check if a leveled lists contains a entry for another leveled list.
Here is my current code running in a gamemode block of a quest script. It compiles but does not function. Any ideas?
Set rListAmmo to LootAmmoBullets100 IF (ListGetFormIndex rListAmmo xCalxLootAmmo) == -1 AddItemToLeveledList LootAmmoBullets100 xCalxLootAmmo 0 10 1EndIF