Code Monkey home page Code Monkey logo

mapchange's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

mapchange's Issues

Setting using hard defaults on first load

https://app.roll20.net/forum/permalink/3491471/

I can't seem to get the inverted private mode to work. Using the Github 1.2 version.

invertedMarker = true and the list behaves as default. [GM] maps are in private while unlabelled maps are in public.

EDIT: The plot thickens. I have no idea why, but the inversion now works in the API.
"{"debug":true,"gmNotify":true,"marker":"[GM]","invertedMarker":true}"

However, when I copy pasted the script from that API to another game, the inversion doesn't work:
"{"debug":true,"gmNotify":true,"marker":"[GM]","invertedMarker":false}"

Didn't change a thing between the copy/paste, nor are either game running any other APIs.
I have no idea what happened.

See the above post, it looks like on first loading the script into a new campaign it is not loading the users changes to the config into the state, it is loading the hard coded defaults and then pulls the users change on the second load.

Look at a way to hide maps from listing

https://app.roll20.net/forum/permalink/3481781/

The github version worked.

How about you add an optional tag? I have a LOT of maps, so when I use the menu it stretches far. Why not have two tags? [Public] and [Private]? Show only those that have those tags, in their correct list, while those untagged would be invisible.

https://app.roll20.net/forum/permalink/3481805/

I see your point, I'll look at it for v1.3, I'll probably implement it as an additional tag by default and I'll have to think about the inverted behaviour.

https://app.roll20.net/forum/permalink/3481868/

Just have two behaviors. One for two tags and the second for one tag. If the user specifies the optional tag, then it switches to two tag mode.

!mc help

Add the help menu so users can understand the script better.

Documentation todo:

  • !mc refresh
  • !mc rejoin
  • !mc rejoin [player name]
  • !mc move [map name]
  • !mc move [player name] [map name]
  • !mc moveall [map name]
  • !mc menu
  • !mc help

No custom html formatting for whispers.

currently custom html formatting can only be applied if you use "/direct" as the chat type, this unfortunately means that html formatting cannot be applied to whispering.

see [API] /direct for whispers suggestion for this.

because we do not want to send links to private maps to the players (even though they can't use them), this is limiting us to no html formatting because whispers must be used.

Cannot handle names with spaces in them

Implement splitting using -- as an identifier

e.g. on line 71

var args = msg.content.split(/\s+--/);

this may allow use of optional parameters, i.e. !mc move --player TheWhiteWolves --target World Map - Realm 1

Add ability to hide archived maps from listings

Possible idea:

Seperate archived maps from the listing and give them their own section with public and private, then just put an api button in their place on the menu that launches !mc menu --show archive to show the archived maps.

Add GM notify to refresh

Add a chat message for gmNotify to the !mc refresh command to say something like "Refresh Complete"

Whispering can't handle spaces in names

When using /w to whisper to a person it will only use the first part of any name that has a space in it.

e.g. Jonathan Smith uses /w Jonathan to whisper and then includes Smith in the whisper text.

Player Lock / Blacklist

Possibly add in a lock / blacklist that can be used to stop a player from using any of the scripts commands.

Use Case:

For players who are abusing the teleport or causing it to spam the GM if they have notifications turned on.

Add help entry on Maps

Need to add a help entry to explain about adding the marker to a maps name to make it private.

Also add information about Inverted Marker.

!mc menu

Add in a menu command, this command will send a menu to the chat with a list of the map names and buttons to allow a player to use this to move between pages instead of either manually sending the command or using a macro.

public maps will display for players and GMs
private maps will only display for GMs

When the command is used a table will be generated and sent to the player, following the bellow example:

Player View:

Map Link
Caves [ ]
Forest [ ]
Mountain [ ]

GM View:

Public Map Link
Caves [ ]
Forest [ ]
Mountain [ ]
Private Map Link
[GM] Dungeon [ ]
[GM] Castle [ ]
[GM] Secret Room [ ]

[ ] is a placeholder for a button in the chat

Global Config not pulling values correctly

When first adding the script the default values are entered into the state and thus are correct, however once a change is made to the global config and pulled in the marker variable is not being pulled correctly and others may not be working.

First instance:
image

After Global Config change:
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.