[Gaming] D&D Jay's Game - She's Dead Jim

Status
Not open for further replies.
Awesome, that's much more elegant. I assumed TempHP was an integer that could go negative, so I was testing too much.
 
Awesome, that's much more elegant. I assumed TempHP was an integer that could go negative, so I was testing too much.
It can go negative, but since you never expect it too the code works fine. If you worry about it you can add a TempHP= max(TempHP,0) at the start to make sure it is never negative.
 
I put Jay's code into the campaign preferences, but it still demands values when I try to make use of them in a macro.
There are 4 sections of macros, 1 deals with the token selected, the others do not.

Global & Campaign do not reference your token.

Selected and Impersonated do reference your token.

Try building your macros in the selected window with your token selected.

<!--
{VARa = if(HitPoints<=BloodiedHP, 1,0)}
{VARb = if(HitPoints<=0,1,0)}
{VARc = if(HitPoints<= 0-BloodiedHP,1,0)}

{state.Dead=VARc}
{VARa = if(state.Dead,0,VARa)}
{VARb = if(state.Dead,0,VARb)}

{state.Dying=VARb}
{VARa = if(state.Dying,0,VARa)}

{state.Bloodied=VARa}

-->
That code was surprisingly hard to figure out. Basically what it does is checks your HP and puts the correct state marker on your token and adjusts your states accordingly.
 
I'm keeping my augmentations per separate macro for my own benefit, and for skills that hit multiple targets, the damage will be a separate macro since I'd be rolling several attack rolls, but only one damage roll.
 
From New, Custom, and Load, select Load. Click once on the portrait of the one you want, and then select Export from the bottom of the screen. Save the file to your computer. Under where you reply on the forum, select Upload a File.
 
Okay, pretty much done with my macros. Relatively painless once I understood what I was doing wrong. Thanks HC and Jay for setting all the groundwork.

RP sidenote: Jay, would it be cool if we took Tyrdin's now enormous insight (+16 modifier) as if his psychic powers were giving him some surface reading of the person's intentions or truthfulness (or whatever) on high rolls, like his Ardent power of sensing feelings had transmuted into thoughts? Not saying actual mind-reading; I'd be getting the same as I would out of the high insight roll anyway; this would just be flavor.
 
Jay, could you please add these variables to your game.

ENCsp: 2
ENC1: 1
DAILY1:
UTILITY2:1
ENC3:1
DAILY5:1

etc,..

cause you will love this bit, just add it at the front of the appropriate encounter or daily power

[h, if(ENC1==0), CODE:
{[assert(1==0,add("<b>LOUT! You already used this power!</b>"),0)]
};{[h: ENC1=0]}
]
 
Some stuff for Jay that I have been working on, happy with most of them, but they most likely can be greatly improved.

Initiative for the players, this also adds the PC's to the Init Window or updates their score if they are already there.

<!--
{MyINIT=1d20+Initiative}
{addToInitiative(0,MyINIT)}
-->
<b>Initiative</b>(+{Initiative}) : {MyINIT}
Taking Damage Macro, it also sets the appropriate states for each.

I start with {HitPoints} HP and take
<!--

{TempHP=max(TempHP,0)}

{CurrHP = Hitpoints}

{DamageValue = DamageTaken}

{DamV=TempHP - DamageValue}

{HitPoints = CurrHP + min(0,DamV)}

{TempHP = max(DamV,0)}

{setBar("Health", HitPoints/MaxHP)}

-->
{DamageValue}
points of damage, my HP is now
{HitPoints} with {TempHP} Temp HP

<br>
<b>
{if(HitPoints<=BloodiedHP,"I am Bloodied","")}
<br>
{if(HitPoints<=0,"I am Dying","")}
<br>
{if(HitPoints<=0-BloodiedHP,"I am Dead","")}
</b>

<!--
{VARa = if(HitPoints<=BloodiedHP, 1,0)}
{VARb = if(HitPoints<=0,1,0)}
{VARc = if(HitPoints<= 0-BloodiedHP,1,0)}

{state.Dead=VARc}
{VARa = if(state.Dead,0,VARa)}
{VARb = if(state.Dead,0,VARb)}

{state.Dying=VARb}
{state.Prone=VARb}
{state.Helpless=VARb}
{VARa = if(state.Dying,0,VARa)}

{state.Bloodied=VARa}

-->
This is a Death Saving throw that counts how many times you have failed and sets the correct state when you reach 3

<!--
{SV=d20}
{DeathSave = DeathSave + if(SV<=9,1,0)}

{state.Dead=if(DeathSave>=3,1,0)}

-->
<b>Saving Throw: </b>{SV}<br>
For attacking multiple targets, this prompts you for how many then returns a result (has some testing values in it), it also calculates critical hits add returns damage for them (but it's aesthetically ugly)

[h: AttackBonus=5]
[h: DamBonus=5]

[h: DamageString="damage."]

[h: x=input("NumberOfTargets|0|Number of targets")]
[h: abort(x)]

<b>AttackName</b><br>
Attacking {NumberOfTargets} {if(NumberOfTargets==1,"creature","creatures")} in the burst.<br>
[count(NumberOfTargets,"<br>"), CODE:
{
[h: d20roll=d20]
[h: AttackRoll=d20roll+AttackBonus]
Target [r:roll.count+1]: (+{ AttackBonus}) = <b>{AttackRoll}</b>
[if(d20roll>=CriticalHit), CODE:
{<font color=Red> CRITICAL HIT!</font> [16+DamBonus+CritImp,2d8+DamBonus] };{}
]
}
]

And this last one has an ugly look on the chat window, but has some really useful code for GM's.

This macro rolls initiative for every icon that is visible on the screen at the time of the button pressing

[h: TokenList = getVisibleTokenNames()]
[FOREACH(name, TokenList, ""), CODE:
{[IF(getProperty("Initiative",name)!="Z"), CODE:
{<b>[name]:</b> [d20+getProperty("Initiative",name)]<br>};{}]
}
]
 
To be frank, with a busy week like this (due to work and my birthday), I got very prep work done. I barely touched Maptool since last week and have been out most nights.

And since using Maptool for the first time is such a big deal for all of us I'm going to run a very short game session tomorrow. Mostly going to be that one encounter, lots of RP and people getting settled into the new tools.
 
Kindly note, there's no game tonight.

Quite frankly I'm far too tired to run a game tonight. Busy week for this birthday boi.
 
Just took a power nap. Goddamn I was tired.

This is what I got for staying up till 3 with a friend who's on vacation. The beer didn't help. Especially when I had to wake up early and had to train a group of 10. Morning was fine but mid-afternoon I felt a void.

The kind where you can fall asleep on the deck and not know it's raining until my significant other wakes up otherwise when she gets home.
 
esc, rathkor and I all explored maptools in your absence. Once I got the server up and running, we learned a fair bit.
 
Guys due to a change in management at work, my shift availability was sort of compromised this week. Not a huge deal, but it looks like I'll be just over an hour late to the game on Thursday. Sorry.
 
Sadly things are looking bad for Thursday due to work. Friday I found out I'll be spending most of the day on the road visiting a client 4 hours from Montreal. Since the client is important to higher management things look bleak.
 
R

rathkor

If HC gets to feeling better. looks like all D&D is at risk this week. oh well, it's not te end of the world. that was last week. lol
 
Status
Not open for further replies.
Top