Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-22-2011, 10:03 PM
BioWare BioWare is offline
Registered User
Join Date: Mar 2011
Location: Netherlands
Posts: 36
BioWare is on a distinguished road
/undo script

Im wondering is it able to make a /undo script that would undo all the stuff a player did? Like when you type on word and you delete something on accident you can undo it.
Reply With Quote
  #2  
Old 03-22-2011, 11:09 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Well, with text, Ctrl+Z still works (or Command+Z for Macs).

For other stuff, it would be possible, but you'd need to have a stack filled with enough information to rebuild the old state from your current state (like a stack of diffs). The diff would obviously vary depending what you're building the undo ability for.

If you give a more concrete example, perhaps better advice can be given.

Last edited by WhiteDragon; 03-23-2011 at 12:29 AM.. Reason: I have been informed by the masters.
Reply With Quote
  #3  
Old 03-22-2011, 11:13 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
You should probably just keep regular backups if you're worried about staff screwing up...versioning might be cool.
__________________
Reply With Quote
  #4  
Old 03-22-2011, 11:40 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by WhiteDragon View Post
Well, with text, Ctrl+Z still works (or Apple+Z for Macs).
Command + Z, not Apple + Z .
__________________
Reply With Quote
  #5  
Old 03-23-2011, 05:24 PM
BioWare BioWare is offline
Registered User
Join Date: Mar 2011
Location: Netherlands
Posts: 36
BioWare is on a distinguished road
Quote:
Originally Posted by salesman View Post
You should probably just keep regular backups if you're worried about staff screwing up...versioning might be cool.
Probably the best idea yes..
I just thought it would help people that are not sure of a player.
But i also mainly ment levels though.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.