How do I add effect duration and units in <effects> in combat tracker nodes? (5E)
I'm trying to do what I've done before except now I have odd duration times that are not just in rounds. Per some examples for spells I found the 5E code I did the following:
Code:
EffectManager.addEffect("", "", nodeNewCTEntry, { sName = sFilterEffect, nDuration = 1, sUnits = "hour", sSource = nodeSourceNameCT.getNodeName()}, false);
And got this in db.xml for the combat tracker node:
Code:
<id-00001>
<public />
<holder name="SilentRuin" owner="true" />
<duration type="number">0</duration>
<init type="number">0</init>
<isactive type="number">1</isactive>
<isgmonly type="number">0</isgmonly>
<label type="string">My Effect</label>
<source_name type="string">combattracker.list.id-00002</source_name>
</id-00001>
I don't get how to add units of time to show how long an effect will be around except in terms of rounds. What do I do? Assume each round is 6 sec - divide by how many of those are in the number of minutes/hours/days I have and stick that in there?
I'm confused as to why the 5E code would have spell effect constants defined as if they can be used in an effect. How do I do this?