Script Calls for changing an event's graphic (see post) and script code for and/or condition (post)

Discussion in 'RGSS Script Requests' started by RoseofCrimson, Feb 9, 2018.

  1. RoseofCrimson

    RoseofCrimson Veteran Veteran

    Messages:
    125
    Likes Received:
    38
    First Language:
    English
    Edit:

    Okay. I've ran into another brick wall seeing as I'm a novice(sorta) when it comes to things like this. I'd like to know the move player/ event script call for this engine.

    $game_map.events[event no].change_graphic(graphic, character, pose) Makes sense, but it's giving me an error and I can't for the life of me find anything to give me a hint.

    As for the "And/Or" clause or whatever when it comes to RMXP. I don't know the exact wording, but I know what I'm trying to do.

    Input.press?(Input::UP) && Input.trigger?(Input::A) <--- something like this in a conditional branch which will help me lower the amount of conditional branches needed by one (or more). I'm trying to say 'If the player holds the up key while pressing the a key trigger an event'.

    Also something like this

    Input.trigger?(Input::B) // Input.trigger?(Input::Y) <--- I'm trying to say 'if the player presses the "B" or "Y" key trigger an event'
     
    Last edited: Feb 10, 2018
    #1
  2. TheoAllen

    TheoAllen Self-proclaimed jack of all trades Veteran

    Messages:
    4,501
    Likes Received:
    5,106
    Location:
    Riftverse
    First Language:
    Indonesian
    Primarily Uses:
    RMVXA
    Something like this?
    Code:
    $game_map.events[1].animation_id = 1
     
    #2
    RoseofCrimson likes this.
  3. RoseofCrimson

    RoseofCrimson Veteran Veteran

    Messages:
    125
    Likes Received:
    38
    First Language:
    English
    EXACTLY THAT!
     
    #3
  4. RoseofCrimson

    RoseofCrimson Veteran Veteran

    Messages:
    125
    Likes Received:
    38
    First Language:
    English
    Bumparino!
     
    #4
  5. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    13,907
    Likes Received:
    7,683
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV
    @RoseofCrimson Please do not change your topic once it's solved and then bump it. Next time, open a new topic.
     
    #5
  6. RoseofCrimson

    RoseofCrimson Veteran Veteran

    Messages:
    125
    Likes Received:
    38
    First Language:
    English
    I didn't want to spam the forum. I guess I'll do that.
     
    #6

Share This Page