[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > World Editor Help Zone


World Editor Help Zone Ask general questions about World Editor features and use in this forum. If you need help fixing a trigger, please post it in Triggers & Scripts. Please review the forum rules before posting.

Closed Thread
 
Thread Tools
Old 12-19-2010, 12:50 AM   #1 (permalink)
Registered User Striker21
Dota's Fan
 
Striker21's Avatar
 
Join Date: Aug 2009
Posts: 384
Striker21 has little to show at this moment (36)Striker21 has little to show at this moment (36)Striker21 has little to show at this moment (36)Striker21 has little to show at this moment (36)
[HELP] Increase Max HP AoE

How to increase all unit around caster (instant cast spell) maximum hitpoint to 3x(caster's strength). I tried a way but it many of leaks and either doesn't work. Thanks 4 advanced
Striker21 is offline  
Old 12-19-2010, 12:54 AM   #2 (permalink)
Registered User ShadowFlare
"Weeee"
 
ShadowFlare's Avatar
 
Join Date: Jun 2008
Posts: 543
ShadowFlare will become famous soon enough (97)ShadowFlare will become famous soon enough (97)ShadowFlare will become famous soon enough (97)
Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to (==) (Ability)
Actions
Unit Group - Pick every unit in (Units within 150.00 of (Position of (Casting unit))) and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to 150.00
__________________

ShadowFlare is offline  
Old 12-19-2010, 12:55 AM   #3 (permalink)
Registered User GhostThruster
See you starside
 
Join Date: Jul 2009
Posts: 4,486
GhostThruster has disabled reputation
You can't increase maximum HP without dummy upgrades.
__________________
GhostThruster is offline  
Old 12-19-2010, 12:56 AM   #4 (permalink)
Registered User ShadowFlare
"Weeee"
 
ShadowFlare's Avatar
 
Join Date: Jun 2008
Posts: 543
ShadowFlare will become famous soon enough (97)ShadowFlare will become famous soon enough (97)ShadowFlare will become famous soon enough (97)
Use this to change max hp:

http://www.hiveworkshop.com/forums/j...erties-142012/

Without Leaks:

Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to (==) (Ability)
Actions
Set TempLoc = (Position of (Casting unit))
Unit Group - Pick every unit in (Units within 150.00 of TempLoc and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to 150.00
Custom Script: call RemoveLocation(udg_TempLoc)
__________________

ShadowFlare is offline  
Old 12-19-2010, 01:01 AM   #5 (permalink)
Registered User ChoovakPetri83
User
 
ChoovakPetri83's Avatar
 
Join Date: Dec 2010
Posts: 35
ChoovakPetri83 has little to show at this moment (6)
+rep of course if this is lawfully
you must create variable of type Integer. And variable of type real. Then create trigger which will set this variable to (caster's strength) count. Event must be Every 0.01 seconds. Then create trigger with event :
A unit - used a spell.
Condition:
Spell = YourSpell.
Action:
set (variable of type real) to (caster's strength)+(x3). Give a unit (variable of type real) hitpoints.
You must use World Editor Unlimited for this.
But increasing hit points of units in AoE is impossible or just I don't know.
ChoovakPetri83 is offline  
Old 12-19-2010, 01:04 AM   #6 (permalink)
Registered User Striker21
Dota's Fan
 
Striker21's Avatar
 
Join Date: Aug 2009
Posts: 384
Striker21 has little to show at this moment (36)Striker21 has little to show at this moment (36)Striker21 has little to show at this moment (36)Striker21 has little to show at this moment (36)
I saw a spell that increase max HP aoe in some seconds. It also useful :D thanks
EDIT: and btw, is there a way to increase unit's stats with items? Ex: you have a spell book item, and use it, there'll be a list of 3 stats. You click stat and your hero will have +that stat?
__________________
Wanna see DotA heroes on paper? ===> Click to visit <===
Nothing is IMPOSSIBLE but Nothing is EASY
Striker21 is offline  
Old 12-19-2010, 04:54 AM   #7 (permalink)
Registered User defskull
ϟƘƦƖ|ןΣ✘
 
defskull's Avatar
 
Join Date: Mar 2008
Posts: 7,834
defskull has a brilliant future (1372)defskull has a brilliant future (1372)defskull has a brilliant future (1372)
Zephyr Contest #9 - Winner: Stringed Shuriken: An assassin is always working like a trickster. This entry proves the theory, as defskull managed to integrate the fictional lore of the human legacy into a single, virtual ability. Strike fast, die instantly! 
Quote:
Originally Posted by forsakener View Post
Use this to change max hp:

http://www.hiveworkshop.com/forums/j...erties-142012/

Without Leaks:

Untitled Trigger 001
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to (==) (Ability)
Actions
Set TempLoc = (Position of (Casting unit))
Unit Group - Pick every unit in (Units within 150.00 of TempLoc and do (Actions)
Loop - Actions
Unit - Set life of (Picked unit) to 150.00
Custom Script: call RemoveLocation(udg_TempLoc)
It DOES leaks =D
Custom script: set bj_wantDestroyGroup = true
Unit Group leaks =D
Put this right above the Unit Group action to clean leak

Also, your formula is wrong:
Unit - Set life of (Picked unit) to 150.00
This will make ALL affected units to be 150 HP, not plus or minus, you just, SET it

This is the correct formula:
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + (3.00 x (Real((Strength of (Triggering unit) (Include bonuses))))))

But as told by others, we cannot change/modify MAXIMUM HP of a unit without upgrades and stuffs
We can only "heal" or "damage" but not change the MAXIMUM values
__________________
SYSTEMS: Custom Stats | Rank | Timed SFX | Income Generator | Spell Power | Item Weight | Jump | Item Bound | Item Durability | Squad Formation | Decelerating Knockback | Lightning Handling | Temporary Ability | Personal Inventory

There are A LOT of differences between Spell Eye-candy Contest and Spell Functionality Contest.
defskull is offline  
Old 12-19-2010, 04:58 AM   #8 (permalink)
Registered User ShadowFlare
"Weeee"
 
ShadowFlare's Avatar
 
Join Date: Jun 2008
Posts: 543
ShadowFlare will become famous soon enough (97)ShadowFlare will become famous soon enough (97)ShadowFlare will become famous soon enough (97)
Agh, you caught it :P
__________________

ShadowFlare is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 10:58 PM.




Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle