-
August 1st, 2020, 08:07 #1
IFT: TYPE() function question and also automation
One of the new monsters in the new module The Slithering has a nice ability namely choosing a creature type (animal, celestial or humanoid)
and adding 1d10 damage of the weapon damage type.
So the automation isCode:Effect: IFT: TYPE(humanoid); DMG: 1d10 piercing
Just noticed adding [SELF] at the end of the effect negates my previous sentence.
And here I found 2 conundrums.
1) The players don't have a TYPE tag. Now how do I apply the extra damage to the players?
2) The creature also can attack with jaws. How do I differentiate between natural and weapon attacks?
I guess I can turn off the effect manually.
Any suggestions are welcome.Last edited by Farnaby; August 1st, 2020 at 08:54. Reason: Found [SELF] addition
“Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.”
Terry Pratchett [RIP] - Jingo
-
August 1st, 2020, 08:21 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,541
In 5E, the "race" field is parsed to look for creature type and subtype information (while the NPC uses the "type" field). If a creature type isn't specified (i.e. one of "aberration", "beast", etc.); then the default type is assumed ("humanoid"). So, most PCs end up with a "humanoid" type, and a racial subtype ("elf", "dwarf", etc.)
I'm guessing that the PF2 ruleset might have something similar, but we'll have to wait for Trenloe to answer.
Regards,
JPG
-
August 1st, 2020, 08:39 #3
1) The TYPE tag checks the traits of either NPCs or PCs.
2) You can't differentiate between weapon or natural attacks with an effect.Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
August 1st, 2020, 08:55 #4
Double Post
Last edited by Farnaby; August 1st, 2020 at 08:58.
“Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.”
Terry Pratchett [RIP] - Jingo
-
August 1st, 2020, 08:56 #5
IFT.jpg
As you can see here the first damage is against a PC who is a dwarf and (hangs head in shame) yes, I found the PC traits field. It says Dwarf Humanoid.
The effect is not applied. But it is applied to the hill giant.
IFT2.jpg.png“Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.”
Terry Pratchett [RIP] - Jingo
-
August 1st, 2020, 10:22 #6
Please don't ask me why, but I was working on something else and came back to look again and without changing anything it's now working.
“Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.”
Terry Pratchett [RIP] - Jingo
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks