Spell Cornucopia Fire

Duwenbasden

Ver 6 CREATE energy AS SELECT * FROM u.energy
Reaction score
165
You can call it whatever you like, but leave my name in the trigger. :)

Cornucopia Fire

Shoots out mini magical fire blasts in a cone that damages everything within range.

Technical:
Type: JASS
Thread-Safe/MultiInstancable: Yes
Custom Models / Icons: 0
Dummy Spells / units: 1 / 1
Triggers: 1
Functions: 8 (5 non-constant)

Description:

This is a spell that will draw a triangle pattern in the direction of your choosing, damaging every unit within range of an impact.
If only 1 direction is requested, it will shoot in front.
If only 2 directions is requested, it will shoot in front and back.
If 3 and above, it will shoot in front, and calculate the remaining angles based on the circle

The pattern of 1 of the direction:
Code:
	 /\
	1  1
	/\/\
        1 1 1
        /\/\/\
       1 1 1 1
       /\/\/\/\
      1 1 1 1 1
    ....

This spell is used like the channeling spells -- you can stop casting anytime you like and the spell will stop automatically.

cftw9.jpg


Customisation:
You can customize almost everything for the spell, including radius, damage, the level of the triangle, the angle between each branch... etc.

Limitations:
- This does NOT shoot out in a cone: instead, it does the left side first and gradually move to the right.
- Tends to take forever to finish if the number of directions and the depth of the triangle is > 4.

Code:
Current Version: 47
From 46: Changed radius back to 300.
From 38: Fixed problem with straggling fires.
From 36: Makes dummy less visible.
From 35: Fixed comments.
From 21: Changed to dummy casters instead of trigger damage, removed Pascal effect (still draws triangle though).
From 19: Fixed bug.
From 14: Attaining to the JESP Standard.
 

Attachments

  • Cornucopia_Fire.w3x
    20.7 KB · Views: 303

Sim

Forum Administrator
Staff member
Reaction score
534
You know right that every spell must be posted on the WE Help Zone? Doesn't matter if it's JASS. ;)
 

Duwenbasden

Ver 6 CREATE energy AS SELECT * FROM u.energy
Reaction score
165
I was in a ... spell when I posted it. :(

Someone please move it? :)
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
@Waaaks!: Just wondering, why did you say "Awwww"? :confused:

Anyways, great spell by the look of the screenshot.
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
591
Awesome, so this is what you've been working on all day!
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
Well, here is a good def I found, I didn't know how to phrase it :p :
Originally Posted by Google
"Common name for the Arithmetical Triangle, a suggestive arrangement of the binomial coefficients (qv) in triangular form. It has many uses, and suggests many truths, in number theory and in statistics."

I think that is what it is. :D
 

Pyrogasm

There are some who would use any excuse to ban me.
Reaction score
134
Pascal's triangle is a special triangle in which any two numbers next to each other add up to the number between them on the line below.

It's used in probability and algebra (binomial expansion).
Code:
[center]1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
...[/center]
 

Sim

Forum Administrator
Staff member
Reaction score
534
Ok this spell is really odd.

First of all...

Duwenbasden said:
// This is a spell that will draw a pascal triange pattern in the direction of your choosing.
// If only 1 direction is specified, it will shoot in front.
// if only 2 directions is specified, it will shoot in front and back.
// if 3 and above, it will shoot in front, and calculate the remaining angles based on the circle

Do you ever get to choose those directions? Unless I'm mistaken, this spell is channeling with "No target". You can't choose anything :p

Assuming it is based upon your facing angle, then when it goes behind... it goes far! Here'a scheme of the results.

Code:
Map

_____________________________________________
|                                            |
|                                            |
|                                            |
|                                            |
|                                            |
|         *EXPLOSIONS HERE*                  |
|                                            |
|                                            |
|                                            |
|                                            |
|                                            |
|                                            |
|                                            |
|                                            |
|        O (me)                              |
|       /  (facing)                          |
|                                            |
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

The explosions went that far behind once the "cone" in front of me was done.

When I was up there, it worked fine. Its when I went down to kill some peasants it started to bug out a bit ;)

You should also pick units and damage them instead of damaging an area. Spells that damage their own caster aren't really popular.
 

Duwenbasden

Ver 6 CREATE energy AS SELECT * FROM u.energy
Reaction score
165
I should change it... "direction you are facing" ;) I changed it to no target from point target because when in point target, the backwards shooting isn't that defined.

I'll make a version with dummy units casting clap instead of direct damage tomorrow. ;) I made this so I can do somethng with double recursion. :p
 

Pyrogasm

There are some who would use any excuse to ban me.
Reaction score
134
I think what he meant by "If only 1 direction is requested, it will shoot in front. If only 2 directions is requested..." is that you can change that in a configuration section.
 

Sim

Forum Administrator
Staff member
Reaction score
534
My point is... How can you "request" 2 directions? Point targeted spells target one point, not more ;)
 

Duwenbasden

Ver 6 CREATE energy AS SELECT * FROM u.energy
Reaction score
165
So this spell only have one configuration setting -- front, and other direction spreaded out.

Updated to v36:
- no longer damages the caster
- better triangle drawing, but losing the Pascal Triangle effect.
 

elmstfreddie

The Finglonger
Reaction score
203
>- better triangle drawing, but losing the Pascal Triangle effect.
Ok, well, I dunno how fire could of added up to create the number on the space below ;)
 

Duwenbasden

Ver 6 CREATE energy AS SELECT * FROM u.energy
Reaction score
165
Look at my source code, you'll get it. ;)

// eidt: I derived Cornucopia Fire into Austere Scintillation, which is basically drawing fire lines around the caster. Uses the exact same engine except changing of 1 line.
 

Sim

Forum Administrator
Staff member
Reaction score
534
You still have the same problem: The fires don't do what they should, at all.

An image is worth 1 thousand words, so here's a screenshot witha comment :p



The fires are way too far behind my archmage, and it doesn't vary depending upon my position. they always go up there, whether I'm in the bottom-left corner or the bottom-right corner of the map. If I'm in the top-right corner of the map everything goes well.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top