Search found 52 matches

by nirkedar
Tue Sep 20, 2016 2:30 am
Forum: MapTool
Topic: Rounding off numbers
Replies: 5
Views: 892

Re: Rounding off numbers

Alrighty, had to manually write my own macro called TRUNCATE to remove trailing zeros. In case anyone is interested, here it is: [H: Number = ARG(0)] [H: Fraction = Number - floor(Number)] [H: Result = round(Number)] [H, IF(Fraction>0), CODE: { [ size = length(Fraction)] [ lastDigit= substring(Fract...
by nirkedar
Tue Sep 20, 2016 1:16 am
Forum: MapTool
Topic: Rounding off numbers
Replies: 5
Views: 892

Re: Rounding off numbers

I know about ceiling, floor & round.
However they will round numbers off even when there is a legitimate fraction.
I need a function that will only truncate the trailing zeros.
by nirkedar
Mon Sep 19, 2016 4:48 pm
Forum: MapTool
Topic: Rounding off numbers
Replies: 5
Views: 892

Rounding off numbers

The following code: [H: broadcast(0.1 * 10)]

produces this: 1.0

Is there a function to have Maptool round off numbers nicely, i.e. the answer should simply be: 1 without any trailing digits.
by nirkedar
Mon Aug 22, 2016 11:56 pm
Forum: MapTool
Topic: How do I place a hidden HTML placement
Replies: 12
Views: 1181

Re: How do I place a hidden HTML placement

The % width in the example is irrelevant, and the pixel width is even more complicated to deal with. I just wanted to illustrate that the "invisible" placement is not exactly unnoticeable. For my particular situation I do have a way to work around it: instead of replacing the invisible htm...
by nirkedar
Mon Aug 22, 2016 4:25 am
Forum: MapTool
Topic: How do I place a hidden HTML placement
Replies: 12
Views: 1181

Re: How do I place a hidden HTML placement

The example above is just a simple illustration for the purpose of my enquiry. I'm trying to build is a quick character sheet update technique. Basically the sheet is composed of many components, each identified by a tag, for example: <span id='123'>...</span id='123'><span id='456'>...</span id='45...
by nirkedar
Mon Aug 22, 2016 3:24 am
Forum: MapTool
Topic: How do I place a hidden HTML placement
Replies: 12
Views: 1181

Re: How do I place a hidden HTML placement

Thanks for trying Wolph.
by nirkedar
Mon Aug 22, 2016 2:19 am
Forum: MapTool
Topic: How do I place a hidden HTML placement
Replies: 12
Views: 1181

Re: How do I place a hidden HTML placement

That didn't make a difference either... . <table width='100%'> . . <tr> . . . <td width='50%' align='right'> . . . . <span style='font:11pt Tahoma; color:2C3539'>Part 1 . . . . </span> . . . </td> . . . <!-- Future tag will go here --> . . . . <td width='50%' align='left'> . . . . . <span style='fon...
by nirkedar
Sun Aug 21, 2016 7:03 am
Forum: MapTool 1.4
Topic: getPropertyNamesRaw issue
Replies: 2
Views: 400

Re: getPropertyNamesRaw issue

wolph42 wrote:Apparently somehow the 'allow players to edit macro' got checked in the macro editor. Uncheck it


The devil did it!!! Just had an exorcism performed on a check box and everything is the way it should be.
Thanks for the help.
by nirkedar
Sun Aug 21, 2016 7:01 am
Forum: MapTool
Topic: How do I place a hidden HTML placement
Replies: 12
Views: 1181

Re: How do I place a hidden HTML placement

Not quite the same though. Take a look at the picture of the chat window below - The first line does not have your tag suggestion in it. The second line does. Graphically, they're not the same. Screen Shot 2016-08-21 at 13.54.30.png [H: HTML = "<table width='100%'> <td width='50%' align='right'...
by nirkedar
Sun Aug 21, 2016 4:49 am
Forum: MapTool
Topic: How do I place a hidden HTML placement
Replies: 12
Views: 1181

How do I place a hidden HTML placement

I have HTML code that is cached somewhere on my tokens. I need to place a bookmark tag that may in the future identify the location of other HTML code that I will insert at that location. For now I would like this placeholder to be perfectly invisible. Can it be done? Here's an example: suppose I ha...
by nirkedar
Sun Aug 21, 2016 3:44 am
Forum: MapTool 1.4
Topic: getPropertyNamesRaw issue
Replies: 2
Views: 400

getPropertyNamesRaw issue

I have a macro that calls getPropertyNamesRaw. All of a sudden the following message pops up when I try executing it. You do not have permission to access another token in the "getPropertyNamesRaw" function. This macro was run before many times and did not have any issues. Any ideas what's...
by nirkedar
Fri Jul 08, 2016 1:56 am
Forum: MapTool
Topic: I need code for a thin (html) line
Replies: 5
Views: 721

Re: I need code for a thin (html) line

Nice. Just what the doctor ordered.

This code did the trick: <table width='100%' style='border-style:solid; color:#F5F5DC; border-width:2px 0px 0px 0px'></table>

Screen Shot 2016-07-08 at 08.52.00.png
Screen Shot 2016-07-08 at 08.52.00.png (5.17 KiB) Viewed 702 times
by nirkedar
Fri Jul 08, 2016 12:03 am
Forum: MapTool
Topic: I need code for a thin (html) line
Replies: 5
Views: 721

Re: I need code for a thin (html) line

Thanks. The <hr> worked but fine but is a bit to skinny for my liking.
You mentioned that table borders might do the trick. How do I display a table with just its top border? (HTML code please).
by nirkedar
Thu Jul 07, 2016 5:56 pm
Forum: MapTool
Topic: I need code for a thin (html) line
Replies: 5
Views: 721

I need code for a thin (html) line

I would like to place thin lines as section breakpoints within my HTML frames/chat window that span the entire width of a <table>.
Does anyone know the html code to get this done?
by nirkedar
Thu Jun 16, 2016 12:41 pm
Forum: MapTool
Topic: How do I place an image for a macro button's tooltip
Replies: 10
Views: 902

Re: How do I place an image for a macro button's tooltip

Interesting. I'll give it a shot.
Thanks for all the (instant) feedback as usual guys. You're the bestest moderators ever.

Go to advanced search