Aller au contenu

Photo

disabling pause


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
can this be done? is it possible in some other way to discourage pausing? like removing xp or something so people don't use it.

#2
anakin5

anakin5
  • Members
  • 258 messages
Well, I tried to find a way to detect if the game is paused in a script some month ago and didn't find anything.

What is needed is a method like GameIsPause() or a module event EVENT_TYPE_GAME_PAUSED

#3
CID-78

CID-78
  • Members
  • 1 124 messages
when the game is paused, there shouldn't really be any scripts running. so that kind of function would be quite pointless. the only thing active would be the GUI.



preventing the player from pausing is foolish. it doesn't solve anything only make the game worse. especially if you got companions. you are focusing way to much energy on how people are playing their game. use that energy to make the module better than try to force them to play as you want them to.



accept that they will cheat independent on what you do and get on with building the module. in the end all you do is ruin the game for the ones that don't play like you want them. and what do you gain by that?

#4
anakin5

anakin5
  • Members
  • 258 messages
You are wrong, you can run scripts during pause. Standard events are not processed during pause, that's why we can think no script are running.



Disabling pause can be useful if you want to give to the player a limited time to execute an intellectual action. Lets say someone create a Sudoku in game that open a door if you complete it in less than a minute, you don't want the player to put the game on pause during this time.

#5
Phaenan

Phaenan
  • Members
  • 315 messages
Disabling or discouraging pauses over a short period of time can be done using a pseudo-heartbeat event and simply keeping track of the system time in the event vars. If that event signals itself every sec, then since to the event queue is put on hold during pause if there is more than 1s (+- error margin) between the saved timestamp and the current time then the game was paused at some point. One could even use that to forcefully prevent pausing (disabling pause each time the event is handled) but that'd be... well, ugly. And wasteful of resources.
Still, for a temporary situation such as the sudoku game you described, simply detecting the pause was used at some point is plenty enough to enforce rules. :o

Modifié par Phaenan, 30 mai 2010 - 03:06 .


#6
CID-78

CID-78
  • Members
  • 1 124 messages
well it's a RPG so the player cunning score should be used.besides time is a faulty way of measure intelligence. the player would simply reload and try again until he do it fast enough. not much a intelligence challenge there.