|
|
#1 |
|
root bloody root
|
So I was trying to trigger the c&c red alert 2 prism tower (which can charge nearby allied towers up).
Looks quite complicated at first, however it turned out to a simple code. JASS:You will propably notice that textmacro stuff at first. The reason I made this, instead of the default static functions and globals configuration is, this way I can make different towers charge each other up (by using different levels of the ability for each towertype) but still make different kinds of lightning which wonŽt charge up the others by simply adding another runtextmacro line. Hope you got what I wanted to say, lol. my english isnŽt the best. also this was the first what came to mind. maybe iŽll figure out something better for that problem. And donŽt focus on the UserData, i use to set and get each towers cooldown. IŽll replace it later by some gamechache/UnitIndex/whatever method. I marked the important lines (the loop) and attached my testmap, which seems to work perfectly Please post your ideas on how to improve this :) Last edited by Hans_Maulwurf : 04-24-2009 at 07:44 PM. |
|
|
|
| Sponsored Links - Login to hide this ad! |
|
|
|
|
#2 |
|
Perfectionist noob
Join Date: Mar 2009
Posts: 255
![]()
|
It shouldn't display the damage as a real value. The decimal part is not necessary at all.
__________________ |
|
|
|
|
|
#3 | |
|
oO
Join Date: Jul 2008
Posts: 577
![]() ![]() ![]()
|
Quote:
|
|
|
|
|
|
|
#4 |
|
It feels good
Join Date: Mar 2006
Posts: 1,305
![]() ![]()
|
The text macro configuration is quite interesting. Im really curious about this script, will surely give it a try later today :)
__________________ |
|
|
|
|
|
#5 |
|
~There we go~
|
I love you.
__________________Is this made to be easily copy/pasteable? And is that a custom lightning.slk I spy? |
|
|
|
|
|
#6 | |
|
It feels good
Join Date: Mar 2006
Posts: 1,305
![]() ![]()
|
Quote:
It is with newgen. And the lignting seems to be forked lightning. :P |
|
|
|
|
|
|
#7 | ||
|
~There we go~
|
Quote:
Quote:
|
||
|
|
|
|
|
#8 | |
|
It feels good
Join Date: Mar 2006
Posts: 1,305
![]() ![]()
|
Quote:
I thought you got it to wrok already? Why so reluctant? Newgen wont eat your children. Okay, maybe it well, but hey, it will be worth it. |
|
|
|
|
|
|
#9 | |
|
root bloody root
|
Quote:
as it is at the moment, you only have to copy the trigger and change the first line: //! runtextmacro AddUnitsWithAbility("A000", "500", "10*(level+1)", "2") A000 is the ability a unit has to have, to do this 500 is the range 10*(level+1) is the damage per tower 2 is the cooldown You need vJass (New Gen WE) to save it. And it uses "FORK" (forked lightning). However its not done yet Last edited by Hans_Maulwurf : 04-24-2009 at 10:57 PM. |
|
|
|
|
|
|
#10 |
|
~There we go~
|
Oh... So I could just open Newgen WE, open my (whatever) map, insert the code (make the aforementioned changes), and save it. After that, I could open/modify/save it in regular WE, or play it in regular WE?
__________________ |
|
|
|
|
|
#11 |
|
It feels good
Join Date: Mar 2006
Posts: 1,305
![]() ![]()
|
You can open it on regular wc3 once saved, but you cant get it to work on regular we.
__________________ |
|
|
|
|
|
#12 |
|
Christmassy.
Join Date: Jun 2008
Posts: 644
![]()
|
Pitzy ate my babies.
But on a serious note, it's kinda sexy. EDIT: That is the lightning, not Pitzy eating. Last edited by Kwah : 04-25-2009 at 12:12 AM. |
|
|
|
|
|
#13 | |
|
Yay!
Join Date: May 2006
Posts: 873
|
Quote:
Is the lightning shown there the main lightning from forked lightning? I mean it doesn't look like it but I guess it's so fast I hardly notice it's purple. That looks awesome though. |
|
|
|
|
|
|
#14 |
|
User
Join Date: Jan 2007
Posts: 528
![]()
|
looks interesting + ss is 'oooooooooooo'
edit: i'd use a tinted drain lightning model for the beam coz it shows particles moving. Last edited by fX_ : 04-25-2009 at 11:21 AM. |
|
|
|
|
|
#15 |
|
Lackadaisically Absent.
Respected User
|
Kyrbi0, if you're so resistant to using the normal WE, do you want me to teach you my setup so you can import relevant jass scripts and still use the Vanilla WE whenever necessary?
__________________ |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
|
Donate |