Need help with adding script to a plugin

Status
Not open for further replies.

Teddy97

Veteran
Veteran
Joined
Apr 3, 2018
Messages
49
Reaction score
22
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.


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

Attachments

BlueMage

Slime Lv99
Veteran
Joined
Apr 13, 2019
Messages
116
Reaction score
147
First Language
English
Primarily Uses
RMVX
You should remove ")" after Input.isPressed('ok'))
 

Kes

Global Moderators
Global Mod
Joined
Aug 3, 2012
Messages
21,426
Reaction score
10,849
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.

 

Teddy97

Veteran
Veteran
Joined
Apr 3, 2018
Messages
49
Reaction score
22
First Language
German
Primarily Uses
RMMV
You should remove ")" after Input.isPressed('ok'))
Hmm.. then I have "if(Input.isPressed(‘ok’) || TouchInput.isTriggered()) {" but that's still not working.
 

Ahuramazda

Veteran
Veteran
Joined
Nov 9, 2012
Messages
200
Reaction score
61
First Language
English
Primarily Uses
edit: early morning reading sucks ;p
 

Teddy97

Veteran
Veteran
Joined
Apr 3, 2018
Messages
49
Reaction score
22
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 ノಠ_ಠノ
 

Kes

Global Moderators
Global Mod
Joined
Aug 3, 2012
Messages
21,426
Reaction score
10,849
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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

It's almost new year, again!
Succesfully finished a quest of saving my kitty who fell from a wall!

+25XP

MrKiwi leveled up!
MrKiwi learned how to save his kitty!
Final sprint for me, although a long one. If everything goes well, I'll graduate by the end of the year. Then I'll have to take the Bar classes and exams (4 months), then I'm off to practicing law (as an intern for 6 months, paid of course, then I'll be a full fledged attorney).
I think there is something wrong with my cat. He is acting CATatonic.
Want to find a quick answer? Say the wrong one and SOMEONE will fall all over themselves to correct you.

Forum statistics

Threads
93,572
Messages
913,580
Members
123,102
Latest member
noppawat
Top