Help - Search - Members - Calendar
Full Version: Shutdown PC?
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
Omnizohar
I remember AGES ago that it was possible to shut down your PC through the callscript command event. I forgot how it worked, something about it launches the shutdown.exe file in the PC and yeah...I just want to know if anyone remembers how this works? I want to try pull somekind of prank like this to a friend of mine. Many thanks!

Note: No Malicious thing intended, just sake of prank smile.gif
Scriptless
I'm not sure about script and if that's even possible, but on your computer create a new shortcut and type down shutdown.exe
Kread-EX
In a call script command, write this:
CODE
system('SHUTDOWN -s')

I don't really want to test it right now, because if my PC shuts down... I'm in trouble smile.gif.

EDIT: tested it and simplified the code. Note that the shutdown isn't immediate - it's a system call, not a system crash. You'll have a prompt telling you that the system will shutdown in 30 sec. Well, seeing that while playing a game is certainly... weird.
DragonMaxter
Oh god, thats an evil prank...
ageeight
it is kinda mean, but i could use this smile.gif. biggrin.gif laugh.gif biggrin.gif laugh.gif biggrin.gif laugh.gif
LockeZ
You can do basically anything you want in the script. You could make it so that if you get a game over it deletes your system folder. Or so that if you sleep at an inn it closes the game and boots up Myst.
DragonMaxter
O.o wouldn't something like that be... illegal?
LockeZ
Depends which idea you're asking about!

Is it illegal to make software that deletes people's system folders? No, of course not. If that were the case, any software designed to help you reformat your hard drive would be illegal to sell. However, if you do not tell the user that you are going to do this, then your game is classified as a virus because it causes unexpected and potentially undesirable effects to the operating system.

Is it illegal to package Myst with your game? God, it should be.
DragonMaxter
What...is... Myst?
Kread-EX
QUOTE (LockeZ @ Jun 19 2010, 04:59 AM) *
You can do basically anything you want in the script. You could make it so that if you get a game over it deletes your system folder.

It's technically possible, yes - even if it's much more complicated. For obvious reasons, I won't teach anyone how to do it though. A game deleting the system folder is not a game, but just a freaking malevolent application.
DragonMaxter
QUOTE (Kread-EX @ Jun 19 2010, 12:04 AM) *
QUOTE (LockeZ @ Jun 19 2010, 04:59 AM) *
You can do basically anything you want in the script. You could make it so that if you get a game over it deletes your system folder.

It's technically possible, yes - even if it's much more complicated. For obvious reasons, I won't teach anyone how to do it though. A game deleting the system folder is not a game, but just a freaking malevolent application.

Hah. That would be like SAW the game. Beat the game or you lose everything.
stripe103
Just a quick question. Does the system('') code in ruby have the same meaning as in C++? Because I've seen it many times but since Ruby is a different programming language it maybe have a different effect.
And yes. I'm trying to learn C++. biggrin.gif

@ DragonMaxter
All I can find out about Myst is through Wikipedia
Kread-EX
Pretty much yes. It's just a shell command.
DragonMaxter
Ok. Myst looks like an old game. What makes it so bad it should be illegal?
Locke
QUOTE (DragonMaxter @ Jun 20 2010, 09:05 PM) *
What makes it so bad it should be illegal?

Maybe so but still.........
DragonMaxter
QUOTE (Locke @ Jun 21 2010, 05:51 AM) *
QUOTE (DragonMaxter @ Jun 20 2010, 09:05 PM) *
What makes it so bad it should be illegal?

Maybe so but still.........

D: Not a valid answer, click again!
LockeZ
It is a 200 hour game with no gameplay.

It's like a Lucasarts style adventure game you might make with Adventure Game Maker, except without any action, characters, dialogue, story, inventory, excitement, or objectives. There are some puzzles and riddles, but they are even worse than La Mulana's - which if you've played La Mulana but not Myst, you probably think is impossible, but I assure you. And it's long. So, so long.

If you don't believe me and want to play it, there is a Nintendo DS version.
DragonMaxter
QUOTE (LockeZ @ Jun 21 2010, 06:55 AM) *
It is a 200 hour game with no gameplay.

It's like a Lucasarts style adventure game you might make with Adventure Game Maker, except without any action, characters, dialogue, story, inventory, excitement, or objectives. There are some puzzles and riddles, but they are even worse than Spelunky's - which if you've played Spelunky but not Myst, you probably think is impossible, but I assure you. And it's long. So, so long.

If you don't believe me and want to play it, there is a Nintendo DS version.

Urg.... 'nuff said
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.