ztz2019 1 Posted January 25, 2017 Such as the harvester, it could change speed by carry weight. Spreading to all objects, is there a way to change AttributeModifier by ModelCondition? I know health point could influence upgrade and attribute by DamageTrigger and (Really)DamagedAttributeModifier, (Really)DamagedAttributeModifier means attribute can be changed by the modelcondition Damaged and ReallyDamaged, but how about other ModelCondition? Share this post Link to post
ztz2019 1 Posted February 15, 2017 Lua. How? ObjectTestModelCondition not effective when 1st time, must remove and change modelconditon again could show difference. Share this post Link to post
Mjjstral 25 Posted February 16, 2017 How? ObjectTestModelCondition not effective when 1st time, must remove and change modelconditon again could show difference. Did you also try to use a ModelConditionEvent? Share this post Link to post
ztz2019 1 Posted February 20, 2017 Did you also try to use a ModelConditionEvent? That what my problem is, I don't know how InternalEvent and ModelConditionEvent work or the relationship between ModelConditionEvent and xml. Such as <InternalEvent Name="OnUnitEntered" /> and <InternalEvent Name="OnTeamEntered" /> in scriptevents.xml, there's no other "OnUnitEntered" in xml or xsd or .lua files, so how this tag works in game? Share this post Link to post
ztz2019 1 Posted February 20, 2017 ok, thanks Mjjstral's idea, I've finished it. Share this post Link to post