Announcement

Collapse
No announcement yet.

Changing Objects display based on character location

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Changing Objects display based on character location

    Im sure anyone could come up with this but I thought I would share it with you.

    This script allows you change the display of an object based on the main characters position from the object.

    Like lets say the main character is 3 spaces away from an object then once he move one space close the object would disappear or change or do what ever you wanted.

    This could also be used in things such as character direction. Like remember in Super Mario Bros. World for SNES when you had stages with the ghost and if you would look at them they would stop and when you weren't looking at them they would move. You could alter this script to do just that.

    Anyways here is the script:


    Changing object appearance based on character location.

    Note: Maximum of ten objects with this script running.

    Repeat Flag Off
    Data: Game Info Load
    Event Control: Event Info Load
    Variable: X-Plus = Event X + (Range you want in front of the object)
    Variable: X-Minus = Event X - (Range you want behind the object)
    Variable: Y-Plus = Event Y + (Range you want in front of the object)
    Variable: Y-Minus = Event Y - (Range you want behind the object)

    (Outside of range)

    Condition: Party X > X-Plus
    Event Effects: (change model or turn display off or whatever you want)
    End
    Condition: Party X < X-Minus
    Event Effects: (change model or turn display off or whatever you want)
    End

    Condition: Party Y > Y-Plus
    Event Effects: (change model or turn display off or whatever you want)
    End
    Condition: Party Y < Y-Minus
    Event Effects: (change model or turn display off or whatever you want)
    End

    (Inside of range)

    Condition: Party X <= X-Plus
    Condition: Party X >= X-Minus
    Condition: Party Y <= Y-Plus
    Condition: Party Y >= Y-Minus
    Event Effects: (change model or turn display off or whatever you want)
    End
    End
    End
    End
    End Repeat
    Last edited by madcopper; 10-23-2008, 09:58 AM.


    TBS is coming shortly... I finally got off my lazy self and contacted Datel, so new Max Drive software is coming thus allowing me to release my TBS.
Working...
X