(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Reply
 
LinkBack Thread Tools Display Modes
Old 07-18-2008, 09:14 AM   #1 (permalink)

User
 
Join Date: Sep 2006
Posts: 2

mininuke10 is an unknown quantity at this point (0)


Promotional Screenshot Unit Health = Variable?

Can I make a unit's health a variable? Like to put a building's health on a leaderboard?
__________________
...............................
mininuke10 is offline   Reply With Quote
Old 07-18-2008, 10:01 AM   #2 (permalink)
 
Huurka's Avatar

Um.
 
Join Date: May 2008
Posts: 1,536

Huurka is a jewel in the rough (211)Huurka is a jewel in the rough (211)Huurka is a jewel in the rough (211)


Real Variable.
Huurka is offline   Reply With Quote
Old 07-18-2008, 10:08 AM   #3 (permalink)
 
NhazUl's Avatar

Merry Fel Christmas!
 
Join Date: Aug 2007
Posts: 427

NhazUl will become famous soon enough (102)NhazUl will become famous soon enough (102)NhazUl will become famous soon enough (102)


Variable Life
Type: Real

Actions
Set Life = Current Life (Value) of Unit

Actions
Leaderboard - Change Player 1 (Red)'s label to Life (this is under Leaderboard - Change Label - Convert Real to String)
__________________
Everyone has been a "noob"... so don't laugh at beginners. Make them great and be proud of it.


[22-28-09] NhazUl: As a matter of fact, I'm a skull with no mandible, 31/2 ribs, 5 spine segments, right 1/2 ulna and almost full palm bones covered with burned flesh and skin, and all of that is haunted by a cloud of fel energy that flows and forms something akin to a human torso with hands.
NhazUl is offline   Reply With Quote
Old 07-18-2008, 10:14 AM   #4 (permalink)
 
Squiggy's Avatar

Returned to mapping
 
Join Date: Mar 2008
Posts: 1,657

Squiggy is a glorious beacon of light (519)Squiggy is a glorious beacon of light (519)Squiggy is a glorious beacon of light (519)Squiggy is a glorious beacon of light (519)Squiggy is a glorious beacon of light (519)

PayPal Donor: This user has donated to The Hive. 

Well you have to make a real to integer conversion if you want to make it look like that
1337 HP

otherwise it looks like that 1337.000 HP
__________________
MapsWarCraftMaul NextGen 2.4 / Twisty TD 1.0 (takes more time)In remembrance of frostwhisper Oct. 10th 2008
ArtEcchi Gallery (Closed)
SpellsMai sp3lz D:
Help please: Gui spells -> JASS spells
Squiggy is offline   Reply With Quote
Old 07-18-2008, 10:21 AM   #5 (permalink)
 
NhazUl's Avatar

Merry Fel Christmas!
 
Join Date: Aug 2007
Posts: 427

NhazUl will become famous soon enough (102)NhazUl will become famous soon enough (102)NhazUl will become famous soon enough (102)


Quote:
Originally Posted by Squiggy View Post
Well you have to make a real to integer conversion if you want to make it look like that
1337 HP

otherwise it looks like that 1337.000 HP

Well, then you need one more action and one more Variable.

Life_Integer
Type: Integer

Actions
All - Set Life_Integer to Life (again under Conversion - Convert Real to Integer)

And then:

Actions
Leaderboard - Set the label of Player 1 (Red) to Life_Integer (under Convert Integer to String)
__________________
Everyone has been a "noob"... so don't laugh at beginners. Make them great and be proud of it.


[22-28-09] NhazUl: As a matter of fact, I'm a skull with no mandible, 31/2 ribs, 5 spine segments, right 1/2 ulna and almost full palm bones covered with burned flesh and skin, and all of that is haunted by a cloud of fel energy that flows and forms something akin to a human torso with hands.
NhazUl is offline   Reply With Quote
Old 07-18-2008, 12:49 PM   #6 (permalink)

iRawr
 
Join Date: Dec 2005
Posts: 8,349

PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)PurplePoot is a splendid one to behold (807)

Paired Mapping Contest #4 Winner: Fallen Angel - Lucifer's Keep Respected User: This user has been given the respected user award. Map Development Mini-Contest #1 Winner: Stand of the Elements 

Or just skip the useless variable and set the leaderboard directly...
PurplePoot is offline   Reply With Quote
Old 07-18-2008, 01:07 PM   #7 (permalink)
 
Linaze's Avatar

 
Join Date: Feb 2007
Posts: 739

Linaze will become famous soon enough (104)Linaze will become famous soon enough (104)Linaze will become famous soon enough (104)


Why do you need a real and a integer, dosen't this work just as fine?
BuildingsHpLeaderboard
Events
Time - Every 0.05 seconds of game time
Conditions
Actions
Leaderboard - Change the label for "YourPlayer" in "Your Leaderboard" to (String((Life of (Your Unit))))

Edit, tested it myself and it worked just fine.
Linaze is offline   Reply With Quote
Old 07-18-2008, 08:06 PM   #8 (permalink)

User
 
Join Date: Sep 2006
Posts: 2

mininuke10 is an unknown quantity at this point (0)


Idea Thanks

Thanks for all your help :D +rep
__________________
...............................
mininuke10 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] To replace a unit after time/health debode World Editor Help Zone 36 06-20-2008 05:52 AM
[Trigger] An ability that kills a unit if it's health is below a certain percentage. bub Triggers & Scripts 2 02-18-2008 02:54 AM
Unit Health Bar bwack_wat World Editor Help Zone 7 08-15-2007 03:50 PM
Unit Health Variable Iminent Map Development 2 09-11-2006 12:54 AM
How do yu make a unit variable recognize the unit as a hero? DeadDogNoGoWoof Map Development 4 11-24-2004 03:36 PM

All times are GMT. The time now is 07:58 AM.






Your link here 
Mortgage | Ringtones | Mortgages | File Host | Loans
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle