HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Feedback on Prism Tower

04-24-2009, 07:43 PM#1
Hans_Maulwurf
So I was trying to trigger the c&c red alert 2 prism tower (which can charge nearby allied towers up).
Zoom (requires log in)

Looks quite complicated at first, however it turned out to a simple code.

Expand 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 :)
Attached Images
File type: jpgprisma.jpg (233.7 KB)
Attached Files
File type: w3xlightningtower.w3x (24.3 KB)
04-24-2009, 09:01 PM#2
0zyx0
It shouldn't display the damage as a real value. The decimal part is not necessary at all.
04-24-2009, 09:26 PM#3
Bobo_The_Kodo
Quote:
It shouldn't display the damage as a real value. The decimal part is not necessary at all.
Failllllllllll
04-24-2009, 09:38 PM#4
Alevice
The text macro configuration is quite interesting. Im really curious about this script, will surely give it a try later today :)
04-24-2009, 10:19 PM#5
Kyrbi0
I love you.

Is this made to be easily copy/pasteable? And is that a custom lightning.slk I spy?
04-24-2009, 10:20 PM#6
Alevice
Quote:
Originally Posted by Kyrbi0
I love you.

Is this made to be easily copy/pasteable? And is that a custom lightning.slk I spy?

It is with newgen. And the lignting seems to be forked lightning. :P
04-24-2009, 10:22 PM#7
Kyrbi0
Quote:
Originally Posted by Alevice
It is with newgen.
GAAAH!!!

Quote:
Originally Posted by Alevice
And the lignting seems to be forked lightning. :P
Really? I was just taking a guess, as the screenshot seemed to freeze the lightning in a very cool-looking pose (one which I didn't recognize from in-game).
04-24-2009, 10:47 PM#8
Alevice
Quote:
Originally Posted by Kyrbi0
GAAAH!!!

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.
04-24-2009, 10:56 PM#9
Hans_Maulwurf
Quote:
Originally Posted by Kyrbi0
I love you.

Is this made to be easily copy/pasteable? And is that a custom lightning.slk I spy?

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
04-24-2009, 11:35 PM#10
Kyrbi0
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?
04-24-2009, 11:45 PM#11
Alevice
You can open it on regular wc3 once saved, but you cant get it to work on regular we.
04-25-2009, 12:11 AM#12
Kwah
Pitzy ate my babies.

But on a serious note, it's kinda sexy.

EDIT: That is the lightning, not Pitzy eating.
04-25-2009, 02:16 AM#13
Anopob
Quote:
Originally Posted by Kyrbi0
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?
No. I guess he meant saving as in saving, compiling and editing.

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.
04-25-2009, 11:18 AM#14
fX_
looks interesting + ss is 'oooooooooooo'

edit: i'd use a tinted drain lightning model for the beam coz it shows particles moving.
04-26-2009, 09:01 AM#15
Pyrogasm
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?