Extending the Effect Manager beyond items and skills

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

So I thought that it would be cool if effects weren’t limited to just items or skills. What if the weapons we used had their own effects, or the armors have effects. Or maybe the states themselves have effects? So I extended the effects to weapons, armors, and states, re-structured the script somewhat, and now it is possible to write all sorts of things using effects trivially whereas before it would have required lengthy amounts of code to handle all the re-writes and aliases. And it probably still wouldn’t be as nice.

At the moment, the following effect triggers are available

  • Item effect – when an item is used
  • Skill effect – when a skill is used.
  • Weapon effect – when the weapon is used (eg: basically when a skill is used)
  • Armor effect – when you are attacked (by a skill or item)
  • State effect – activated when a state is active.

I’ve broken down the state effects into separate triggers to allow more flexibility

  • add_state state effect: triggers when state is added
  • remove_state state effect: triggers when state is removed
  • attack_state state effect: triggers when you attack (use item or skill)
  • guard_state state effect: triggers when you are attacked (by item or skill)

To test these triggers I’ve written several different effect plugins to demonstrate how they are used and to see whether it is easy to use or whether I should change the API. For now it seems good to enough.

Help spread the word!Share on FacebookShare on TumblrTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditFlattr the author

You may also like...

Leave a Reply

Your email address will not be published.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax