kts.AddStartingGear – set up starting gear for knights
kts.AddStartingGear(item_type, number, ...)
Set up starting gear for knights.
Knights will receive the given ItemType as part of their starting gear. The item type is followed by a list of numbers, which are the number of copies of the item to be given. The first number applies the first time the knight spawns, the second number to the second spawn, and so on. Once the end of the list is reached, the knight no longer receives that item of starting gear.
No value is returned.
If the inputs are incorrect, an error is raised.
kts.AddStartingGear(i_dagger, 5, 4, 3, 2)
The above gives players a supply of daggers each time they spawn. On the first spawn, they get 5 daggers. On the second, they get 4 daggers, then 3, then 2, and after that, they no longer receive starting daggers.
(The example assumes that an ItemType i_dagger
has previously been created by a call to kts.ItemType.)