State Countdown Popup

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

Do you want to visually display the number of turns that a state has before it expires?

For example, perhaps you have a state that will automatically kill you after 5 turns have passed, and you would like the player to see the number as a visual indicator.

This plugin allows you to display a small number popup above a battler’s head that represents the number of turns left before a particular state expires.

Download

Plugin: download here (right-click, save-as)

Related Plugins

Installation

Download ths plugin and place it in the “plugins” folder in your project’s “js” folder. Then open your Plugin Manager (F10), double-click an empty row, and select the HIME_StateCountdownPopup plugin.

Once it is in your list of plugins, turn the plugin on.

Usage

By default, states will not display the countdown popup. You must indicate whether the state should show it using the note-tag

  <show countdown popup>

Once the countdown popup has been enabled, the game will automatically display it whenever the state is added.

stateCountdownPopup2

Multiple Countdown Popup States

This plugin only supports one countdown popup at a time. This means that if the battler has two or more states that have the countdown popup enabled, only one of them will be picked.

The one that is picked is based on the “Priority” of the state. That is, the higher the priority, the more important it is.

In the case where there is a tie, the first state that the game saw will be picked.

Rounding the Counter

stateCountdownPopup3

Some plugins convert the state counter into a decimal number rather than a whole number. By default, this plugin does not do any rounding.

If you would like to round your numbers, please use this note-tag:

<show countdown popup>
  rounding: NUM_PLACES
</show countdown popup>

If you want it to round to whole numbers, use 0. If you want it to round to two decimal places, use 2. For example:

<show countdown popup>
  rounding: 0
</show countdown popup>


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