STAR TREK 2d20
  1. #1

    Slow hindrance not working anymore

    Is there a good way to make this work on NPCs now?
    FANTASY GROUNDS CLASSIC & UNITY ULTIMATE LICENSE HOLDER

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,486
    Doswelk mentioned it now works as a hindrance the last time you asked this 1 month ago: https://www.fantasygrounds.com/forum...vage-Worlds%29
    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
    Doswelk's Avatar
    Join Date
    Jul 2005
    Location
    Surrey, UK
    Posts
    2,684
    Here's the version I use.

    Extension.xml:

    Code:
    <?xml version="1.0" encoding="iso-8859-1"?><!-- Copyright SmiteWorks USA, LLC., 2011 -->
    <root version="2.8">
        <properties>
            <name>SlowHindrance</name>
            <version>1.0</version>
            <author>Tim Coombes</author>
            <description>Adds support for Slow to the combat tracker.</description> 
            <ruleset>
                <name>SavageWorlds3</name>
                <minrelease>3.2</minrelease>
            </ruleset>
        </properties>
        <base>
            <script name="ScriptSlow" file="scripts/slow.lua" />
        </base>
    </root>
    slow.lua:

    Code:
    function onInit()    
        InitiativeManager.registerAbilityHandler("slow", "SLOW", slowHandler)
    end
     
    function slowHandler(wActorGroup, tCard, fDraw)
        local msg = {font = "systemfont"}
        local sWording = " was dealt the "
        local sText = wActorGroup.getName() .. sWording .. tCard.displayName()
        local extracards = 1
        if wActorGroup.hasAbility("SLOW") then 
            extracards = 1
        end
        for i = extracards,1,-1 do
            tempcard = fDraw()
            if i == 1 then
                sText = sText .. " and the " .. tempcard.displayName() .. "."
            else
                sText = sText .. ", the " .. tempcard.displayName()
            end
            if tempcard.compareTo(tCard) < 0 then
                tCard = tempcard
            end
            sWording = " uses the "
        end
        msg.text = sText
        ChatManager.deliverMessage(msg)
        
        return tCard, sWording
    end
    My players just defeated an army, had a dogfight with aliens, machine-gunned the zombies, stormed the tower, became Legendary and died heroically

    Yours are still on combat round 6

    Get Savage
    Ultimate License Holder.
    First GM to post a game for the original FG Con!

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