Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[DMgenie] Active Creature Object

2 views
Skip to first unread message

pasto...@sbcglobal.net

unread,
Aug 6, 2016, 5:51:29 PM8/6/16
to

How can I select the creature object for the currently active creature
from the 'Special' tab of a different creature? ?I'm trying to write
code for a feat that would look at current attacker and apply
conditions to the character with the feat depending on who the attacker
is. ?In the "Special" tab, Cr.Name always refers to the name of the
creature with the feat, not the active creature.

noretoc

unread,
Aug 8, 2016, 9:08:45 AM8/8/16
to
See my last reply, you can't really do this with the special tab of
a feat, as the code dosen't run unless that creature is selected. ?
What feat are you trying to code for? ? What I have done in the past
(thought there may be a better way) for things like this, is I use
conditions. ? EX the Hunter's bond power. ? When a ranger uses it, I
put a condition on the allies who are affected, and then store the
ranger's name in a variable on the ally. ? Then I stor the bonuses
on the ranger in variables. ? Then In the attaqck tab, I have
dmgenie look for that condition. ? If found, it check the variable
on the ally, find the ranger's name. ? Usese get creature by name,
and dtores that in targetCR. ? Then look up the variable from target
cr for the bonuses, and applies them to vr (The active attacker).

For some abilities like auras, I do the same, but throw in a message
box, asking me if the person with the aura is in range, that way i
dont have to keep removing condition as people move in and out of
the aura.


__._,_.___

0 new messages