Enhanced Events v2.2 (Small enhancements, moved samples to an addon)

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by Enelvon, Jul 6, 2014.

    Tags:
  1. Enelvon

    Enelvon Slumbering Goddess Veteran

    Messages:
    240
    Likes Received:
    134
    Location:
    Dreamland
    First Language:
    English
    Enhanced Events v2.2

    by Enelvon

    Introduction

    This script adds in some new features for events, including extra conditions (such as script calls or requiring more than one actor to be in the party), moving like a boat, ship, or airship, and changed passability so that events set as Below Characters or Above Characters no longer block the movement of events set as Same as Characters, unless they include a certain tag in a Comments box. v2.0 adds in the ability to alter the effective size of an event for passability and activation as well as the ability to adjust the event's draw position.

    Features

    • Fixes event passability - events set to Same as Characters will no longer be blocked by events set to Below Characters or Above Characters.
    • Allows you to specify alternate sizes for events - both rectangular and complex!
    • Alternate passability settings for events - create boats!
    • Events can generate sound effects whose volume is affected by their distance from the player - create waterfalls!
    • Give event pages extra conditions! These can consist of *anything* that evaluates to true or false. See the Condition Suite addon for a large list of examples, and feel free to post questions!

    Usage

    This script is controlled through tags placed in comments boxes on event pages as well as through the Conditions hash in the SES::EnhancedEvents module. Instructions for the hash are detailed in the module itself, while information about the tags is provided here.

    <Adjusted !XY!: !Val!>Place this in a comments box to adjust the position in which an event is drawn. You may have up to two of these per event, one for X and one for Y.

    **Replacements:**

    !XY! should be either X or Y, depending on what you want to adjust.

    !Val! should be an integer value. If you're adjusting the X, negative values will move the image towards the left side of the screen and positive values will move it towards the right. If you're adjusting the Y, negative values will move the image towards the top of the  screen and positive values will move it towards the bottom.
     

    <!Dir! Size: !Val!>Place this in a Comments box to adjust the size of an event. This affects both passability related to the event and spaces in which it can be activated. This is particularly useful for things like doors that are two spaces wide. You can have up to four of these tags per event - one for each direction.

    **Replacements:**

    !Dir! with the direction whose size you wish to alter. Possible values are Left, L, Right, R, Up, U, Down, and D.

    !Val! with the number of spaces to add in the specified direction.
     

    <Occupies: [!X!, !Y!](, [!X!, !Y!], [!X!, !Y!],...)>Place this in a Comments box to specify spaces for an event to occupy. This affects both passability related to the event and spaces in which it can be activated. While the <Dir Size> tag is used to enlarge an event's rectangular size, the <Occupies> tag is used to allow events to have other shapes like triangles, circles, or octopi. Each [X, Y] pair placed in the tag will specify an offset - [1,1] would point to the space below and to the right of the event, while [-1,1] would point to the space below and to the left.

    **Replacements:**

    !X! should be the X offset for a given space. Negative values indicate spaces to the left of the event. Positive values indicate spaces to the right of the event.

    !Y! should be the Y offset for a given space. Negative values indicate spaces above the event. Positive values indicate spaces below the event.

    <Condition: !Cond!(, !Cond!, !Cond!,...)>Place this in a Comments box to give an event page extra conditions. You can include as many of these as you would like on a page, though as each tag can contain multiple conditions it seems unlikely that you will need more than one.

    **Replacements:**

    !Cond! with the name of the key in Conditions that you want to use as a condition.
     

    <EventBlock>Place this in a Comments box to cause an event to prevent other events from passing them, regardless of their priority type.

    **Replacements:**

    None.
     

    <MovementType: !Type!>Place this in a Comments box to change the movement type of the event page to that of a boat, ship, or airship.

    **Replacements:**

    !Type! with Boat, Ship, or Fly.
     

    <Sound: !SE!, !MV!, !MD!>Place this in a Comments box to cause the event to produce a Sound Effect when the player is near.

    **Replacements:**

    !SE! with the name of the file in Audio/BGS (without the extension).

    !MV! with the loudest the sound is allowed to be (max 100).

    !MD! with the maximum distance that the player can be and still hear the sound (albeit faintly); this is also used to calculate how loud the sound is at various distances.

    Script

    This script is available from SES VX Ace.

    Installation

    Place below Materials and the SES Core and above all other custom scripts.

    Credit and Thanks

    • Enelvon
    Author's Notes
    This script is made available under the terms of the MIT Expat license. View this page for more information.
     
    Last edited by a moderator: Jul 27, 2014
    #1
  2. Enelvon

    Enelvon Slumbering Goddess Veteran

    Messages:
    240
    Likes Received:
    134
    Location:
    Dreamland
    First Language:
    English
    Updated to v2.1. This update includes a few small bugfixes related to inactive events as well as a greatly overhauled system for extra conditions. There is also a greatly expanded list of default conditions available to serve as examples.
     
    #2
  3. Kane Hart

    Kane Hart Elmlor.com Veteran

    Messages:
    656
    Likes Received:
    165
    Location:
    Barrie, Ontario, Canada
    First Language:
    English
    This looks great. Thanks :)
     
    #3
  4. Enelvon

    Enelvon Slumbering Goddess Veteran

    Messages:
    240
    Likes Received:
    134
    Location:
    Dreamland
    First Language:
    English
    Updated to v2.2! The sample conditions are now located in an addon to avoid cluttering the main script. I have also improved the system used to identify individual conditions within the tag. Feel free to ask questions about how to create specific conditions or to suggest other ways in which events can be improved!
     
    #4
  5. ♥SOURCE♥

    ♥SOURCE♥ Too sexy for your party. Member

    Messages:
    693
    Likes Received:
    410
    I really like this script, and that feature alone deserves its own topic. Awesome job!
     
    #5
  6. Enelvon

    Enelvon Slumbering Goddess Veteran

    Messages:
    240
    Likes Received:
    134
    Location:
    Dreamland
    First Language:
    English
    Glad you like it! This is one of the scripts that I'm thinking about updating soon, so this was a timely bump!
     
    #6
  7. Oddball

    Oddball Veteran Veteran

    Messages:
    1,210
    Likes Received:
    236
    First Language:
    English
    Sounds interesting. What are your terms of use?
     
    #7

Share This Page