| 02-15-2008, 10:53 AM | #1 |
Hi.. i'm making a map that is allmost like the known dota with some differences like the terain is completely different and players fight for themselves there are not teams.. It's actually an all against all game and it has 8 players.. Anyway i have allmost complete the basics like the terain and the triggers for the multiboard the kills the rewards some "quest" that are given to players and blah blah blah... Something new (at least new in games like this) that i wanted to try is to make a trigger that creates a floating text with the dmg every time a unit hits another (that's only for hero units not for creeps). The problem is that i can't find a way to get the dmg into a variable or something.. The editor has the arithmetic "dmg taken" but that only works with a specific unit event. But i can't possibly know which this unit will be cause i won't know what character this player might choose and i won't know when this unit will be hit.. I tried to set the selected chars in a variable (array) but still it doesn't work.. it actually doesn't accept unit variables in a specific unit event.. it only wants you to point a unit that exist on the map and not one that was created during the game (like the heros players choose).. After a couple of hours i thought that i might need to uses a trigger for each player for this but still there is the problem that i don't know from the begining what heros will these players might chose so i can define them as the specific units the trigger asks for.. Anyway i try to avoid that solution cause it has many triggers and i think it will leak a lot.. And speaking of leaks i'm not actually sure (even if i manage to get a solution on that problem and get that trigger working) if i'm going to keep it i'm afraid that it will leak very bad.. but i will try it.. So plz if you have any idea help me and i'll be glad to help you anyway i can too... Also if you allready know from past experience or something if this trigger will leak i'll be glad to know that!! Thnx for reading this thread and for helping me!!!!! |
| 02-15-2008, 06:55 PM | #2 |
Here's a basic method: http://www.wc3campaigns.net/showthre...+damage+amount You might want to look through the damage detection systems because they might have functions to see how much damage it done. http://www.wc3campaigns.net/showthread.php?t=98231 http://www.wc3campaigns.net/showthread.php?t=78753 http://www.wc3campaigns.net/showthread.php?t=84804 |
| 02-16-2008, 02:30 PM | #3 |
well the links you gave me didn't actually helped me.. basicaly because of me cause i don't know jass and the only thread that was in GUI was actually for a specific unit event which i allready knew this way but i can't use it cause i can't possibly set a specific unit event when i don't know from the begining of the game which this unit will be.. Anyway thnx for your time and i really apreciate it! |
| 02-16-2008, 03:18 PM | #4 |
There is no generic unit event for taking damage, Blizzard didn't build one... If you want to check for damage accurately you have to make triggers for all your heroes using specific unit events for taking damage with your preplaced hero units. Even in Jass you would have to use specific unit events. (Well, I saw a damage detection system here in the forums with the generic unit event: unit gets attacked. The one who wrote this system also said, that it could check accurately for damage and will not fire if the unit isn't damaged but only attacked. If I remeber right it even was in GUI, but I'm not sure.) EDIT: Not sure if it was this system here, but it can be used with GUI although the actual system is set up with jass. |
| 02-16-2008, 04:17 PM | #5 |
*Sigh* First of all, your topic fails, wretchedly. Topics with titles like these are more prone to get you yelled at than helped. Try being specific... And seriously, begging for help "PLZ HALP MEEEEEE!!1111" is really lame. Discounting that your logic and reasoning behind wanting to make the system are totally flawed and retarded, the following sample is in our database: Click Me. |
| 02-16-2008, 05:05 PM | #6 |
plzzz hlp me pllzzz, I am soo noob, but I started warking of this massive version of dota but will be differen from dota and it have 100+ heroes and will all hav trigger skills, but I need to learn trigger first because I am noob at program, will someon help me plz, I aslo not good in english. Plzz help me tnx, tnx. |
| 02-17-2008, 04:12 PM | #7 |
This is very similiar to another post I just made... anyway, here goes: Trigger: Trigger: You might want to add sevreal conditions to the text trigger, such as if the attacking (damage source) unit is a hero. Regarding leaks; don't worry. Since you are not using JASS, I must assume that the map is full of them anyway. And it's not that much of a big deal. |
| 02-18-2008, 07:36 AM | #8 |
yes, integers are the most leaky of all things. anyway, just trigger it to add the unit when it is made from your hero tavern (if thats how u want to have it...) Themerion: nice dp! "P|_34Ze |-|eLp /\/\E!!! I Sp34|< 0NLi t3h l33t, (4N |_| H3LP Moi? P|_Z, U R 4|_|_ 50 l33t Hax0rs, & i n33d h3|pzor! I75 4 D074, l0lzor! I|= U he3|_|* Moi i|| gi\/3 u a R1d3 i|\| M"/ Rof|C0pt3r!!!11!!!!ONE!!!Z0/\/\G |_OL D0T4!!!" |
| 02-18-2008, 07:43 AM | #9 |
Gorman, you are an idiot. |
| 02-18-2008, 10:34 AM | #10 |
I got him ignored so I can't see what he said, but it's probably retardingly epic :D |
| 02-18-2008, 10:52 AM | #11 | |
Quote:
nope, it is epicly retarded. |
| 02-18-2008, 12:10 PM | #12 | |
Quote:
That cuts me deep man, that took me many minutes to type + ur awesome ![]() |
| 02-18-2008, 05:44 PM | #13 |
:P |
| 02-19-2008, 08:44 AM | #14 | |
Quote:
I'm so tempted to +rep just for taking the time to type that out. Hell of an accomplishment. |
| 02-19-2008, 09:15 AM | #15 | |
Quote:
|
