Thread: 5E - Damage Re-map
-
February 8th, 2022, 00:23 #1
- Join Date
- Mar 2014
- Location
- Staffordshire, UK
- Posts
- 337
5E - Damage Re-map
I have a number of different products for 5e and they have a different damage types. For instance in a SciFi game I have Radiation and Laser damage. Rather than edit all of the weapons from the different sources I would like to remap the damage types via an index table.
e.g.
radiation -> necrotic
laser -> radiant
...etc
The bit of code I am looking for is the code that calculates resistence, vulnerbility ..etc.
I want to search the damage rolled and if it matches the new data type (e.g. radiation) to replace it with a standard 5e equivelant (in this case necrotic). If it failes to match to let the rolled damage thru unchanged. This would allow any standard 5e monsters to retain some form of resistance/immunity/vulnerbility for weapon types.
It would be good to output the original damage type, but if thats too dificult to do, I would be looking to output the replaced damage type.
Hopefully some one can guide me to the correct bit of code for this....Ultimate License
UK Time Zone (GMT/BST)
DM'ing since 1977 (Basic D&D)
Currently Playing:
Empire of the Ghouls 5E Campaign
Tales from the Yawning Portal 5E Campaign
Rise of the Runelords Pathfinder 1e
Amazing Adventures 5E Campaign"Some are born to move the world, to live their fantasies
But most of us just dream about the things we'd like to be."
Rush - Losing It
Currently DM'ing
Princes of the Apocalypse 5E Campaign
Waterdeep: Mad Mage 5E Campaign
The Blight 5E Campaign
-
February 8th, 2022, 00:32 #2
- Join Date
- Mar 2014
- Location
- Staffordshire, UK
- Posts
- 337
Sorry - I think I posted this in the wrong place - it is late here....
If I have - can an admin move it to the correct place.Ultimate License
UK Time Zone (GMT/BST)
DM'ing since 1977 (Basic D&D)
Currently Playing:
Empire of the Ghouls 5E Campaign
Tales from the Yawning Portal 5E Campaign
Rise of the Runelords Pathfinder 1e
Amazing Adventures 5E Campaign"Some are born to move the world, to live their fantasies
But most of us just dream about the things we'd like to be."
Rush - Losing It
Currently DM'ing
Princes of the Apocalypse 5E Campaign
Waterdeep: Mad Mage 5E Campaign
The Blight 5E Campaign
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks