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},
},
}
}
}