Action Management ~ Action Types - uchicago-cs/chiventure GitHub Wiki

Team Action Management - Action Types

Introduction

This Wiki explains the different actions available and how the actions are split into different types. Additionally, some actions have synonyms that ultimately perform the same action.

Relevant Files

action_structs.h actionmanagement.h actionmanagement.c

Kind 1 Actions - ITEM actions

Kind 1 actions are actions that are performed on an item. For example, eat item.

Kind 1 actions:

  • OPEN
  • CLOSE
  • PUSH
  • PULL
  • TURNON
  • TURNOFF
  • TAKE
  • PICKUP
  • DROP
  • CONSUME
  • USE
  • DRINK
  • EAT

Kind 1 synonyms:

  • pickup is equivalent to take
  • use, eat, and drink are equivalent to consume

Kind 2 Actions - PATH actions

Kind 2 actions are actions that are performed on a path. For example, walk path.

Kind 2 actions:

  • GO
  • WALK

Kind 3 Actions - ITEM-ITEM actions

Kind 3 actions are actions that are performed with one item and on another item. For example, knife use_on apple.

Kind 3 actions:

  • USE_ON
  • PUT

Kind 4 Actions - VIEW actions

Kind 4 actions are actions that are performed on a player in order to view one of their attributes. For example, view stats.

Kind 4 actions:

  • VIEW

The attributes that can be viewed:

  • stats
  • effects
  • inventory -show every item in the inventory
  • inventory "item" -show the long description of a single item
  • skills
  • quests -to view all quests
  • quest "quest name" -to view an individual quest
  • task

Kinds 5-7 are NPC actions.

See NPC ~ Action Documentation for more.