Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CommandShell/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CommandShell",
"version": "1.0",
"version": "1.1",
"description": "Framework for chat commands",
"authors": "manveti",
"roll20userid": "503018",
Expand Down
8 changes: 4 additions & 4 deletions CommandShell/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@ var Shell = Shell || {
if (idx < 0){
// no more quotes or whitespace, just add the rest of the string to the current token and terminate
curTok += s;
if (curTok){
retval.push(curTok);
}
break;
}
curTok += s.substr(0, idx);
Expand All @@ -135,6 +132,9 @@ var Shell = Shell || {
curTok = "";
}
}
if (curTok){
retval.push(curTok);
}
return retval;
},

Expand All @@ -158,7 +158,7 @@ var Shell = Shell || {
}
if (helpMsg){
Shell.write("Shell Commands:", msg.who);
Shell.write(helpMsg, msg.who, "font-size: small");
Shell.write(helpMsg.replace(/\//g, "&#47;"), msg.who, "font-size: small");
}
},

Expand Down
29 changes: 29 additions & 0 deletions TokenPath/Help.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
TokenPath

TokenPath continuously tracks the movement of the token at the top of the turn
tracker, automatically computing the token's shortest path. Waypoints can be
placed to tweak the generated path as the user desires.


Use:

No special user action is required. Whenever the token at the top of the turn
tracker moves, its path is automatically updated. The path is automatically
cleared when the turn changes. Tokens moving when it is not their turn do not
generate paths.

The pips which display a token's path are controlled by the same user(s) as the
token in question. When a pip is moved, it creates a waypoint, and the path is
automatically updated to pass through that waypoint. Waypoints are ordered, so
creating a new waypoint B by dragging a pip between existing waypoints A and C
will create a path that passes through A, then B, then C. Deleting a waypoint
will cause the path to be recomputed without that waypoint.

Pips display distance based on the page settings (although they are not updated
retroactively if the page settings are changed while a path is visible). Note
that each step of the path will be fully into a square, so all travel will be
along the eight cardinal and ordinal directions. However, when a page is
configured to use Euclidean distance, the ruler tool does not follow this
restriction, and can draw a direct line between any two squares. As a result,
the ruler tool may report a different distance from that reported on the pips
when Euclidean distance is in use.
10 changes: 10 additions & 0 deletions TokenPath/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "TokenPath",
"version": "0.1",
"description": "Track movement of token at top of tracker, displaying its path for the round.",
"authors": "manveti",
"roll20userid": "503018",
"dependencies": {},
"modifies": {},
"conflicts": []
}
Loading