-
Notifications
You must be signed in to change notification settings - Fork 42
Miscellaneous content changes #381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4374eff
Adding a helper function to find the first ephemeral version of a giv…
Volte6 5d4d8e7
Changing FindEphemeral... definition
Volte6 1d44ab1
Adding scripting, timers, onLoad event changes, documentation, telepo…
Volte6 666d3aa
Fix doc
Volte6 a152200
Fixing jail time
Volte6 e6feee2
linting fixes
Volte6 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| roomid: 1002 | ||
| zone: Frostfang | ||
| title: Jail | ||
| description: The jail adjoins the Soldiers Barracks like a grim shadow, its cold stone | ||
| walls damp with the weight of confinement. Dim torchlight flickers along the corridor, | ||
| casting long, uneasy shadows across iron-barred windows and heavy oak doors reinforced | ||
| with blackened steel. At the far end of the room, a thick iron door marked CELLS | ||
| stands locked and unmoving, its rusted bolts and sturdy latch making it clearbno | ||
| one passes through without command. | ||
| biome: city | ||
| exits: | ||
| west: | ||
| roomid: 270 | ||
| nouns: | ||
| CELLS: :cells | ||
| cell: :cells | ||
| cells: The cells are inpenetrable. Only a guard can gain access. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
|
|
||
| const JAIL_TIME = "1 hour"; | ||
|
|
||
| function onEnter(user, room) { | ||
|
|
||
| if ( !room.IsEphemeral() ) { | ||
|
|
||
| var newRoomIds = CreateInstancesFromRoomIds( [room.RoomId()] ); | ||
|
|
||
| if ( newRoomIds[room.RoomId()] ) { | ||
| user.MoveRoom(newRoomIds[room.RoomId()]); | ||
| return false; | ||
| } | ||
|
|
||
| } | ||
|
|
||
| user.TimerSet("jail", JAIL_TIME); | ||
|
|
||
| room.SendText(""); | ||
| room.SendText("<ansi fg=\"red-bold\">********************************************************************************</ansi>"); | ||
| room.SendText("You hear a loud <ansi fg=\"red-bold\">!!!CLANK!!!</ansi>, and can immediately tell..."); | ||
| room.SendText("The cell door is LOCKED from the other side!"); | ||
| room.SendText('You hear someone shout, <ansi fg="saytext-mob">"Maybe an hour in a cell will cool you off!"</ansi>'); | ||
| room.SendText("<ansi fg=\"red-bold\">********************************************************************************</ansi>"); | ||
| room.SendText(""); | ||
|
|
||
| user.Command("look", 1); | ||
|
|
||
| return false; | ||
| } | ||
|
|
||
| function onIdle(room) { | ||
|
|
||
| if ( room.IsLocked("cell door") ) { | ||
| var playersInRoom = room.GetPlayers(); | ||
| for( var i in playersInRoom ) { | ||
| if ( playersInRoom[i].TimerExpired("jail") ) { | ||
| room.SendText("You hear a loud CLANK, and the cell door is UNLOCKED from the other side."); | ||
| room.SetLocked("cell door", false); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| return true; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| roomid: 1003 | ||
| zone: Frostfang | ||
| title: Inside a Jail Cell | ||
| description: The cell is narrow and barren, carved from the same unforgiving stone | ||
| as the rest of the jail. A single slit in the wall lets in a pale shaft of light, | ||
| barely enough to see the rust-streaked walls and the straw-stuffed pallet shoved | ||
| into the corner. The air is thick with mildew and the lingering stench of past occupants. | ||
| Iron shackles hang limply from the wall, their presence more threatening than their | ||
| current use. Every sound echoes with eerie claritybdrips of water, distant footsteps, | ||
| or worse, silence. | ||
| biome: city | ||
| exits: | ||
| cell door: | ||
| roomid: 1002 | ||
| lock: | ||
| difficulty: 32 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,5 +7,6 @@ function onEnter(user, room) { | |
| if ( !user.HasQuest("6-return") ) { | ||
| room.RepeatSpawnItem(10, 30); | ||
| } | ||
|
|
||
|
|
||
| return true; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are nouns case sensitive? Curious why we duplicate cells here as an alias
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The room description is all caps, which isn't typical... but a string replace doesn't work when highlighting it unless I provide a caps noun.