[Update] Party Manager – Checking Location

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

The party manager has been updated to support location checking.

Having parties at different positions is nice, but in order to really use them for puzzles, you need to be able to check exactly where they are, and build your events based on it.

There are two ways to check party locations

1. Checking position.

For example, if you wanted to know if party 2 is at position (2, 14) on the map, you could do that with

Party.atLocation(2, 2, 14)

You could even check if they are at a position on a different map. For example, to check if party 2 is at position (2, 14) on map 9.

Party.atLocation(2, 2, 14, 9)

Of course, if you didn’t require a specific party to be at that position, you could check if ANY party was at that location. For example, to check if ANY party is at position (14, 15) on the current map, you could write

Party.anyAtLocation(14, 15)

Pass in a map ID if you want to check a different map.

2. Checking region.

If you had multiple tiles that would satisfy a requirement, you can potentially use region checking for that.

To check if party 3 is at a region 5, use the script call

Party.atRegion(3, 5)

To check if ANY party is at region 5, just write

Party.anyAtRegion(5)

Unfortunately, you can’t specify a different map to check. It always assumes the current map.

You can get the party manager at its release page here.

What can you do with location checking?

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...

4 Responses

  1. Kittipath Prasartkaew says:

    How did you assign the Party.switch(2) and Party.switch(1) commands to P key? How did you even assign it to any keys at all. I honestly can’t figure it out :/

  2. Kloe says:

    Can you make a demo of a basic button switch door thing? I still can’t get my head around it :/

    • Hime says:

      There are several ways to do it.

      You can create a parallel process on the door that checks whether the party is at a specific location or not.
      For example, let’s say your button switch is a tile on the ground with region 4. You can have a conditional branch that reads

      Party.AnyAtRegion(4)

      If they are, then you would do something to open the door, like switch to a different page that represents the “open” door.

      The other page then checks whether the party is NOT at that region, which is basically just the same condition except negated:

      !Party.AnyAtRegion(4)

      Notice the exclamation mark.
      Once this condition is met, the page would switch back to the “closed” door page.

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