Idle Party Conditions

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

idlePartyConditions

This script provides a set of methods for conditional branch checking involving parties. You can use it to determine whether another party is at a specific position on a map.

Downloads

Script: download here
Required: Idle Party Events

Installation

In the script editor, place this script below Party Manager and above Main

Usage

The following methods are available:

party_here?(party_id, x, y)

Returns true if the specified party is at (x,y)

parties_here?(party_ids, x, y)

Same as above, except it takes an array of party IDs. If none is specified, then it checks if any party is at (x,y)

If you don’t specify an (x, y) position, then it is assumed to be the current
event’s position. This is useful if you want the check to be relative to
an event’s position rather than absolute map position.

Example

To check if party 2 is at (3, 5), you would use the script call

party_here?(2, 3, 5)

Assuming an event at (3, 3) wants to know if party 2 is standing on it, have
that event use the script call

party_here?(2)

To check if either party 1 or party 2 is at (5,6),

parties_here?([1,2], 5, 6)
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...

2 Responses

  1. fifaxion says:

    Hi Hime!

    I don’t know if I’m missing something but I’m trying that script and the event works on any party, not only the one I conditioned. In example, I use the script call party_here?(2) and you get a text, but it works with the party 2 and the initial party too, so I guess there’s something wrong on myself or I miss something important that doesn’t come my mind at the moment.

    Excuse my broken brain and thanks for your time.

    • Hime says:

      I am not sure what might be the problem, since I can’t reproduce the issue myself. Create a post on the forums with screenshots and see if someone can find the problem.

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