wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 04-24-2009, 08:43 PM   #1
Hans_Maulwurf
root bloody root
 
Hans_Maulwurf's Avatar
 
Join Date: Mar 2007
Posts: 117

Hans_Maulwurf will become famous soon enough (52)Hans_Maulwurf will become famous soon enough (52)

Send a message via ICQ to Hans_Maulwurf
Default Feedback on Prism Tower

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 wont charge up the others by simply adding another runtextmacro line. Hope you got what I wanted to say, lol. my english isnt the best. also this was the first what came to mind. maybe ill figure out something better for that problem.

And dont focus on the UserData, i use to set and get each towers cooldown. Ill 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: jpg prisma.jpg (233.7 KB, 247 views)
Attached Files
File Type: w3x lightningtower.w3x (24.3 KB, 9 views)

Last edited by Hans_Maulwurf : 04-24-2009 at 08:44 PM.
Hans_Maulwurf is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 04-24-2009, 10:01 PM   #2
0zyx0
Perfectionist noob
 
0zyx0's Avatar
 
Join Date: Mar 2009
Posts: 255

0zyx0 will become famous soon enough (38)0zyx0 will become famous soon enough (38)

Default

It shouldn't display the damage as a real value. The decimal part is not necessary at all.
__________________
My new signature - Now easier to understand than ever!
0zyx0 is offline   Reply With Quote
Old 04-24-2009, 10:26 PM   #3
Bobo_The_Kodo
oO
 
Bobo_The_Kodo's Avatar
 
Join Date: Jul 2008
Posts: 580

Bobo_The_Kodo has a spectacular aura about (109)Bobo_The_Kodo has a spectacular aura about (109)Bobo_The_Kodo has a spectacular aura about (109)Bobo_The_Kodo has a spectacular aura about (109)

Default

Quote:
It shouldn't display the damage as a real value. The decimal part is not necessary at all.
Failllllllllll
Bobo_The_Kodo is offline   Reply With Quote
Old 04-24-2009, 10:38 PM   #4
Alevice
It feels good
 
Alevice's Avatar
 
Join Date: Mar 2006
Posts: 1,305

Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)

Default

The text macro configuration is quite interesting. Im really curious about this script, will surely give it a try later today :)
__________________
_-|-_

Alevice.jones is SC2 Beta, losers.

Check out my never updated deviantart gallery!!

Kalimdor Raiders (Race Contest #1) Pastebin Page
Cavern Crawlers (Race Contest #2) Pastebin Page
Airship Race Motherfuckers!
Quote:
Originally Posted by http://ajaxian.com/archives/would-you-like-a-_-with-that-new-library-gives-js-what-it-should-have#comment-276203
- Dont solve problems that dont exist.
- Improve the wheel, dont reinvent it.
- Port the wheel if it doesnt exist in your environment.
- Integrate the wheel into your project.
- Make sure you can replace your wooden wheel for a rubber one if someone else invents it.
Alevice is offline   Reply With Quote
Old 04-24-2009, 11:19 PM   #5
Kyrbi0
~There we go~
 
Kyrbi0's Avatar
 
Join Date: May 2008
Posts: 2,902

Submissions (1)

Kyrbi0 is a jewel in the rough (152)Kyrbi0 is a jewel in the rough (152)

Send a message via MSN to Kyrbi0
Default

I love you.

Is this made to be easily copy/pasteable? And is that a custom lightning.slk I spy?
__________________
My Projects, Resources, + Tutorials: ~Just got back from my mission. Glad to be back. Woot! :P~
=It was brought to my attention recently that the ":P" icon stands for "tongue-sticking out", and not the "smirky half-smile" I was using it for all these years. = Thusly I apologize for any unintentional juvenilization of my messages to anyone so afflicted.=
Kyrbi0 is offline   Reply With Quote
Old 04-24-2009, 11:20 PM   #6
Alevice
It feels good
 
Alevice's Avatar
 
Join Date: Mar 2006
Posts: 1,305

Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)

Default

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
__________________
_-|-_

Alevice.jones is SC2 Beta, losers.

Check out my never updated deviantart gallery!!

Kalimdor Raiders (Race Contest #1) Pastebin Page
Cavern Crawlers (Race Contest #2) Pastebin Page
Airship Race Motherfuckers!
Quote:
Originally Posted by http://ajaxian.com/archives/would-you-like-a-_-with-that-new-library-gives-js-what-it-should-have#comment-276203
- Dont solve problems that dont exist.
- Improve the wheel, dont reinvent it.
- Port the wheel if it doesnt exist in your environment.
- Integrate the wheel into your project.
- Make sure you can replace your wooden wheel for a rubber one if someone else invents it.
Alevice is offline   Reply With Quote
Old 04-24-2009, 11:22 PM   #7
Kyrbi0
~There we go~
 
Kyrbi0's Avatar
 
Join Date: May 2008
Posts: 2,902

Submissions (1)

Kyrbi0 is a jewel in the rough (152)Kyrbi0 is a jewel in the rough (152)

Send a message via MSN to Kyrbi0
Default

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).
__________________
My Projects, Resources, + Tutorials: ~Just got back from my mission. Glad to be back. Woot! :P~
=It was brought to my attention recently that the ":P" icon stands for "tongue-sticking out", and not the "smirky half-smile" I was using it for all these years. = Thusly I apologize for any unintentional juvenilization of my messages to anyone so afflicted.=
Kyrbi0 is offline   Reply With Quote
Old 04-24-2009, 11:47 PM   #8
Alevice
It feels good
 
Alevice's Avatar
 
Join Date: Mar 2006
Posts: 1,305

Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)

Default

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.
__________________
_-|-_

Alevice.jones is SC2 Beta, losers.

Check out my never updated deviantart gallery!!

Kalimdor Raiders (Race Contest #1) Pastebin Page
Cavern Crawlers (Race Contest #2) Pastebin Page
Airship Race Motherfuckers!
Quote:
Originally Posted by http://ajaxian.com/archives/would-you-like-a-_-with-that-new-library-gives-js-what-it-should-have#comment-276203
- Dont solve problems that dont exist.
- Improve the wheel, dont reinvent it.
- Port the wheel if it doesnt exist in your environment.
- Integrate the wheel into your project.
- Make sure you can replace your wooden wheel for a rubber one if someone else invents it.
Alevice is offline   Reply With Quote
Old 04-24-2009, 11:56 PM   #9
Hans_Maulwurf
root bloody root
 
Hans_Maulwurf's Avatar
 
Join Date: Mar 2007
Posts: 117

Hans_Maulwurf will become famous soon enough (52)Hans_Maulwurf will become famous soon enough (52)

Send a message via ICQ to Hans_Maulwurf
Default

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

Last edited by Hans_Maulwurf : 04-24-2009 at 11:57 PM.
Hans_Maulwurf is offline   Reply With Quote
Old 04-25-2009, 12:35 AM   #10
Kyrbi0
~There we go~
 
Kyrbi0's Avatar
 
Join Date: May 2008
Posts: 2,902

Submissions (1)

Kyrbi0 is a jewel in the rough (152)Kyrbi0 is a jewel in the rough (152)

Send a message via MSN to Kyrbi0
Default

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?
__________________
My Projects, Resources, + Tutorials: ~Just got back from my mission. Glad to be back. Woot! :P~
=It was brought to my attention recently that the ":P" icon stands for "tongue-sticking out", and not the "smirky half-smile" I was using it for all these years. = Thusly I apologize for any unintentional juvenilization of my messages to anyone so afflicted.=
Kyrbi0 is offline   Reply With Quote
Old 04-25-2009, 12:45 AM   #11
Alevice
It feels good
 
Alevice's Avatar
 
Join Date: Mar 2006
Posts: 1,305

Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)Alevice is a jewel in the rough (190)

Default

You can open it on regular wc3 once saved, but you cant get it to work on regular we.
__________________
_-|-_

Alevice.jones is SC2 Beta, losers.

Check out my never updated deviantart gallery!!

Kalimdor Raiders (Race Contest #1) Pastebin Page
Cavern Crawlers (Race Contest #2) Pastebin Page
Airship Race Motherfuckers!
Quote:
Originally Posted by http://ajaxian.com/archives/would-you-like-a-_-with-that-new-library-gives-js-what-it-should-have#comment-276203
- Dont solve problems that dont exist.
- Improve the wheel, dont reinvent it.
- Port the wheel if it doesnt exist in your environment.
- Integrate the wheel into your project.
- Make sure you can replace your wooden wheel for a rubber one if someone else invents it.
Alevice is offline   Reply With Quote
Old 04-25-2009, 01:11 AM   #12
Kwah
Christmassy.
 
Kwah's Avatar
 
Join Date: Jun 2008
Posts: 644

Submissions (4)

Kwah will become famous soon enough (43)Kwah will become famous soon enough (43)

Default

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 01:12 AM.
Kwah is offline   Reply With Quote
Old 04-25-2009, 03:16 AM   #13
Anopob
Yay!
 
Anopob's Avatar
 
Join Date: May 2006
Posts: 870

Anopob has a spectacular aura about (120)

Default

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.
__________________
Give +REP to people who help you with things or make good resources.
Better Ways of Requesting For Help - Race Contest #2 WIP Thread (Bone Race)
As of December 1st I have my blue rep. Yay :D
Anopob is offline   Reply With Quote
Old 04-25-2009, 12:18 PM   #14
fX_
User
 
fX_'s Avatar
 
Join Date: Jan 2007
Posts: 528

Submissions (2)

fX_ will become famous soon enough (38)fX_ will become famous soon enough (38)

Default

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 12:21 PM.
fX_ is offline   Reply With Quote
Old 04-26-2009, 10:01 AM   #15
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,514

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

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?
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 08:21 AM.


Donate

Affiliates
The Hubb http://bylur.com - Warcraft, StarCraft, Diablo and DotA Blog & Forums The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2014, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services