Adding Health/Mana/Damage/Etc with GUI

Azrooh

New Member
Reaction score
5
So I've been trying to find a way to add (or subtract) these values when red uses an ability on a unit:

Attack Speed
Hitpoints Regen
Mana Regen
Mana
Hitpoints
Damage

They work off a real value that changes when red types a code.
(-hp xxxx, -damage xxxx, etc)
Trigger:
  • Hitpoints
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Modify Hitpoints [D]
    • Actions
      • --Unsure--


Variable setup trigger:

Trigger:
  • Set Hitpoints
    • Events
      • Player - Player 1 (Red) types a chat message containing -hp as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 3)) Equal to -hp
      • (Substring((Entered chat string), 1, 8)) Not equal to -hpregen
    • Actions
      • Set IncreaseHitpoints = (Real((Substring((Entered chat string), 5, 8))))


How it would work:

Red types -hp 1000
Red casts 'Modify Hitpoints [D]' on a unit.
The target of the ability gains (or has their hitpoints set to) 1000 MAXIMUM hitpoints.
It would go the same for damage, mana, etc.
 

Avaleirra

Is back. Probably.
Reaction score
128
make it so the trigger gives the units tomes. set the tomes up so they give +1 and then give the unit the number entered :).
 

jig7c

Stop reading me...-statement
Reaction score
123
a system called UnitProperties does this very easy
also EGUI does this without the use of JASS... really nice work by Sevion and team
 

Azrooh

New Member
Reaction score
5
a system called UnitProperties does this very easy
also EGUI does this without the use of JASS... really nice work by Sevion and team

I tried EGUI and recently uninstalled it, the unit modification functions kept giving me compilation errors. I got the updated 'bonus' script, and it gave me two compilation errors instead of the one I was getting before getting the new script.
 

jig7c

Stop reading me...-statement
Reaction score
123
you leave the bonus plugin thing off... just use the other ones... it works for me fine..
 

Azrooh

New Member
Reaction score
5
Trigger:
  • Set Attack
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Damage
    • Actions
      • EGUI Unit - Create a set of properties for (Target unit of ability being cast)
      • EGUI Unit - Set the damage of (Target unit of ability being cast) to IncreaseDamage


I got EGUI, reinstalled it, there were no compilation errors... But when I use this trigger, the unit it's cast on disappears, the same way it disappears if it uses a model that's not there. I did the unit properties enabling, but do I need to do the bonus plugins as well?
 

jig7c

Stop reading me...-statement
Reaction score
123
no you don't.. you can leave bonus plugins disabled
 
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