Jump to content


LastKingAragorn

Member Since 17 Jun 2023
Offline Last Active Sep 24 2023 01:50 PM

Topics I've Started

Making an upgradable battle tower 😉

17 June 2023 - 12:54 PM

Hi ROTWK fans and masters,

First of all, sorry for my bad English. I need a little help. Thank you very much for your support.

I made a battle tower with an upgrade button. Vision range, health etc changes after upgrades. Everything works fine no problem.

Well, is there a way to change the value of "ContainMax" in class "HordeGarrisonContain" via upgrade. For example, only 1 units can enter to battle tower at the beginning. After the upgrade, 2 units can enter at the level2.

So like this;

// Before upgrade *****
Behavior = HordeGarrisonContain ModuleTag_HordeGarrison

ContainMax = 1 ;As default

End

// After upgrade *****
Behavior = HordeGarrisonContain ModuleTag_HordeGarrison_LEVEL2

ContainMax = 2 ;Modified

End

Is it possible to do this? Thank you for your help 🤗🤗🤗