5,391
edits
m (typo) |
|||
Line 1: | Line 1: | ||
==Management of inventory items== | ==Management of inventory items== | ||
==Giving items to characters== | ==Giving items to characters== | ||
Line 139: | Line 138: | ||
*Giving negative amounts means taking away. Taking away more than you can means ''giving a lot''. If you have 1 clip of ammo and use <tt>give_powerup(ammo, -3)</tt>, you'll have 65534 ammo clips. | *Giving negative amounts means taking away. Taking away more than you can means ''giving a lot''. If you have 1 clip of ammo and use <tt>give_powerup(ammo, -3)</tt>, you'll have 65534 ammo clips. | ||
*Phase Cloak decays by 1 point every frame (1 second = 60 frames), so default is 30 seconds, max is 65534/60=1000 seconds | *Phase Cloak decays by 1 point every frame (1 second = 60 frames), so default is 30 seconds, max is 65534/60=1000 seconds | ||
*When the Phase Cloak amount is set to 65535, there is ''no'' decay ('''moonshadow''' effectively sets this amount to either -1=65535 | *When the Phase Cloak amount is set to 65535, there is ''no'' decay ('''moonshadow''' effectively sets this amount to either -1=65535 or 0) | ||
*"Special" aka '''lsi''' can be one of the following : Datapad, Rappelling Harness, Laser Torch, Zip Line Rider, Truck Keys. Depending on the level. | *"Special" aka '''lsi''' can be one of the following : Datapad, Rappelling Harness, Laser Torch, Zip Line Rider, Truck Keys. Depending on the level. | ||
*"amount" seems to be ignored in the case of '''lsi''', as the associated variable is a [[OSL:Data|boolean]]. In particular, you can't take an '''lsi''' item away. | *"amount" seems to be ignored in the case of '''lsi''', as the associated variable is a [[OSL:Data|boolean]]. In particular, you can't take an '''lsi''' item away. | ||
==Spawning loose items== | ==Spawning loose items== | ||
It's less complicated that giving items... or spawning characters. | It's less complicated that giving items... or spawning characters. |