HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Custom Spells

12-04-2003, 02:44 AM#1
Dragon
How can you make a spell that makes a design with triggers?

Such as a spell that makes a pentagram of fire or a ring of ice going outwards like frost nova
12-04-2003, 02:55 AM#2
RicFaith
Do a search, I saw both skills in here a while back. the flaming pentagram and a nova.
12-04-2003, 02:58 AM#3
Dragon
I don't want the spells, I want to know how to do it.
12-04-2003, 03:15 AM#4
Xinlitik
They both require mathematical knowledge; the pentagram more so.

The ice rings are pretty simply.

Create units at the unit offset by slowly increasing numbers at different degrees to create whatever shape you want.

With the pentagram, you're going to be dealing with sine, cosine, tangent, etc.
12-04-2003, 03:18 AM#5
FF_Behemoth
The Fire one... there are 2 ways... the long way is to create each fireSFX at a point till you get the shape you wanted. The shorter way(and I think more effecient) is to use complicated (well, to some ppl) math to get the SFX in position.

The ring of ice one, Heres the one I think your talking about. create a unit with the desired SFX as its art-model, order it to move away from caster, give him the carrision swarm ability(change its art projectile to icebolt or whatever). and use trigger to order it cast carrision swarm at various degress.

p.s. what are you doing asking Trigger questions??? Aint you a terrainest for Bifrost??? I'm just J/k :infth:
12-04-2003, 03:24 AM#6
theVIB
you will need to create a special effect on a point with a polar projection. Some knowlege on math will help you here, you will deal a lot with sine and cosine to draw a pentagram

its not hard, I've done a pentagrams some other times, this is one I did for testing on the WinAmp AVS plugin:
a1=3.14*1.5
x=cos(i*pi*2)*0.7+sin(i*pi*2+a1)*0.3
y=sin(i*pi*2)*0.7+cos(i*pi*2+a1)*0.3
where "i" is the time variable

with you play around with those numbers, add a sine here take a cosine from there you can draw some really nice stuff

something like that
12-04-2003, 04:32 AM#7
AlasdairJC
Do you want a pentagon, or a pentagram? I can probably figure out how to do one. Is a pentagram like that satanic symbol, a star in a pentagon?
12-04-2003, 04:43 AM#8
Dragon
A pentagram = the star in the middle of the circle, symbolizing evil stuff.
12-04-2003, 06:43 AM#9
Pheonix-IV
its not actually, its the symbol of magic, but christianity says magic is bad and shows it as the symbol of satan.
12-04-2003, 10:55 PM#10
AlasdairJC
I'm making one. It'll be finished in about half an hour from this post.
12-04-2003, 11:01 PM#11
Dragon
I dunno. Looks kinda evil to me and I'm not christian.
12-04-2003, 11:04 PM#12
linkmaster23
lol, its magic.lol. It probably looks evil cuz you saw it in blood like most people. Cuz of those movies. Gotta love EM
12-04-2003, 11:33 PM#13
AlasdairJC
Finished. If you want to change anything, then go into the trigger titled "Variables". You can change the model, speed of expansion, and maxiumum expansion there. To see the effect, start up Warcraft, and load the map. Scroll over on the map to the Warlock, and type "-fire". To reset the fire, so you can do it again, type "-reset", and then type "-fire" to set it off again.
12-05-2003, 12:14 AM#14
Sage the Mage
Well the points of a pentagram on a circle is startdegree + (360/5)x You just need to figure out the directions to draw them to and from. A map with the pentagram's in my sig at the top of the second page.
12-05-2003, 12:16 AM#15
AlasdairJC
First of all, you're talking about a pentagon. We're talking about a [glow=color=red] pentagram [/glow]. Also, the equation would be y=(x)(tan(360/5). I did lots of trig in my map to figure out where each bit of fire should go. I lovvvvvvvvve trig.....