• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

NewBie Questions about STAT ?

Status
Not open for further replies.
Level 4
Joined
May 30, 2012
Messages
40
i want set my hero's heatlh and mana to
10 ?
i dont know how to set them..because
1 starting strength = 25 heatlh ?
1 starting mana = 15 mana ?

and if i set 1 to starting strength , it showing 125 ..
where is the 100 come from??
:ogre_icwydt::ogre_icwydt:
Maybe Simple question for junior..hope for help..
 
Level 14
Joined
Dec 12, 2009
Messages
1,027
Well, you could use a different HP/Mana increments that start with your desired values by:

Advanced/Gameplay Constants:
scroll down until you see "Hero Attributes-"
Change:
-Hit Point Bonus per Strength Point from 25 to 10,
-Mana Point Bonus per Intelligence Point from 15 to 10,
-click "OK",
-Go through the Object Editor and set the hero's base HP and mana to 0.

However, each level up (assuming 1pt/level) will only grant an additional 10HP and 10mana. If this isn't desired, then do what Erkki2 recommends.

//\\oo//\\

Edit:
... I didn't read what Serious stated... so this post is kinda redundant...
 
Last edited:
Level 7
Joined
Nov 15, 2009
Messages
225
You can't set the units max. life or mana using simple natives, like

call SetUnitState(GetTriggerUnit(), UNIT_STATE_LIFE, GetUnitState(GetTriggerUnit(), UNIT_STATE_LIFE) + 1)
//This one would 'heal' the units hp by 1 if the unit doesn't have max. lifes. No effect with full life

You can either add a bonus mod or do it yourself using abilitys which add (+ or -) damage.
A Bonus mod is good if you have a lot items, but you can do it on your own if it's not that much.
 
Level 6
Joined
Nov 24, 2012
Messages
198
Like This
  • First
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Wind
    • Actions
      • Unit - Remove Cold Attack from (Triggering unit)
      • Unit - Remove Fire Attack from (Triggering unit)
      • Unit - Remove Negative buffs from (Triggering unit)
      • Unit - Create 1 Wind Wind for Neutral Passive at (Position of (Triggering unit)) facing Default building facing degrees
      • Set Wind_Dummy = (Last created unit)
      • Unit - Add a 1.00 second Generic expiration timer to Wind_Dummy
      • Unit - Order Wind_Dummy to Orc Shaman - Bloodlust (Triggering unit)
      • Trigger - Turn on Knock <gen>
  • Knock
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) has buff Wind ) Equal to True
    • Actions
      • Set Knock_Chanse = (Random integer number between 1 and 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Knock_Chanse Equal to 1
        • Then - Actions
          • Set Target_Knock = (Attacked unit)
          • Set Caster_Knock = (Attacking unit)
          • Set Location_Knock = (Position of Caster_Knock)
          • Set Angle_Knock = (Facing of (Attacking unit))
          • Unit - Cause Caster_Knock to damage Target_Knock, dealing 200.00 damage of attack type Hero and damage type Unknown
          • Unit - Turn collision for Target_Knock Off
          • Trigger - Turn on Knock Back <gen>
          • Trigger - Turn off (This trigger)
          • Wait 0.50 seconds
          • Trigger - Turn off Knock Back <gen>
          • Unit - Turn collision for Target_Knock On
          • Trigger - Turn on (This trigger)
        • Else - Actions
  • Knock Back
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain pathing at ((Position of Target_Knock) offset by 15.00 towards Angle_Knock degrees) of type Walkability is off) Equal to False
        • Then - Actions
          • Special Effect - Create a special effect attached to the origin of Target_Knock using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
          • Unit - Move Target_Knock instantly to ((Position of Target_Knock) offset by 25.00 towards Angle_Knock degrees)
          • Unit - Cause Caster_Knock to damage Target_Knock, dealing 5.00 damage of attack type Hero and damage type Unknown
          • Destructible - Pick every destructible within 200.00 of (Position of Target_Knock) and do (Actions)
            • Loop - Actions
              • Destructible - Kill (Picked destructible)
        • Else - Actions
 
Level 20
Joined
Jun 27, 2011
Messages
1,864
Like This
  • First
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Wind
    • Actions
      • Unit - Remove Cold Attack from (Triggering unit)
      • Unit - Remove Fire Attack from (Triggering unit)
      • Unit - Remove Negative buffs from (Triggering unit)
      • Unit - Create 1 Wind Wind for Neutral Passive at (Position of (Triggering unit)) facing Default building facing degrees
      • Set Wind_Dummy = (Last created unit)
      • Unit - Add a 1.00 second Generic expiration timer to Wind_Dummy
      • Unit - Order Wind_Dummy to Orc Shaman - Bloodlust (Triggering unit)
      • Trigger - Turn on Knock <gen>
  • Knock
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacking unit) has buff Wind ) Equal to True
    • Actions
      • Set Knock_Chanse = (Random integer number between 1 and 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Knock_Chanse Equal to 1
        • Then - Actions
          • Set Target_Knock = (Attacked unit)
          • Set Caster_Knock = (Attacking unit)
          • Set Location_Knock = (Position of Caster_Knock)
          • Set Angle_Knock = (Facing of (Attacking unit))
          • Unit - Cause Caster_Knock to damage Target_Knock, dealing 200.00 damage of attack type Hero and damage type Unknown
          • Unit - Turn collision for Target_Knock Off
          • Trigger - Turn on Knock Back <gen>
          • Trigger - Turn off (This trigger)
          • Wait 0.50 seconds
          • Trigger - Turn off Knock Back <gen>
          • Unit - Turn collision for Target_Knock On
          • Trigger - Turn on (This trigger)
        • Else - Actions
  • Knock Back
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain pathing at ((Position of Target_Knock) offset by 15.00 towards Angle_Knock degrees) of type Walkability is off) Equal to False
        • Then - Actions
          • Special Effect - Create a special effect attached to the origin of Target_Knock using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
          • Unit - Move Target_Knock instantly to ((Position of Target_Knock) offset by 25.00 towards Angle_Knock degrees)
          • Unit - Cause Caster_Knock to damage Target_Knock, dealing 5.00 damage of attack type Hero and damage type Unknown
          • Destructible - Pick every destructible within 200.00 of (Position of Target_Knock) and do (Actions)
            • Loop - Actions
              • Destructible - Kill (Picked destructible)
        • Else - Actions

You don't need to show to us your triggers, just make a custom object editor ability, like Acid Bomb then modify the buff.

Edit: Oh and, you're leaking points.
 
Status
Not open for further replies.
Top