Welcome to the Achaea Forums! Please be sure to read the Forum Rules.

Denizen reactions

SkyeSkye The Duchess BellatereMember, Seafaring Liason Posts: 3,169 @@ - Legendary Achaean
I'm having a devil of a time trying to configure denizen reactions. In particular reactions of a denizen when an item is given to it. 

 REACTION <mob> <id> TRIGGER <trigger> [<parameters>]
  - Modify the triggering action of one of the denizens's existing reactions.
  - Parameters allow you trigger the reaction based on more specific instances
    of the trigger.
  - Parameters are context-specific to certain triggers:
    - Adding a phrase or word as a parameter to a "say" or "tell" trigger
      will cause the reaction to only fire if the phrase appears in the text
      that the denizen hears.
    - Adding a phrase or word as a parameter to an "emote" or "emote_seen"
      trigger will cause the reaction to only fire if the word or phrase
      matches the emote the mob has seen.
    - Adding an item or list of items as a parameter to a "give" trigger will
      cause the reaction to only fire if the item being given matches any of
      the items in the list. Using numeric entries as parameters will ensure
      that the reaction will only fire on those specific items.

This suggests that a bunch of items can be made to match. But for the life of me I can't get it to work even with only one item. 

reaction 287267 146 trigger give [skewer|plate|bowl|cake|cupcake|cup|platter|loaf|salad|cookie|scone|muffin|candy|roll|haunch|pie|pastry|sandwich|burger|bagel|wrap|tart|steak|drumstick] <-- I'm not really sure of how to set multiple parameters. I'd hoped that just 'food' would do but apparently not. 

reaction <denizen> <reactionID> action emote delicately eats as much of $(item) as she can and then disposes of it politely.




Comments

  • TrevizeTrevize Member Posts: 1,517 @ - Epic Achaean
    edited October 2015
    edit: Nevermind, it says list.

    I've never gotten that to work, myself.
    Current scripts: GoldTracker 1.2, mData 1.1
    Site: https://github.com/trevize-achaea/scripts/releases
    Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
    Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
  • TrevizeTrevize Member Posts: 1,517 @ - Epic Achaean
    I played around with it for you. It's a bug, and the bug isn't in the list, but in the emote. Lists are space-separated.

    This worked fine:
    reaction steward 147 trigger give bloodroot irid valerian
    reaction steward 147 action emote smiles

    This did not work:
    reaction steward 147 trigger give bloodroot irid valerian
    reaction steward 147 action emote smiles at $(item)



    After further testing, drop also doesn't show right:

    You give a staff of the crescent moon to an officious steward.
    An officious steward a staff of the crescent moon.
    Current scripts: GoldTracker 1.2, mData 1.1
    Site: https://github.com/trevize-achaea/scripts/releases
    Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
    Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
    Skye
  • TrevizeTrevize Member Posts: 1,517 @ - Epic Achaean
    Even better.

    reaction steward 147 trigger give plant
    reaction steward 147 action emote smiles

    works perfectly fine. So I imagine 'food' would if it's a keyword you can use for the item? Or if not, bowl plate platter etc.
    Current scripts: GoldTracker 1.2, mData 1.1
    Site: https://github.com/trevize-achaea/scripts/releases
    Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
    Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
    Skye
  • SkyeSkye The Duchess BellatereMember, Seafaring Liason Posts: 3,169 @@ - Legendary Achaean
    Okay so it's probably the $(item) variable that messes up. 


    Trevize
  • KyrraKyrra AustraliaMember Posts: 4,924 @@ - Legendary Achaean
    Skye said:
    Okay so it's probably the $(item) variable that messes up. 
    Aren't items normally a @ for emotes and reactions though? Unless you changed your settings.
    (D.M.A.): Cooper says, "Kyrra is either the most innocent person in the world, or the girl who uses the most innuendo seemingly unintentionally but really on purpose."

  • SkyeSkye The Duchess BellatereMember, Seafaring Liason Posts: 3,169 @@ - Legendary Achaean
    Yah but that's what it is says in the helpfile


  • ShirszaeShirszae Santo DomingoMember Posts: 3,357 @@ - Legendary Achaean
    @Skye The problem is that $(item) only works for the return action. Also, it seems 'food' doesn't work on all foods for the purposes of reactions. So you'd have to do something like this:

    reaction emeric 148 trigger give trout
    reaction emeric 148 action return blinks as he studies $(item)

    This would essentially accomplish what you want, since the denizen would return your item but it would not actually show him or her doing so. The real problem is that it does not seem to recognize general words like 'food' or 'mineral' or the like.

    And you won't understand the cause of your grief...


    ...But you'll always follow the voices beneath.

Sign In to Comment.