[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 > 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 04-07-2012, 11:02 PM   #1 (permalink)
Registered User Karzama
Karzama
 
Karzama's Avatar
 
Join Date: Oct 2010
Posts: 328
Karzama has little to show at this moment (13)Karzama has little to show at this moment (13)
Change max health of a unit by a percentage through triggers?

I've been trying to make an ability that will increase the targets hit points by X%. But I can't find any way to do this as a percentage, any ideas?
Karzama is offline  
Old 04-07-2012, 11:34 PM   #2 (permalink)
Registered User Vizel
Unintentionally Offensive
 
Vizel's Avatar
 
Join Date: Jan 2009
Posts: 1,040
Vizel is a jewel in the rough (193)Vizel is a jewel in the rough (193)
Do you mean that you're trying to heal a unit for x% or that you're trying to increase the max health of a unit by x%?

I assume the second.

EDIT: I didn't even read the whole title, so this was a pretty worthless question. >.>
__________________
Officially done with WC3. I've moved on.
If you want to talk to me, click there.
---------->
I'm Ipurgepeople there.
As a matter of courtesy, you
should +Rep those who help!
Vizel is offline  
Old 04-07-2012, 11:46 PM   #3 (permalink)
Registered User Lifee_72
User
 
Lifee_72's Avatar
 
Join Date: Mar 2009
Posts: 249
Lifee_72 has little to show at this moment (25)Lifee_72 has little to show at this moment (25)Lifee_72 has little to show at this moment (25)
NVM i thought u want to increase hp by 100% only.
Lifee_72 is offline  
Old 04-08-2012, 12:03 AM   #4 (permalink)
Registered User Vizel
Unintentionally Offensive
 
Vizel's Avatar
 
Join Date: Jan 2009
Posts: 1,040
Vizel is a jewel in the rough (193)Vizel is a jewel in the rough (193)
From a percentile standpoint, I cannot think of doing it any way besides:

For Hero - The creation of a ton of abilities to cover every possible amount of health and checking for the percentage of health to determine which ability to use.

Unit (With Static HP) - Create an ability for each unit type that you have (So, one ability for the peasant, one for a Footman, etc) and run a unit-type check and match the appropriate ability.

Either way is extremely obnoxious and time-consuming, though.
__________________
Officially done with WC3. I've moved on.
If you want to talk to me, click there.
---------->
I'm Ipurgepeople there.
As a matter of courtesy, you
should +Rep those who help!
Vizel is offline  
Old 04-08-2012, 12:59 AM   #5 (permalink)
Registered User defskull
ϟƘƦƖ|ןΣ✘
 
defskull's Avatar
 
Join Date: Mar 2008
Posts: 7,877
defskull has a brilliant future (1383)defskull has a brilliant future (1383)defskull has a brilliant future (1383)defskull has a brilliant future (1383)
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! 
Your percentage based on... ?
Current HP or Max HP ?
__________________
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 04-08-2012, 01:34 AM   #6 (permalink)
Registered User Meticulous
Helper Crab
 
Meticulous's Avatar
 
Join Date: Nov 2007
Posts: 777
Meticulous is a jewel in the rough (178)
Here you go. This example is permanent but you should be able to use the same method for a temporary boost.
Attached Files
File Type: w3x lifeboosttest.w3x (18.0 KB, 119 views)
Meticulous is offline  
Old 04-08-2012, 12:58 PM   #7 (permalink)
Registered User Karzama
Karzama
 
Karzama's Avatar
 
Join Date: Oct 2010
Posts: 328
Karzama has little to show at this moment (13)Karzama has little to show at this moment (13)
I wanted it to be permanent... And the percentages will be 10%, 20%, 30%, 40% and 50%.
Karzama is offline  
Old 04-08-2012, 11:20 PM   #8 (permalink)
Registered User Meticulous
Helper Crab
 
Meticulous's Avatar
 
Join Date: Nov 2007
Posts: 777
Meticulous is a jewel in the rough (178)
Well that trigger will work perfectly for you because it scales by 10% per level for any number of levels, so you won't even have to change anything.
Meticulous is offline  
Old 04-09-2012, 08:07 AM   #9 (permalink)
Registered User wardonis
User
 
Join Date: Apr 2012
Posts: 23
wardonis is an unknown quantity at this point (0)
I've looked through the map and its triggers but I'm a bit lost on it. I'm trying to something very similar. I want to use a research upgrade to increase a hero's max mana by 2% with each research rank (15 ranks). but without affecting the char's str, int or agi at all.

I also want to do the same thing with mana regen, have an upgrade that will increase regen rate of a hero without affecting the stats.
wardonis 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 04:18 AM.




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