(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 11-16-2008, 03:23 PM   #1 (permalink)

User
 
Join Date: Jan 2008
Posts: 17

Joying is an unknown quantity at this point (0)


??Floating Text Damage System??

Hi!

Im searching for a PERFECT floating text system that
- Shows the damage that your hero does
- Shows healing
- Shows AOE type damage spells direct damage

Is it possible ?
Joying is offline   Reply With Quote
Old 11-16-2008, 03:35 PM   #2 (permalink)
 
l0git3c's Avatar

GUI Only
 
Join Date: Jan 2007
Posts: 54

l0git3c has little to show at this moment (8)


yes its possible

All you need is "Detect Damage" Engine with JASS. Search for tutorial in this site.

For Healing, you can do it without JASS tho
l0git3c is offline   Reply With Quote
Old 11-16-2008, 03:48 PM   #3 (permalink)
 
Day-Elven's Avatar

User
 
Join Date: Apr 2008
Posts: 347

Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)


Ehm, you can do all without jass.
I used that trigger in my old map and it worked properly.

At first you need to add an event to trigger which will show damage.
Actions
Unit Group - Pick every unit in (UnitsMatchingCondition: ***)) and do (Actions)
Loop - Actions
Trigger - Add to Damage <gen> the event (Unit - (Picked unit) Takes damage)
Custom script: call DestroyGroup( GetLastCreatedGroup() )

Then, damaging trigger:
Conditions
((Damage source) is A Hero) Equal to True
(Integer((Damage taken))) Greater than 0
Actions
Floating Text - Create floating text that reads (String((Integer((Damage taken))))) at (Position of (Triggering unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 60.00%, 28.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Set the velocity of (Last created floating text) to 60.00 towards 90.00 degrees
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Day-Elven is offline   Reply With Quote
Old 11-16-2008, 07:11 PM   #4 (permalink)
 
darkrider's Avatar

Sacred War Editor
 
Join Date: Dec 2007
Posts: 569

darkrider has little to show at this moment (40)darkrider has little to show at this moment (40)darkrider has little to show at this moment (40)darkrider has little to show at this moment (40)darkrider has little to show at this moment (40)


that should work ... but that is only detecting for units that are placed in the game before you run that trigger... if you wanna add units that appeared in the game after the first trigger execution you have to do the same... else they wont be in the damage detection system

for ie: unit enters playable map area then Add to Damage <gen> the event (Unit - (entering unit) Takes damage)
darkrider is offline   Reply With Quote
Old 11-18-2008, 05:28 AM   #5 (permalink)
 
M_Vegeta's Avatar

User
 
Join Date: Feb 2008
Posts: 109

M_Vegeta has little to show at this moment (4)


could u make 1 for spell ? so i can change id for spell and make it work ^^ could be nice
__________________
DBZ TRIBUTE SUPREME
http://www.hiveworkshop.com/forums/resource.php?t=97487
Made By Poeple For Poeple
FUBU
For us By us
M_Vegeta is offline   Reply With Quote
Old 11-19-2008, 06:46 AM   #6 (permalink)
 
l0git3c's Avatar

GUI Only
 
Join Date: Jan 2007
Posts: 54

l0git3c has little to show at this moment (8)


oh yea, u can do it with GUI but it will cause leaks
l0git3c is offline   Reply With Quote
Old 11-19-2008, 10:02 AM   #7 (permalink)
 
Day-Elven's Avatar

User
 
Join Date: Apr 2008
Posts: 347

Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)


The most number GUI triggers cause leaks. You can use global location variables for positions of flying text. I don't think that author of this thread want to make it on jass.
Day-Elven is offline   Reply With Quote
Old 11-19-2008, 10:15 AM   #8 (permalink)
 
Need_O2's Avatar

meow
 
Join Date: Aug 2007
Posts: 2,528

Need_O2 is a jewel in the rough (183)Need_O2 is a jewel in the rough (183)


A damage detection system is very simple (difficult = 2/10)
hard thing is to make a leakless one (difficult = 8/10)
Need_O2 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
[Unsolved] Floating Text for damage! M_Vegeta World Editor Help Zone 6 10-08-2008 04:55 AM
floating text (shown damage) system. how do i make it? T3MPL4R World Editor Help Zone 8 07-01-2008 08:34 PM
Floating damage text without triggers Zieg Triggers & Scripts 6 03-28-2008 12:54 PM
Damage taken shown in Floating text Sgt. Johnson Map Development 1 09-03-2006 09:42 PM
floating text shows damage... Raydrik Map Development 3 04-04-2005 05:00 AM

All times are GMT. The time now is 04:41 AM.






Your link here 
Mortgages | Debt Consolidation | Debt Consolidation | Bankruptcy Certification | Nashville Tennessee Hotels
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle