Need help with attribute commands

TheDarkBoy

New Member
Reaction score
3
Hi everyone. Im making a HLW-like map and i need help with commands such as "-str max". Any ideas?
Thanks alot :)
EDIT: and with "-str max" it is supposed to mean that for each 100 gold you have you can get 1 strength, if someone got mislead :)
 

Denegoth

New Member
Reaction score
18
If it is say 100 per stat the trigger would be something like

If Player Gold >= 100
Then:
Set IntegerStrGoldTemp = Gold divided by 100
Remove all gold
Set strength of <Hero> = Strength of hero + IntegerGoldTemp
 

WolfieeifloW

WEHZ Helper
Reaction score
372
What if you had 299 gold?
You'd only get 2 points in IntegerGoldTemp and still lose that extra 99 gold.
 

Denegoth

New Member
Reaction score
18
Well then I think it would be

If Player Gold >= 100
Then:
Set IntegerStrGoldTemp = Gold divided by 100
Remove [IntegerStrGoldTemp times 100] Gold
Set strength of <Hero> [Strength of hero + IntegerGoldTemp]
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top