Conditions for /ss makro #110


  • Accepted
Open
  • GaronneBC created this issue Jan 21, 2010

    I'm playing mainly on a RP-(Roleplay)-Server. And I think - since SiS seems to me to be a primary RP-directed AddOn - this might be something to be implemented:

    Add Conditions to select (or impede) some event hook speeches, so you can add speeches which only occur when you're inside, outside, based on time (morning, evening, etc.) and various other stuff. Guess, since SiS is (as far as I think) not about secure functions (since it's basically a speaking addon, and speech is not secure) I think it should be cool to be able to add /ss makros which account for time of day or whatever one might be able to think of...

    Might also be added as <substitution>s...

  • GaronneBC added the tags New Enhancment Jan 21, 2010
  • rismisner posted a comment Jan 21, 2010

    Restating your ideas by examples and thinking out loud...

    /ss macro hello

    • From 6:00 to 12:00 noon it says "good morning"
    • From 12:00 noon to 18:00 it says "good afternoon"
    • From 18:00 to 0:00 midnight it says "good evening"
    • From 0:00 midnight to 6:00 it says "good night"

    That could be done with a substitution for "good <partofday>" where <partofday> would be morning, afternoon, evening, or night, depending on the time of day, probably on 6 hour intervals:

    • midnight-6 = "night"
    • 6-noon = "morning"
    • noon-18:00 = "afternoon"
    • 18:00-midnight = "evening"

    All this would be based on server time (not local time).

    I'll note that RPers probably want it to use in-game time of day, which is based on server time.

    However, the in-game time of sunset is unknown to me, and I am unaware of an API to query for in-game time of sunset, or to check whether the sun is above the local horizon. It seems to always use summer times for sunrise/sunset in game, with days that are longer than nights, so the schedule is probably constant every day (not changing with the seasons as IRL). However, different regions do not always seem to be consistent about this, so it's possible that the different algorithms used for showing the sky in each region (which all have different skies) may be placing the sun in a different place. The point being the accuracy of determining when it's "night"

    Another example usage imagined from the OP for /ss macro hello

    • From 6:00 to 12:00 noon it says "Good <partofday> to you <target>, don't ya just love the smell of the mornin' dew?"
    • From 12:00 noon to 17:00 it says "Good <partofday> to you <target>, shouldn't you be at work this time of day?"
    • From 17:00 to 0:00 midnight it says "Good <partofday> to you <target>, something about twilight and the sound of crickets..."
    • From 0:00 midnight to 6:00 it says "Good <partofday> to you <target>, what are you still doing awake at this hour?"

    The point of those examples: the speeches for different times of day are too varied to achieve with a <substitution>, thus requiring hand-written speeches, in separate speech lists that would each be used only during certain hours. This would require a GUI to choose a range of time.

    Given the current limitations (3.3.0.07) separate speech lists require separate /ss macros, and each is either on or off, but you can combine several together to create more complex conditionals, i.e. trigger 4 separate /ss macro events at the same time, where only 1 of them takes effect because of the conditions (those conditions are currently limited to what kind of group you're in)

    In this case, you would have to write several /ss macros

    /ss macro hello

    • put the random chance and cooldown here
    • use a single speech that calls out all 4 of the following macros

    /ss macro hello morning

    • always speaks, 100% chance, no cooldown
    • select channels here
    • list speeches to use in the morning, i.e. "Good <partofday> to you <target>, don't ya just love the smell of the mornin' dew?"
    • use new GUI options (ticket 110) to enable this macro only between the hours of 6am and noon.

    /ss macro hello afternoon

    • always speaks, 100% chance, no cooldown
    • select channels here
    • list speeches to use in the morning, i.e. "Good <partofday> to you <target>, shouldn't you be at work this time of day?"
    • use new GUI options (ticket 110) to enable this macro only between the hours of noon and 18:00.

    repeat again for evening and night.

    The other idea you touched on was inside vs. outside. I can't think of any good uses for that, can you give an example of how you would use it?

  • rismisner removed a tag New Apr 1, 2010
  • rismisner added a tag Accepted Apr 1, 2010
  • rismisner posted a comment Oct 28, 2010

    Some additional requests have come up recently to attach conditions based on the target race or type (undead, beast, etc) as well as the zone you're in.

    A work-around has been suggested to setup pointers using /ss macro in the form of "/ss macro <spellname> <zone> <targetrace>" and variations on that idea.  That should work but probably has limitations as well.

  • rismisner removed their assignment Jan 16, 2013
  • rismisner assigned issue to _ForgeUser228323 Jan 16, 2013
  • rismisner posted a comment Jan 16, 2013

    I'm re-assigning all my tickets to Duerma

  • rismisner unassigned issue from _ForgeUser228323 May 7, 2015
  • rismisner posted a comment May 7, 2015

    Unassigning tickets that are not actively being worked on


To post a comment, please login or register a new account.