Need help with adding script to a plugin

Discussion in 'Javascript/Plugin Support' started by Teddy97, Jun 6, 2019.

Thread Status:
Not open for further replies.
    Tags:
  1. Teddy97

    Teddy97 Veteran Veteran

    Messages:
    49
    Likes Received:
    22
    Location:
    Austria
    First Language:
    German
    Primarily Uses:
    RMMV
    Hello!

    I'm using a plugin called "SRD_WindowUpgrade.js" which allows to make custom windows.
    In the plugin these windows are called "Window_Info".

    The problem that I'm having is that these windows can only be closed with the ok key but not with a mouse click.
    I tried editing the line 1268 in the plugin with "TouchInput.isPressed()" but after that the plugin is not working properly anymore.

    [​IMG]
    [​IMG]

    Any ideas what I should do instead?
    Thank you in advance.
     

    Attached Files:

    #1
  2. BlueMage

    BlueMage Slime Lv99 Veteran

    Messages:
    116
    Likes Received:
    147
    First Language:
    English
    Primarily Uses:
    RMVX
    You should remove ")" after Input.isPressed('ok'))
     
    #2
    Teddy97 likes this.
  3. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,970
    Likes Received:
    10,663
    First Language:
    English
    Primarily Uses:
    RMVXA

    I've moved this thread to Javascript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #3
  4. Teddy97

    Teddy97 Veteran Veteran

    Messages:
    49
    Likes Received:
    22
    Location:
    Austria
    First Language:
    German
    Primarily Uses:
    RMMV
    Hmm.. then I have "if(Input.isPressed(‘ok’) || TouchInput.isTriggered()) {" but that's still not working.
     
    #4
  5. Ahuramazda

    Ahuramazda Veteran Veteran

    Messages:
    200
    Likes Received:
    61
    Location:
    China Grove, North Carolina
    First Language:
    English
    edit: early morning reading sucks ;p
     
    #5
  6. Teddy97

    Teddy97 Veteran Veteran

    Messages:
    49
    Likes Received:
    22
    Location:
    Austria
    First Language:
    German
    Primarily Uses:
    RMMV
    Well, I've not idea why but now it works even though I entered the exact same code.
    I don't think that scripting and me will ever get to be friends lol ノಠ_ಠノ
     
    #6
    BlueMage likes this.
  7. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,970
    Likes Received:
    10,663
    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.

     
    #7
Thread Status:
Not open for further replies.

Share This Page