Search found 249 matches

by Akodo Makama
Sat May 23, 2015 5:35 pm
Forum: Macros
Topic: Solve Math Problem in MT
Replies: 1
Views: 614

Re: Solve Math Problem in MT

Recursion can always be traded for memory (especially of you know the maximum recursion depth) PrepLists   [constructedStringList1 = ""]   [possiblePartsList1 = ""]   [for(index,1,9): possiblePartsList1 = listAppend(possiblePartsList1, index]   [PermutateString1()] PermutateStrin...
by Akodo Makama
Tue Feb 17, 2015 7:16 pm
Forum: Macros
Topic: Macro to increase counter on token
Replies: 6
Views: 1362

Re: Macro to increase counter on token

its a bit neater to do [IF (!isNumber(value)): value = 0] and [assert(value < 100, "STATE_COUNT Too Large", 0)] I always find negative logic harder to follow (and sometimes harder to notice), so I try to avoid excess use of the ! operator. As assert(x...) is pretty much the same as if(!x,...
by Akodo Makama
Tue Feb 17, 2015 2:36 am
Forum: Macros
Topic: Macro to increase counter on token
Replies: 6
Views: 1362

Re: Macro to increase counter on token

Rule 1 about (modern) programming: Keep information storage separate from information manipulation separate from information display. By trying to store the information about the current 'count' in the states, which are primarily for display purposes, you're making things very difficult on yourself....
by Akodo Makama
Sat Jan 03, 2015 7:13 pm
Forum: Macros
Topic: Universal Attack Macro
Replies: 5
Views: 1512

Re: Universal Attack Macro

The original post contained code not intended to be actually run, but to show what functions to use. It contained a couple typos (missing paranthesis) that would cause errors. The following code is complete and runs properly, but contains no error checking for things like: no tokens are selected whe...
by Akodo Makama
Sat Jan 03, 2015 3:01 pm
Forum: Macros
Topic: Universal Attack Macro
Replies: 5
Views: 1512

Re: Universal Attack Macro

If you use token IDs, you should be able to do everything without ever switching the active token. There would then be no need to 'revert' to the original. Something like: [listOfSelectedTokens = getSelected()] [foreach(id, listOfSelectedTokens, "<br>"), code: {  [targetAC = getProperty(&q...
by Akodo Makama
Thu Sep 04, 2014 6:03 am
Forum: MapTool
Topic: HELP: Players can see "GM Name" of Tokens :-S :(
Replies: 3
Views: 796

Re: HELP: Players can see "GM Name" of Tokens :-S :(

Hi! The Players are NOT owners of the tokens, they can however still edit them - and see the "GM Name", however CANNOT see the "GM Notes" :) To further elaborate: I do NOT have "strict token ownership" enabled, because: The campaign is very much crammed full of MANY np...
by Akodo Makama
Tue Feb 11, 2014 11:29 pm
Forum: MapTool
Topic: [RESOLVED]: MAPTOOL WILL NOT LAUNCH
Replies: 28
Views: 18319

"Unable to access jarfile maptool-*.jar"

Hi. I just found this tool and I'm interested in learning how to use it, but I didn't see anything pinned about the problem I'm having, so I apologize in advance for posting here. I don't think my problem is Java, although I do have a version of Java 7. I downloaded the newest version of the tool a...
by Akodo Makama
Tue Oct 08, 2013 7:47 pm
Forum: MapTool
Topic: Limitations on rolls? D6 hit system
Replies: 4
Views: 571

Re: Limitations on rolls? D6 hit system

wolph42 wrote:you could use Wiki: max()
Oddly enough, to limit to a maximum value, you use Wiki: min().

Code: Select all

[successes = 4d6s5]
[limitedSuccesses = min(successes, 2) 
This will [roll 4d6, count everything 5 or higher] and [limit the count to no more than 2]
by Akodo Makama
Thu Oct 03, 2013 1:26 am
Forum: MapTool
Topic: room numbering
Replies: 12
Views: 1625

Re: room numbering

... I guess there was a design decision for that? A lot of people (myself included) make maps by placing individual elements (like Torstan's Walls) repeatedly on the background and object layers. This lets us repeat the same image many times (saving both space in the file and time for the players t...
by Akodo Makama
Wed Oct 02, 2013 3:58 am
Forum: MapTool
Topic: room numbering
Replies: 12
Views: 1625

Re: room numbering

The problem I've found is that I have to keep switching back to the hidden layer to mouseover and get the name, however if I put the tokens onto the object layer and make them 'GM visible only', they just get in the way of the PCs/NPCs. Is there a different approach to this? Use the 'Notes' field o...
by Akodo Makama
Mon Jul 22, 2013 7:14 pm
Forum: Macros
Topic: Need Help (table)
Replies: 3
Views: 570

Re: Need Help (table)

Did you use a translator? I'm guessing that you want to know whether you can retrieve the table image not by the index number/range, but by the description field: no. So you'll need to use e.g. a switch in your code to make the translation. A while ago, a friend of mine remarked that the best forei...
by Akodo Makama
Mon Jul 22, 2013 7:12 pm
Forum: Macros
Topic: Get image filename of NPC token
Replies: 7
Views: 806

Re: Get image filename of NPC token

When an image is added to the campaign, it is turned into a token asset, which is stored by it's MD5 checksum. The campaign file only references these asset numbers. The original name is no longer available.
by Akodo Makama
Thu Jul 18, 2013 9:25 pm
Forum: MapTool
Topic: Error: Unable to access jarfile maptool-*.jar
Replies: 5
Views: 2011

Re: Error: Unable to access jarfile maptool-*.jar

Stickied at the top of this forum is the answer. Java messed up the use of * in filenames. See the linked thread for solutions.
by Akodo Makama
Fri Jul 05, 2013 4:36 am
Forum: MapTool
Topic: Remember revealed fog of war
Replies: 20
Views: 2157

Re: Remember revealed fog of war

I don't remember, but isn't FOW based on the token and not the player? It is saved on-token, but strict token ownership would mean that the 'new' player didn't own any tokens with vision, and as such, couldn't see anything. The steps in Vetinari's last post don't mention any players trying to log i...
by Akodo Makama
Mon Jul 01, 2013 1:13 am
Forum: MapTool
Topic: Remember revealed fog of war
Replies: 20
Views: 2157

Re: Remember revealed fog of war

I could also be the simple pilot error of not realizing that the FOW is saved as part of the "campaign" file, and the GM not saving the campaign at the end of the night. Or, the players not logging in under the same name as before, and therefore have no FOW history saved under the new name.

Go to advanced search