Skip to content

Instantly share code, notes, and snippets.

@flags
Created July 3, 2013 00:08

Revisions

  1. flags created this gist Jul 3, 2013.
    25 changes: 25 additions & 0 deletions dog.dat
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    [TALK]
    DESIRES_CONVERSATION_WITH:IS_SAME_RACE
    CAN_TALK_TO:IS_SAME_RACE

    [JUDGE]
    TRUST:IS_SAME_RACE{TARGET.TRUST+5},IS_FAMILY{TARGET.TRUST+10},HAS_ATTACKED_TRUSTED{TARGET.DANGER+5}
    FACTORS:IS_SAME_RACE
    BREAK_TRUST:HAS_ATTACKED_TRUSTED{TARGET.DANGER+5}

    [GROUP]
    WANTS_GROUP_MEMBER:IS_FAMILY

    [COMBAT]
    #List of STAT functions to check before entering state
    NEEDS:CAN_BITE,IS_HEALTHY

    #What to use for this engagement. LIMB[arg] or WEAPON
    #The bit inside the curly braces defines the type of combat: MELEE or RANGE
    USE:LIMB[JAW]{MELEE}

    #What target we engage (CLOSEST, HIGHEST, LOWEST)
    ENGAGE:CLOSEST

    #What we do to the target: KILL, MAIME
    TARGET:KILL