Search found 2031 matches

by Craig
Sat Jul 26, 2008 10:30 am
Forum: MapTool
Topic: Macro Help--Silent Roll Scripting.
Replies: 105
Views: 9345

OOOOooooooOOOOOOOO. Pretty! I take it it only does the Bloodied and Dying? Not the other states as well? And yeah Ryss, chat panel revamp would be a great next target for you to set your sights on! Yes only those two states. I was having trouble with getting custom states to work so I stopped at Bl...
by Craig
Sat Jul 26, 2008 8:44 am
Forum: MapTool
Topic: Alternate Die Rollers/Macro Scripting?
Replies: 29
Views: 1766

RPTroll wrote:followed by /ThrowDiceAwayAndBuyNewOnes for those truly bad gaming days.
How about
/ThrowDiceInFrustration
followed by
/SearchForDice
/SearchForDice
/AskForHelp
/SearchForDice
/SearchForDice
/GiveUpAndGetTakeAwayForNextMeal

I think those would make MapTool much more familiar to many groups.
by Craig
Sat Jul 26, 2008 7:03 am
Forum: MapTool
Topic: Alternate Die Rollers/Macro Scripting?
Replies: 29
Views: 1766

Trevor was going to add in the ability to reseed the current Random Number Generator, but I don't think that made it in yet. I did actually look into this. Bad news, it's creating a new randomly seeded generator for each time you call the parser. So reseeding is already happening. I'm not entirely ...
by Craig
Sat Jul 26, 2008 3:43 am
Forum: MapTool
Topic: Macro Help--Silent Roll Scripting.
Replies: 105
Views: 9345

Version 3, because you got to respect the Bling! <table title="{MaxLen=200}"><tr><td><b title="[DamageTaken = ChangeHP] [TempHP = TempHP - DamageTaken] [HP = HP + min(0, TempHP)] [TempHP = max(0,TempHP)] [state.Dying = 1 - max(0,min(1,HP))][state.Bloodied = 1 - max(0, min(1,HP - Blood...
by Craig
Sat Jul 26, 2008 3:28 am
Forum: MapTool
Topic: Macro Help--Silent Roll Scripting.
Replies: 105
Views: 9345

Cool, thanks for the update Craig. There is a bit of funniness with the table version when getting into negative hp...the lifebar size increases (past MaxLen) while the current hp stays at 0. Other than that, looks neat. I calculated the text size on the larger version 1 (50levels) and it was 4kb.....
by Craig
Sat Jul 26, 2008 2:49 am
Forum: MapTool
Topic: Macro Help--Silent Roll Scripting.
Replies: 105
Views: 9345

Version 2 Now with less wall of text! (Thanks to Azhrei for idea, it doesnt work for span but it does for tables) <table title="{MaxLen=200}"><tr><td>HP:</td><td title='{r0=230}{g0=230}{b0=230}{r1=200}{g1=0}{b1=0}{r2=255}{g2=140}{b2=0}{r3=0}{g3=200}{b3=0}{HPLen=min(round(HP*MaxLen/MaxHP+0....
by Craig
Sat Jul 26, 2008 1:19 am
Forum: MapTool
Topic: /sts plus descriptive text
Replies: 7
Views: 592

Re: /sts plus descriptive text

Is there a way to put both /sts AND text in the same macro? For example: <b>Izzy drinks a potion of invisibility</b> /sts hidden Use the ability of [] or {} to set states <b title="{state.hidden = 1}">Izzy drinks a potion of invisibility</b> Putting it in the title attribute of the bold j...
by Craig
Sat Jul 26, 2008 1:16 am
Forum: MapTool
Topic: MapTool 1.3.b36 on Mac Powerbook (Leopard)
Replies: 33
Views: 2223

Check out java.awt.event.InputEvent.getModifiersEx() in the J2SE docs. In the "Field Summary" part of the page is a list of the constants that represent the modifier keys. It looks like the choices are: ALT_MASK ALT_GRAPH_MASK CTRL_MASK META_MASK SHIFT_MASK At some point I'll type up a li...
by Craig
Sat Jul 26, 2008 1:13 am
Forum: MapTool
Topic: MapTool 1.3.b36 on Mac Powerbook (Leopard)
Replies: 33
Views: 2223

Checking for the modifier key is not the way it should be tackled. AWT knows how to decide if a mouse event is a popup menu click (the code need to be changed to make use of this). Unfortunately that click comes from windows and mac os at a different time... I agree. But the "feature" app...
by Craig
Sat Jul 26, 2008 12:16 am
Forum: MapTool
Topic: Macro Help--Silent Roll Scripting.
Replies: 105
Views: 9345

Craig, your latest healthbar macros don't work quite right. It is prompting me for iHP and iMaxHP when it didn't before. It seems removing the offending parameters doesn't fix the problem either. Take a gander at it and let us know if it's me or the code that is a bit wonky today. :? Sorry about th...
by Craig
Fri Jul 25, 2008 11:56 pm
Forum: MapTool
Topic: Macro Help--Silent Roll Scripting.
Replies: 105
Views: 9345

I noticed different macros depending on the size of the health bar. But why not use a SPAN with a WIDTH entry in the CSS, where the value is calculated? Set the background color in the outside SPAN and then insert another SPAN inside with a "position" field so that the two SPANs overlap. ...
by Craig
Fri Jul 25, 2008 5:13 pm
Forum: MapTool
Topic: Macro Help--Silent Roll Scripting.
Replies: 105
Views: 9345

Craig crits with a wall of text! (This time there is no save!!) 50 space version HP:<span title='{HP=iHP}{MaxHP=iHPMax}{r0=230}{g0=230}{b0=230}{r1=200}{g1=0}{b1=0}{r2=255}{g2=140}{b2=0}{r3=0}{g3=200}{b3=0}{MaxLen=50}{HPLen=min(round(HP*MaxLen/MaxHP+0.4999),MaxLen)+1}{c=round(HP*3/MaxHP+0.4999)}' sty...
by Craig
Fri Jul 25, 2008 3:38 pm
Forum: MapTool
Topic: Macro Help--Silent Roll Scripting.
Replies: 105
Views: 9345

jfrazierjr wrote:
UntoldGlory wrote:That's pretty neat. I may actually use that wall.
And I recall someone *snort* ing at my mention of health bars... wonder who that was.... :P
Don't worry he snorted at my wall of text too!!
Now we showed him!
by Craig
Fri Jul 25, 2008 3:28 pm
Forum: MapTool
Topic: Macro Help--Silent Roll Scripting.
Replies: 105
Views: 9345

HP: <span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span><span>_</span></span> For a solid bar...
by Craig
Fri Jul 25, 2008 3:07 pm
Forum: MapTool
Topic: Macro Help--Silent Roll Scripting.
Replies: 105
Views: 9345

. . . WALL OF CODE . . . I'm totally adding that as a 4e Power. Wall of Code Wizard Attack 7 Your convoluted macros twist across the sky, distracting your enemies. Encounter : Arcane, Psychic Standard action , Range: 10 Effect : You conjure a wall that consists of contiguous squares filled with arc...

Go to advanced search