PDA

View Full Version : How to create an effect with IF condition basd on attack name



galnewinhaw
March 27th, 2017, 02:06
Is there a way to have a condition conditional on the type of attack that is made?

For example, I have a weapon that grants ATK:2; DMG 2; for 3 min, once per day. However, it should only work with the specific weapon (I don't want it to give the bonuses if I attack with a diferent weapon while the condition is active). Is there a way to put this in an IF condition based on athe attack weapon similar to these examples:

Survivor;IF:Bloodied;REGEN:5 [CON]
IFT: TYPE(giant); DMG: 2d6

https://www.fantasygrounds.com/wiki/index.php/5E_Effects#Reference

Trenloe
March 27th, 2017, 03:39
[Moved to the 5E forum as this is a 5E question and not a technical support issue]

IF/IFT are conditional effects and can only check for specific conditions on either the source (IF), or the target (IFT). They can't check for which weapon is used, weapon properties, etc.. Neither can effects be applied to a weapon record and then only come into play when that weapon is used. Effects are only applied to an individual PC or NPC record in the combat tracker and apply to actions for that record.

Additionally, you can't have two conditional effects within the same effect line. So you couldn't use a custom condition to flag using the weapon that would then trigger the effect with the additional conditions.

Your best approach is to only add the conditional effects when you're using said weapon. Then remove them when not. You can ask the GM to remove them for you - which might soon become a pain if you're swapping weapons all the time. So, you might ask them to enable the player effect removal extension to allow you to remove your effects yourself. Extension available here: https://www.fantasygrounds.com/forums/showthread.php?23566-5E-Player-Effect-Removal-Extension

galnewinhaw
March 27th, 2017, 06:00
Thanks for the removal extension tip!

Gwydion
March 27th, 2017, 14:07
Thanks for the removal extension tip!

Yeah, that is a GREAT extension. I use it in all of my games.

Nickademus
March 27th, 2017, 14:38
Still surprised it hasn't been added to the base program...

ColinBuckler
March 27th, 2017, 20:07
Still surprised it hasn't been added to the base program...

Ditto.... There are a couple of things like this that could be added very easily as the code is already written - another one that springs to mind is the "/tvsize".

Seananigans
March 28th, 2017, 14:45
Ditto.... There are a couple of things like this that could be added very easily as the code is already written - another one that springs to mind is the "/tvsize".

What is this you speak of?

Trenloe
March 28th, 2017, 16:01
What is this you speak of?
https://www.fantasygrounds.com/forums/showthread.php?33834-Map-resize-to-TV-resolution-for-Face-To-Face-games

LordEntrails
March 28th, 2017, 16:01
What is this you speak of?
It's a CoreRPG extension, see here; https://www.fantasygrounds.com/forums/showthread.php?33834-Map-resize-to-TV-resolution-for-Face-To-Face-games