Didn't work, it turns out to be an infinite loop D:
Set SpawningItem[1] = |c0000ffffSword|r
Set SpawningItem[2] = |c00cc00ccDagger|r
Set SpawningItem[3] = |c00ff0000Axe|r
Set SpawningItem[4] = |c00ffff00Wand|r
Set SpawningItem[5] = |c00006666Iron Chestplate|r
Set SpawningItem[6] = |c0099ff99Night Mail|r
Set SpawningItem[7] = |c006600ccLight Boots|r
Set SpawningItem[8] = Crap
Set SpawningItemTotal = 8
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Set SpawningItemTotal = (SpawningItemTotal + 1)
Set SpawningItem[SpawningItemTotal] = Healing Potion
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Set SpawningItemTotal = (SpawningItemTotal + 1)
Set SpawningItem[SpawningItemTotal] = Swiftness Potion
For each (Integer A) from 1 to 5, do (Actions)
Loop - Actions
Set SpawningItemTotal = (SpawningItemTotal + 1)
Set SpawningItem[SpawningItemTotal] = Instant Healing Potion
For each (Integer A) from 1 to SpawningItemTotal, do (Actions)
Loop - Actions
Custom script: loop
Set CP_Point = (Random point in (Playable map area))
Trigger - Run Check Walkability <gen> (checking conditions)
Custom script: exitwhen udg_CP_PointIsWalkable == true
Custom script: call RemoveLocation(udg_CP_Point)
Custom script: endloop
Item - Create SpawningItem[(Integer A)] at CP_Point
Custom script: call RemoveLocation(udg_CP_Point)