Sun Ray 1.5.1

This bundle is marked as approved. It works and satisfies the submission rules.
Ok guys, this is one of the spells for my map, for the light knight. It is a simple spell, but I like the effects and lights so I decided to use it on spell Olympics and to submit it here, because I think people can really make use of it.
This is one of those spells with which I am proud, mainly because this time I made the maths alone (or mostly xD).

The spell is of course JESP, and I hope you all like it.

This spell belongs to my project
Castle vs Castle Flame Edition and I hope you all enjoy it.



Description:
- The light paladin uses the forces of the light to send several Sun Rays which will heal allied units and damage Undead units.

Requirements:
- Jass NewGen Pack (uses vJASS)
- TimerUtils

History:
Version 1.0
- Fixed a Math problem
- Spell was ready, initial release to the forums, for improvements

Version 1.1
- Now you can have waves of lights! If you don't like, just set the interval to zero!

Version 1.2
- Optimization in the code's speed, now it is even faster, and the code is more simple than ever !

Version 1.3
- Added a JESP manifest document
- Added a nice effect on the hero

Version 1.4
- Removed some members from the structure that weren't needed, now x, y and angle are just local variables
- Added Anitarf to the credits section

Version 1.4a
- Removed member "i" it was not needed. Now it is also a local variable
- Made some improvements to the comments

Version 1.5
- Added a boolean variable. Now the rays can depend on the casters angle if the user wants to

Version 1.5.1
- Updated for patch 1.24

Keywords:
CCFE, Ray, Sun, Castle vs Castle, castle, nova, undead, light, heal, paladin, Flame_Phoenix
Contents

Sun Ray (Map)

Reviews
16:31, 1st Nov 2008 Dr Super Good: A very good spell that I can only recomend people to use. It might not be the most efficent but it more than makes up for that by its ease of use. Is a bit too simplistic in my opinion but still has some great...

Moderator

M

Moderator

16:31, 1st Nov 2008
Dr Super Good:
A very good spell that I can only recomend people to use. It might not be the most efficent but it more than makes up for that by its ease of use. Is a bit too simplistic in my opinion but still has some great opitunities to be used.
 
Level 14
Joined
Jan 15, 2007
Messages
349
Your spell is good coded. I just think you have to add after the preload a PreloadStart function, if I understood the function of PreloadStart right.

Well the spellidea itself is abit to boring in my opinion. But well all work correct. Good job keep it up 10/10.
 
LOl, Thx for comment Hanky. Well, I like the spell idea, mainly because you can do a lot more stuff than just a Sun Ray Nova. You can make frost Nova, per example or something even more !
I made this spell for people to use it mainly, I know many maps will have use for this kind of spells every one likes.

This would be way easier to make in GUI, wont it?

Is it MUI? Else a MPI-GUI version would be the 1st choice for the most.
(Cause they dont know JASS)
This spell is 100% MUI and you don't need to know JASS because it is JESP.
Just follow the instructions on the SETUP section I prepared and it will offer you more freedom to change the spell than ever, even it was in GUI.
And no, imo this spell wouldn't be easier in GUI, it would be in fact harder to code, because it wouldn't probably be MUI and you wouldn't have a nice SETUP section like I do xD

Thx for your ratings, and motivation =)
Let's just wait for approval !
 
Level 16
Joined
Sep 8, 2007
Messages
994
And btw, when will you update your spell ? xD

Well, seems like I lost most things again >.< I have to ask you to do a favor for me...
I think the best way of learning is to compare. Could you take over the struct things? It is not that I forgot what it is, it is just the build-up of it xD
I can make the trigger splitting etc. I guess, not that hard ;P

@ redscores:
Why should all spells be overdone with special effects and have thousands of effects? I guess a simple and also good-looking spell is not "nothing special". ;P
 
Eh... thats all? That spell is nothing special about, just 1 special effect used.... well, I think it deserves a 5/10... Simply nothing special. A typical holy nova.
You disappoint me quite a lot. That is the usual noob thinking: if a spell is not overdone with special effects than it isnt good. Did you even look to the code ?
This was not meant to be a simply spell, it is meant to help other people creating ALL kinds of novas.

nice spell, and it helps alot to write comments what those scripts actually do


helps me alot to learn jass too, thx =)
Yae !!that is exactly why I made comments =)

And btw, when will you update your spell ? xD
Well, seems like I lost most things again >.< I have to ask you to do a favor for me...
I think the best way of learning is to compare. Could you take over the struct things? It is not that I forgot what it is, it is just the build-up of it xD
I can make the trigger splitting etc. I guess, not that hard ;P
If I do the structure I will add the timer, and to add it I must split the code. I will remake your spell once I have time, just send me your current code. I will try to teach you by the example.
 
Level 14
Joined
Jan 15, 2007
Messages
349
Well FlamePhoenix but everyone got his own taste, I normally also just like spells with more effects. Not a spam of effects but a decent use of effects. Sure you have could made the nova more interesting but who cares now. It's easy to use for most newbies. And I think that was your aim. So no need to argue.
 
Well FlamePhoenix but everyone got his own taste, I normally also just like spells with more effects. Not a spam of effects but a decent use of effects. Sure you have could made the nova more interesting but who cares now. It's easy to use for most newbies. And I think that was your aim. So no need to argue.
This was meant, from the start, to be a simple spell in deed. Every one has it's taste Hanky, Amen for that xD

Then its a quite bad nova help, because a nova is more dense... next time dont write any big spell names, just write Nova Template, and actually create NOVA's, and this spell IS disappointing, it is just mass holy light(targeted ground)...
Please read the code. All your assumptions are wrong, the code model is way far from what you describe.
 
Level 7
Joined
Jul 14, 2010
Messages
240
This really needs TimerUtils? I copy paste the script from "Chromatic TimerUtils (patch 1.23b or later):" into my map, but get 169 errors when I click Syntax Check. I got the latest versions of JNGP and Jass...
The spell is working, is the Syntax Check in JNGP saying its errors when its not? Also, the spell is laggy, and the map isnt even 1% finished
 
Last edited:
There are several things you should consider:
1 - At the time, TimerUtils (Blue flavor) was the best choice for this spell. So yes, it needs it.
2 - Unless you want to remake the spell, you should use it as "it is".
3 - The spell worked fine at the time and it was approved on wc3c for it's superior efficiency, code style and overall superior quality.
4 - If it lags now it's because of your libraries / setups / whatever. I am even pretty sure I preload some of the effects, so the problem is on your side.
5 - This is supposed to be a map for a spell demo. No one cares about the map, get over it.
6 - I am not aware of the code changes in the syntax of vJass, so I can't comment the errors. If newer versions of JNGP are not backwards compatible, that's not really my problem, it's yours (lol).

Thanks for your comment.
 
Top