|
|
#1 |
|
User
|
Anyhow another 2 things quick:
1.) Making items stack when you pick them up (of the same type) 2.) I cant seem to get it right, that when a unit attacks it has a chance to to apply an ability on the attacked unit. (exp: i want to add slow poison with a % chance to do so) |
|
|
|
| Sponsored Links - Login to hide this ad! |
|
|
|
|
#2 |
|
†6†
Join Date: Oct 2008
Posts: 841
![]()
|
1) check all items an unit carries when it picks one. if it has alredy one of that type, add the charges of the picked item to the found item's charges and remove the picked item
__________________2) unit attack events fire before the attack is launched, so it should work to check - if the unit has the desired ability (level > 0) then remove it else -if ramodmreal(0.0,1.0) less or equal than <your chance> (e.g 0.2 for 20%) if this expression is true, add the desired ability to the attacker |
|
|
|
|
|
#4 |
|
User
|
There is no attack event on my worldeditor, there is on "is attacked"
|
|
|
|
|
|
#5 | ||
|
†6†
Join Date: Oct 2008
Posts: 841
![]()
|
Quote:
that's what i ment Quote:
yea, but it should be sufficient...the best way would be to fully trigger it (without adding an ability...bu that's to much effort to do in GUI Last edited by Tot : 07-09-2010 at 12:35 PM. |
||
|
|
|
|
|
#6 |
|
User
|
Lolz, my jass skill are shit?! maybe a gui example?
|
|
|
|
|
|
#7 |
|
Brahms-fan
Join Date: Jan 2006
Posts: 641
![]() ![]() ![]()
|
Actually, you might not need triggers for this at all...
__________________Look up the Item Ability Orb of Slow. It applies a chance that an attack causes an ability to affect the attacked unit. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
|
Donate |