Guys Please HELP T.T

Discussion in 'JS Plugin Requests' started by Isabella Ava, Dec 2, 2017.

Thread Status:
Not open for further replies.
  1. Isabella Ava

    Isabella Ava Veteran Veteran

    Messages:
    636
    Likes Received:
    751
    First Language:
    English
    Hi there, i need help with scripts to change party leader (#1 member in party) 's walking graphic into the same walking graphic as another event/current event, plz
    Thanks guys @.@
     
    #1
  2. dbchest

    dbchest Beast Master Veteran

    Messages:
    434
    Likes Received:
    297
    Location:
    Pennsylvania
    First Language:
    English
    Primarily Uses:
    RMMV
    are you performing this via event command? if so:
    Code:
    var event = $gameMap.event(this._eventId);
    $gameParty.leader().setCharacterImage(event.characterName(), event.characterIndex());
    the first line grabs the instance of Game_Event which is currently processing the interpreter.
    the second line matches the graphics.

    **you can explicitly specify any event id when defining the event variable to match that event's graphics.
     
    Last edited: Dec 2, 2017
    #2
  3. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,555
    Likes Received:
    10,495
    First Language:
    English
    Primarily Uses:
    RMVXA
    Just a recommendation for the future - everyone posting in the Support areas of the forum needs help. Please give a more descriptive title to your topics so that people have an idea of what the issue is before opening the thread. This also helps anyone in the future who has a similar query to find answers.

    As for your actual query - Plugin Support is for when you have a query with an existing plugin. This sounds like you are requesting one. Is that right? Because if so, I shall have to move this.

    But - do you even need a plugin? Have you tried the 'change actor images' (3rd tab of the event command menu) and if you have, why does it not meet your needs? We need more details of what you are trying to do if we are to give precise advice.
     
    #3
  4. Isabella Ava

    Isabella Ava Veteran Veteran

    Messages:
    636
    Likes Received:
    751
    First Language:
    English
    Sorry but it doesn't work @dbchest . After i talked to the Event NPC character graphic didn't change along
    upload_2017-12-2_2-36-13.png

    @Kes Sorry for didn't make it clear. I don't mean to setup change graphic event manually but automatically for every events that player is talking to
     
    #4
  5. waynee95

    waynee95 Lunatic Coder Veteran

    Messages:
    623
    Likes Received:
    506
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    You need to add $gamePlayer.refresh();

    So the whole thing would look like this:
    Code:
    var event = $gameMap.event(this._eventId);
    $gameParty.leader().setCharacterImage(event.characterName(), event.characterIndex());
    $gamePlayer.refresh();
     
    #5
    Isabella Ava and dbchest like this.
  6. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,555
    Likes Received:
    10,495
    First Language:
    English
    Primarily Uses:
    RMVXA
    This definitely sounds like it's a Request, so I shall move the thread.

    However, you explanation raises more questions - is sounds as if what you mean is that you want the actor graphic to change into the same graphic as the NPC that the actor is talking to. So if he's talking to a man with green hair and a blue robe, he will be wearing a blue robe and have green hair. Or if he's talking to a young girl, he becomes a young girl. Is that what you mean? If not, please give a couple of examples of what you do mean. And you want this to happen automatically, not individually coded for each NPC. Is that right?

    Moving this to JS Plugin Requests

     
    #6
    Isabella Ava likes this.
  7. dbchest

    dbchest Beast Master Veteran

    Messages:
    434
    Likes Received:
    297
    Location:
    Pennsylvania
    First Language:
    English
    Primarily Uses:
    RMMV
    i apologize. this is what you want:
    Code:
    var event = $gameMap.event(this._eventId);
    var actor = $gameParty.leader();
    actor.setCharacterImage(event.characterName(), event.characterIndex());
    $gamePlayer.refresh();
    edit
    they beat me to it.
     
    #7
    Isabella Ava likes this.
  8. Isabella Ava

    Isabella Ava Veteran Veteran

    Messages:
    636
    Likes Received:
    751
    First Language:
    English
    Awesome, thanks @dbchest & @waynee95 :) you guys ROCK!
    Thanks @Kes i definitely will post in correct section next time, but i think for a few lines of scripts like this won't it be more properly to post this in Javascript support? (i supposed this shouldn't take too much lines of script from start :| but you're right i have made it too unclear to tell :( sorry)
     
    #8
  9. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,555
    Likes Received:
    10,495
    First Language:
    English
    Primarily Uses:
    RMVXA
    It cannot be in Javascript Support if you don't have the coding already. You are asking for it, so it goes in Requests.

    Can this be closed now?
     
    #9
  10. Isabella Ava

    Isabella Ava Veteran Veteran

    Messages:
    636
    Likes Received:
    751
    First Language:
    English
    Sure, thank you for the information. Please close this thread, thanks again guys
     
    #10
  11. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,555
    Likes Received:
    10,495
    First Language:
    English
    Primarily Uses:
    RMVXA

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

     
    #11
Thread Status:
Not open for further replies.

Share This Page