Advertisement
Kovitikus

Portal Mark System Concept

Jul 23rd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. Portal Mark System
  2.  
  3. ----------
  4. Mark Command: mark <custom mark name>
  5. """
  6. Mark the current location.
  7.  
  8. Usage:
  9. mark <custom mark name>
  10.  
  11. Marks the player's current location, using the provided arguments.
  12. For a list of marks, simply type 'mark' with no argument.
  13. """
  14.  
  15. Marks are held in a dictionary and stored on the player.db.marks attribute.
  16. The mark command will use the player’s args as the key and the current location’s dbref ID as the value.
  17. ----------
  18.  
  19. Open Portal Command: portal <destination name>
  20. """
  21. Opens or closes a portal.
  22.  
  23. Usage:
  24. portal <mark>
  25. portal close
  26.  
  27. Open a portal to the destination mark for up to 5 minutes.
  28. Use the close argument to instead close the portal.
  29. """
  30. When this command is executed, it searches the player.db.marks dictionary for the args provided to match the key. Then it creates an instance of the Portal Object. The mark value is then used as the destination of the portal.
  31.  
  32. Close Portal Command: portal close
  33.  
  34. Executes the delete() method on the exit object. Destroying the portal. Also disables the default close script, if nessecary.
  35. ----------
  36.  
  37. Portal Object (Exit)
  38.  
  39. Portals will naturally stay open for 5 minutes. A script will be used with 1 tick of 5 minutes. When the 5 minutes arrives, the script will execute the delete() command on the portal object.
  40.  
  41. Portals will be 2-way. The current location is marked as the source and the destination is acquired via the player.db.marks dictionary key.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement