FG Spreadshirt Swag
Page 1 of 2 12 Last
  1. #1
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    Blog Entries
    1

    Inflicting Spell Damage

    How do you inflict spell damage?
    I cant seem to find a way to automate the application of spell damage?
    Say my good wizard Thom sends a fireball the way of some Ettins.
    He targets all those in the area of effect.
    How do I then apply either 5d6 or 5d6/2 damage?
    Is there a way to do this in C&C?
    For NPCs I can add Fireball as a Weapon with the damage afterwards in brackets. That works - but what about for my PCs?
    Additionally then - is there a way to say apply a 50% damage reduction on the lucky Ettin that saves his Dex check? That way I would still apply 5d6 to them all but have something already applied to the Ettin that reduces the applied damage by 50%
    Are any of these possible?

    I guess this could apply to other non spell like things like falling damage?
    PCs are crossing a bridge which collapse and they take 3d6 damage... is there a way to apply this to each?

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    Quote Originally Posted by damned View Post
    How do I then apply either 5d6 or 5d6/2 damage?
    Is there a way to do this in C&C?
    For NPCs I can add Fireball as a Weapon with the damage afterwards in brackets. That works - but what about for my PCs?
    Additionally then - is there a way to say apply a 50% damage reduction on the lucky Ettin that saves his Dex check? That way I would still apply 5d6 to them all but have something already applied to the Ettin that reduces the applied damage by 50%
    Are any of these possible?
    • Roll the damage from an attack entry without anyone targeted. This is because spell damage is usually only rolled once for all targets.
    • Drag the damage from the chat window to the tokens of the creatures that failed the save - do this one by one.
    • If any creatures made the save, right click on the damage entry in the chat window and select "Halve value"
    • Drag the resulting half damage value to the tokens of all of the creatures who made the save.


    The actions types defined in the C&C manager_gamesystem.lua script are:
    Code:
    actions = {
    	["dice"] = { bUseModStack = "true" },
    	["table"] = { },
    	["init"] = { bUseModStack = "true" },
    	["ability"] = { bUseModStack = "true" },
    	["attack"] = { sIcon = "action_attack", sTargeting = "each", bUseModStack = "true" },
    	["damage"] = { sIcon = "action_damage", sTargeting = "each", bUseModStack = "true" },
    	["heal"] = { sIcon = "action_heal", sTargeting = "all", bUseModStack = true },
    	["effect"] = { sIcon = "action_effect", sTargeting = "all" }
    };
    For spell damage there would need to be an entry similar to damage but has sTargeting = "all" rather than "each" so that damage would only be rolled once. Then this would have to be programmed into the ruleset to be used when spell damage was being applied.

    Quote Originally Posted by damned View Post
    I guess this could apply to other non spell like things like falling damage?
    PCs are crossing a bridge which collapse and they take 3d6 damage... is there a way to apply this to each?
    Setup an NPC called "Bridge Trap" and have the relevant attack/damage entry in "Attacks".
    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!

  3. #3
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    Blog Entries
    1
    I think I will create a NPC called Trap and list lots of different weapons It can be a hidden combatant at all times... I might accidentally trip over it myself if the players are boring me....

    Forgive my ignorance but how do I use Heal from those actions?

  4. #4
    JohnD's Avatar
    Join Date
    Mar 2012
    Location
    Johnstown ON
    Posts
    5,319
    Blog Entries
    1
    Quote Originally Posted by damned View Post
    I think I will create a NPC called Trap and list lots of different weapons It can be a hidden combatant at all times... I might accidentally trip over it myself if the players are boring me....

    Forgive my ignorance but how do I use Heal from those actions?
    Great idea. Including that bit about accidentally attacking the characters.
    "I am a Canadian, free to speak without fear, free to worship in my own way, free to stand for what I think right, free to oppose what I believe wrong, or free to choose those who shall govern my country. This heritage of freedom I pledge to uphold for myself and all mankind."

    - John Diefenbaker

    RIP Canada, February 21, 2022

  5. #5
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    Blog Entries
    1
    a follow up question -

    what is the format for weapon Damage if you drag to a Hotkey?
    ie I could make a Hotkey for Fireball or Magic Missile if I can get the syntax right!

    [DAMAGE (M)] Magic Missile 1d4+1
    [DAMAGE (M)] Magic Missile (1d4+1)

    I can create a weapon called Magic Missile and then drag the damage to the Hotkey and it works but I want to know the formatting if anyone knows it?
    Will be quicker to write these up outside of FG and copy them in rather than create new "weapons"...

  6. #6
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    Quote Originally Posted by damned View Post
    what is the format for weapon Damage if you drag to a Hotkey?
    ie I could make a Hotkey for Fireball or Magic Missile if I can get the syntax right!

    [DAMAGE (M)] Magic Missile 1d4+1
    [DAMAGE (M)] Magic Missile (1d4+1)

    I can create a weapon called Magic Missile and then drag the damage to the Hotkey and it works but I want to know the formatting if anyone knows it?
    Will be quicker to write these up outside of FG and copy them in rather than create new "weapons"...
    Looking at an example slot within <campaign>\usersettings\hotkeys_host.xml (which is written when the campaign is closed) at an example entry, it appears it is essentially a dragdata object that is required:
    Code:
    <bank number="0">
    	<key number="0">
    		<description>[DAMAGE (M)] </description>
    		<icon>action_damage</icon>
    		<shortcut>
    			<class>pc</class>
    			<datasource>charsheet.id-00001</datasource>
    		</shortcut>
    		<data>
    			<type>damage</type>
    			<slot number="0">
    				<type>damage</type>
    				<string>[DAMAGE (M)] </string>
    				<dice>
    					<die>d6</die>
    				</dice>
    			</slot>
    		</data>
    	</key>
    </bank>
    So I'm not sure you can do a string within FG, but you could manually modify the hotkeys_hosts.xml file (when FG is not running) and make up the data that way - don't know if that will be any easier than creating the damage entry in your FG character and dragging to the hotkey slot.
    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!

  7. #7
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    Blog Entries
    1
    you are right it might not be easier but at least I could copy and paste to a new character
    or maybe make a new spells module so that the spells could be dragged in as weapons...?
    is there a reference that I can find the different damage types? I can add the [M] and get the sword Icon - i can leave it blank and get the blood drop icon - are there others?

  8. #8
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    [R] for ranged.
    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!

  9. #9
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,678
    Blog Entries
    1
    so.... do you know off the top of your head where i would look to see how hard it would be to add a new damage type?

    well it looks like all the damage is the blood icon - I will leave for now - thanks Trenloe

  10. #10
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,404
    Damage is applied in manager_actions_damage.lua
    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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in