The Forums Are Now Closed!

The content will remain as a historical reference, thank you.

Adding next bonus

By on December 13, 2012 11:06:05 AM from Demigod Forums Demigod Forums

W0jtek0123

Join Date 05/2012
0

Hello Demigod Modders

 

I have question, how to add for example to boots speed for 8 seconds which inc movement speed by 90%. + movement speed which adds 45% to movement speed normally likes to Boots of Speed does.

 

example

boots of speed:

movement inc by 45%

movement speed inc by 90% for 8 seconds with cooldown of 30 seconds

 

 

#################################################################################################################
# Boots of Speed
#################################################################################################################

ItemBlueprint {
    Name = 'Item_Boot_020',
    DisplayName = '<LOC ITEM_Boot_0002>Boots of Speed',
    GetMoveSpeedBonus = function(self) return math.floor( Buffs['Item_Boot_020'].Affects.MoveMult.Mult * 100 ) end,
    Tooltip = {
        Bonuses = {
            '<LOC ITEM_Boot_0003>+[GetMoveSpeedBonus]% Movement Speed',
        },
    },
    Mesh = '/meshes/items/chest/chest_mesh',
    Animation = '/meshes/items/chest/Animations/chest_Idle_anim.gr2',
    MeshScale = 0.10,
    Icon = 'NewIcons/Boots/Boot2',
    Abilities = {
        AbilityBlueprint {
            Name = 'Item_Boot_020',
            AbilityType = 'PassiveAll',
            FromItem = 'Item_Boot_020',
            Icon = 'NewIcons/Boots/Boot2',
            Buffs = {
                BuffBlueprint {
                    Name = 'Item_Boot_020',
                    Debuff = false,
                    BuffType = 'BOOTSPEED',
                    EntityCategory = 'ALLUNITS',
                    Stacks = 'ALWAYS',
                    Duration = -1,
                    Affects = {
                        MoveMult = {Mult = 0.30},
                    },
                    Effects = 'RunSpeed01',
                }
            },
            OnAbilityAdded = function(self, unit)
                unit:GetAIBrain():AddArmyBonus( 'Item_Boot_020Army', unit )
            end,
            OnRemoveAbility = function(self, unit)
                unit:GetAIBrain():RemoveArmyBonus( 'Item_Boot_020Army', unit )
            end,
        }
    },
}

ArmyBonusBlueprint {
    Name = 'Item_Boot_020Army',
    ApplyArmies = 'Single',
    UnitCategory = 'MINION',
    RemoveOnUnitDeath = true,
    RemoveOnUnitDeath = true,
    Buffs = {
        BuffBlueprint {
            Name = 'Item_Boot_020Army',
            BuffType = 'BOOTSPEED',
            Debuff = false,
            Stacks = 'REPLACE',
            Duration = -1,
            Affects = {
                MoveMult = {Mult = 0.30},
            },
        }
    }
}

Locked Post 1 Reply
Search this post
Subscription Options


Reason for Karma (Optional)
Successfully updated karma reason!
December 19, 2012 11:49:32 AM from Demigod Forums Demigod Forums

Ermm... this is what wand of speed does....

 

Reason for Karma (Optional)
Successfully updated karma reason!
Stardock Forums v1.0.0.0    #108433  walnut3   Server Load Time: 00:00:00.0000156   Page Render Time: