Thread: 5E - Turn Based Effects
-
April 4th, 2020, 20:49 #1
- Join Date
- May 2017
- Location
- Wisconsin, USA
- Posts
- 135
5E - Turn Based Effects
This is now available on DMs Guild Here
This simple extension adds in a flagCode:ONTURN
Code:Colossus Slayer; IFT: wounded; DMG: 1d8; ONTURN;
Let me know if there are any questions, comments, bugs, requests, or any other general feedback.
Thanks and Enjoy!
Version 1.1: Fixed a bug where some standard effects weren't being parsed properly, like ADVATK and such.
Version 2.0: Changed keyword from TURN to ONTURN so it doesn't have potential overlap with AD&D ruleset.
Version 2.1: Allow setting the effects as GM only for visibility when they deactivate/reactivate.
Version 2.2: Update which should make this play nicely with other extensions.
Version 2.3: Fixed a bug where it wasn't working in some cases.
Version 2.4: Fixed an issue with this not working correctly for players.Last edited by kentmccullough; August 20th, 2020 at 20:53.
-
April 9th, 2020, 15:54 #2
- Join Date
- Apr 2019
- Posts
- 15
Amazing. I can not wait to try this out.
Last edited by wmljohn; April 9th, 2020 at 16:04.
-
April 9th, 2020, 21:02 #3
- Join Date
- May 2017
- Location
- Wisconsin, USA
- Posts
- 135
Updated to version 2.2 this version should play nicely with any other extensions.
-
April 9th, 2020, 21:19 #4---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
April 9th, 2020, 21:35 #5
- Join Date
- May 2017
- Location
- Wisconsin, USA
- Posts
- 135
It does yes, but you may be interested in looking at how I made that happen, imo, should probably be a best practice.
Instead of overwriting the EffectsManager5E.hasEffect and such outright, I make a local variable of what it is, and call that inside my new custom handler so that any previous ways it worked will still work so I could just inject my own code into it.
Code:local getEffectsByType = nil; local hasEffect = nil; function onInit() CombatManager.setCustomTurnEnd(endTurn); getEffectsByType = EffectManager5E.getEffectsByType; hasEffect = EffectManager5E.hasEffect; EffectManager5E.getEffectsByType = customGetEffectsByType; EffectManager5E.hasEffect = customHasEffect; end function customGetEffectsByType(rActor, sEffectType, aFilter, rFilterActor, bTargetedOnly) local results = getEffectsByType(rActor, sEffectType, aFilter, rFilterActor, bTargetedOnly) or {}; -- custom code here return results; end
-
April 14th, 2020, 10:41 #6
Hey man! I was loading your extension but not yet using it but it somehow was screwing up my game last night with latest FGU. 5E enhancer was also loaded. I was getting tbe_ files error but I’ll try to reproduce and get you more details today. Examples of things failing: spiritual weapon couldn’t roll damages, barbarian couldn’t make a cons saving throw, etc.
5E DM, Player, FG conversions, learning LUA, engineer, geek, Ultimate License, Unity Supporter.
DMs Guild Creator
-
April 14th, 2020, 15:34 #7
- Join Date
- May 2017
- Location
- Wisconsin, USA
- Posts
- 135
Do you have the latest version? That would be 2.3 I introduced a bug in 2.2 but it should be fixed now.
-
April 14th, 2020, 19:39 #8
I was on 2.2 indeed! Now for some tests!
5E DM, Player, FG conversions, learning LUA, engineer, geek, Ultimate License, Unity Supporter.
DMs Guild Creator
-
April 15th, 2020, 08:52 #9
- Join Date
- May 2017
- Location
- Wisconsin, USA
- Posts
- 135
Updated to Version 2.4:
- Fixed an issue with this not working correctly for players. I'm now using OOB messages so that things can be properly handled on host end (who owns the CT nodes)
-
April 15th, 2020, 14:11 #10
Are you on github by any chance? I'd rather pull a new version than come here and download+copy
5E DM, Player, FG conversions, learning LUA, engineer, geek, Ultimate License, Unity Supporter.
DMs Guild Creator
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks