FutureProg functions
createtrap
Overload 1
createtrap overload 1
Trap createtrap(Perceivable anchor, Number template, Character creator)
Available in
- computer function
- computer program
- standard futureprog
Deploys a current, valid trap template and returns the new trap, or null if deployment was invalid.
| Parameter | Type | Description |
|---|---|---|
anchor |
Perceivable |
The item or location on which to deploy the trap. |
template |
Number |
The current trap template ID. |
creator |
Character |
The attributed creator, or a natural NPC. |
Overload 2
createtrap overload 2
Trap createtrap(Perceivable anchor, Number template, Character creator, Item Collection components)
Available in
- computer function
- computer program
- standard futureprog
Deploys a trap with physical components. Mechanical components must be colocated, uninstalled, persistent items; magical and natural traps ignore the collection.
| Parameter | Type | Description |
|---|---|---|
anchor |
Perceivable |
The item or location on which to deploy the trap. |
template |
Number |
The current trap template ID. |
creator |
Character |
The attributed creator. |
components |
Item Collection |
Physical items satisfying a mechanical template's tagged requirements. |
Overload 3
createtrap overload 3
Trap createtrap(Perceivable anchor, Text template, Character creator)
Available in
- computer function
- computer program
- standard futureprog
Deploys a current, valid trap template and returns the new trap, or null if deployment was invalid.
| Parameter | Type | Description |
|---|---|---|
anchor |
Perceivable |
The item or location on which to deploy the trap. |
template |
Text |
The current trap template name or ID. |
creator |
Character |
The attributed creator, or a natural NPC. |
Overload 4
createtrap overload 4
Trap createtrap(Perceivable anchor, Text template, Character creator, Item Collection components)
Available in
- computer function
- computer program
- standard futureprog
Deploys a trap with physical components. Mechanical components must be colocated, uninstalled, persistent items; magical and natural traps ignore the collection.
| Parameter | Type | Description |
|---|---|---|
anchor |
Perceivable |
The item or location on which to deploy the trap. |
template |
Text |
The current trap template name or ID. |
creator |
Character |
The attributed creator. |
components |
Item Collection |
Physical items satisfying a mechanical template's tagged requirements. |