Index


CF+ map maker library and utilities

Top

object attachment: 'check_inventory_on_apply'

This attachment checks on apply whether the applyer has a specific item. Currently you can only match the slaying field of the inventory item of the player.

On match the apply isn't inhibited.

Following configuration can be supplied to this attachment:

key_string

This is the string that will be matched against the slaying field of the inventory item of the player. The first found item will be decreased by the amount that can be passed in the 'decrease_by_cnt' option.

decrease_by_cnt

This is the amount the matching object will be decreased by from the inventory. Default is 0 and means nothing will be removed.

message_on_match

This is the message that will printed to the player if a matching object was found.

message_on_nomatch

This is the message that will printed to the player if NO matching object was found.

object attachment: 'trigger_on_dialog_flag'

This attachment checks whether the player has a specific dialog flag set (the ones you can set with @setflag, see also NPC_Dialogue, and triggers a connection depending on that.

The attachment has following configuration:

flag

This field should contain the name of the flag that you want to check for.

connection

The connection ID of the connection you want to trigger.

state

The state of the connection: 0 for release, 1 for push.