Help need with a small script

Vpix

Villager
Member
Joined
Nov 10, 2016
Messages
13
Reaction score
2
First Language
English
Primarily Uses
RMMV
Iv recently started self learning javascript to more effectivly get my game to do a few little thing's and i currently have a scene were i want the game to do more than just game over.

so far a have it set to self close, but id also like to have it change the players desktop wallpaper for an image that would be held in the game files but im not sure what the code line needed for such a thing is.

note: I will have a notice that tells the player the game will do things like this, so its not done with out their prior knowage and acceptance of this.

any help with this is greatly appreciated inc making me aware of other posible problems that could arise from it behaving in such a manner
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
You're probably going to want to use a solution that's already been created since it's not very common for Javascript to access these kinds of files (because normally JS is run in a browser that doesn't access the internal workings of a user's computer)

Try using this for example
https://github.com/sindresorhus/wallpaper
 

Vpix

Villager
Member
Joined
Nov 10, 2016
Messages
13
Reaction score
2
First Language
English
Primarily Uses
RMMV
You're probably going to want to use a solution that's already been created since it's not very common for Javascript to access these kinds of files (because normally JS is run in a browser that doesn't access the internal workings of a user's computer)

Try using this for example
https://github.com/sindresorhus/wallpaper
It hadn't even occurred to me that i need a different set of coding for it to work on each platform i put it on, so much for small i guess but thank you for the link
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,455
Members
137,821
Latest member
Capterson
Top