Search found 155 matches

by Sydious
Fri Sep 30, 2011 10:00 am
Forum: Macros
Topic: Variable Grid Code
Replies: 5
Views: 481

Re: Variable Grid Code

So using the following: [r: TTCount = listCount(ttList)]<br> [r: gridSize = 1+floor(squareroot(TTCount))] [r,count(gridSize,""),code: { <tr> [r, for(i,1,gridSize,1,""), code:{ [h: tokenName = "image:Treasure_Token_1"] [r: tv = listGet(ttList, num)] [r: button = strforma...
by Sydious
Thu Sep 29, 2011 11:57 pm
Forum: Macros
Topic: Variable Grid Code
Replies: 5
Views: 481

Variable Grid Code

Now that i have the basics of my button Grid Macro worked out, I need to take it the next step and create the number of cells / buttons based on the count of a list. I am unsure how I go about coding the loop to handle the variance of the number of buttons. For example... If the list count = 32 I wo...
by Sydious
Thu Sep 29, 2011 8:34 pm
Forum: Macros
Topic: macro Speed
Replies: 0
Views: 363

macro Speed

So I have achived success on random image buttons. I use two following macros and come up with 32 image buttons in a grid (6x6) [h, MACRO("[email protected]:DQ"):""] <html> <form> [h: num = 1] <table border = "1" align = "center" style="background-c...
by Sydious
Thu Sep 29, 2011 6:43 pm
Forum: Macros
Topic: [COUNT(): inside a [COUNT():
Replies: 25
Views: 1163

Re: [COUNT(): inside a [COUNT():

Theres the light bulb. I understand now. I made a openDialog macro to house the Dialog {}s and all came together. Thanks for the help.
by Sydious
Thu Sep 29, 2011 6:20 pm
Forum: Macros
Topic: [COUNT(): inside a [COUNT():
Replies: 25
Views: 1163

Re: [COUNT(): inside a [COUNT():

Yep. Thats nesting limit. As said its the number of braces/curly brackets that counts, not the keyword CODE. Note that you can simply omit a pair here: This [r, for(i,1,6), code: { [r: button] } ] does pretty much the same as this [r, for(i,1,6, ""): button] But then if I omit the code: {...
by Sydious
Thu Sep 29, 2011 5:43 pm
Forum: Macros
Topic: [COUNT(): inside a [COUNT():
Replies: 25
Views: 1163

Re: [COUNT(): inside a [COUNT():

Here is the code in full with a FOR instead of COUNT Same error as count. [dialog("Treasure Chamber", "width=700; height=650; temporary=1; input=0; noframe=1"):{ <html> <form> [h: tokenName = "Treasure_Token_1"] [h: button = strformat('<td><input type="image" ...
by Sydious
Thu Sep 29, 2011 4:35 pm
Forum: Macros
Topic: [COUNT(): inside a [COUNT():
Replies: 25
Views: 1163

Re: [COUNT(): inside a [COUNT():

?? What's the error? Error in body of roll.       Statement options (if any): dialog("Treasure Chamber", "width=700; height=650; temporary=1; input=0; noframe=1")       Statement Body (first 200 characters): { [h: tokenNameList = "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,1...
by Sydious
Thu Sep 29, 2011 4:26 pm
Forum: Macros
Topic: [COUNT(): inside a [COUNT():
Replies: 25
Views: 1163

Re: [COUNT(): inside a [COUNT():

You can implement a code statement in the second statement. You can have two nested code levels. If you go beyond that you need to create a user defined function and call that one in your inner statement. Your UDF contains the code with more code statements But when I try to put a code statement in...
by Sydious
Thu Sep 29, 2011 3:55 pm
Forum: Macros
Topic: [COUNT(): inside a [COUNT():
Replies: 25
Views: 1163

Re: [COUNT(): inside a [COUNT():

Ok with your help i have reached this and am successful at createing all the buttons. (with that same image) [h: button = strformat('<td><input type="image" src="%s" name="btnMove" value="UP"></td>',getImage("image:" + tokenName))] <table border = &q...
by Sydious
Thu Sep 29, 2011 2:44 pm
Forum: User Creations
Topic: Some token states I made.
Replies: 8
Views: 2481

Re: Some token states I made.

Thanks for the contribution. These are great.
by Sydious
Thu Sep 29, 2011 2:39 pm
Forum: Bug Reports
Topic: [1.3.b84] Delete on close
Replies: 1
Views: 355

[1.3.b84] Delete on close

I didn't see this reported after sifting through the posts. When you select a token, and press delete. You are propted if you are sure. Yes/No/Yes don't ask me again. If you press the X button to close the window...it deletes the token. I think expected behavior would be to cancel the delete just li...
by Sydious
Tue Sep 27, 2011 10:06 pm
Forum: General Discussion
Topic: Official D&D projector table Project
Replies: 36
Views: 14235

Re: Official D&D projector table Project

<---- Jealous!
by Sydious
Mon Sep 26, 2011 11:18 pm
Forum: Macros
Topic: [COUNT(): inside a [COUNT():
Replies: 25
Views: 1163

Re: [COUNT(): inside a [COUNT():

Ok.. So if I were to use... [r,count(4,""),code: { <tr>[r,count(8,""):"<td>CELL</td>"]</tr> }] Would I be able to replace CELL with and image button? I tried inputing the following code provided by Ali from a previous post and not getting favorable results. [H: inputBut...
by Sydious
Mon Sep 26, 2011 2:53 pm
Forum: Macros
Topic: [COUNT(): inside a [COUNT():
Replies: 25
Views: 1163

Re: [COUNT(): inside a [COUNT():

Here is an example of what I think I need to do....Doesn't work.


Code: Select all

[r, COUNT(4, ""):<tr>[r, COUNT(8, ""):<td>"Cell"</td>]</tr>]
by Sydious
Mon Sep 26, 2011 1:43 pm
Forum: Macros
Topic: [COUNT(): inside a [COUNT():
Replies: 25
Views: 1163

[COUNT(): inside a [COUNT():

Am I correct in assuming that you can't place a COUNT statement inside another COUNT statement? I am trying to code a dialog screen that builds a table(grid) with 4 rows of 8 collumns. The number of cells depends on a var that is from 1 to 32. I tried using a COUNT(8) inside a COUNT(4) but doesn't s...

Go to advanced search