 |   |  |  |
|
The Hive Workshop Spells:
Lightning Bolt by Flame_Phoenix
|
|
|
| Image |
|
| Details |
|
Click, copy and send to people.
| Uploaded: | 16:44, 25th Jan 2008 |
| Last Updated: | 10:44, 31st May 2008 |
| Keywords: | Pyrite, PurplePoot, Flame_Phoenix, storm, bolt, campaign, stun, lightning |
| Type: | Target Object |
| Category: | JASS, JESP |
The original Spell from Pyritie's campaign brought to you by Flame_Phoenix. This spell is authorized by the leader Pyritie, CREDIT if you use it.
Credits:
Flame_Phoenix (created and fully made the original spell)
PurplePoot (for the optimization)
Pyritie (for being the leader of the project and allowing me to post the spell)
Type: JASS spell
Level: very easy
Lightning Bolt - A powerful bolt falls from the sky damaging, stunning and slowing the enemy unit. When casting the spell there are also a few chances:
1 - a chance to make double damage
2 - to miss the target
3 - to instantly kill the target.
These chances depend on the level.
This spell doesn't need anything special, the custom WE is Ok.
The map has a mini-tutorial that explains how to implement the spell.
Read the README file as it will help you.
All lines are commented, there is no problem if you are a beginner at JASS or if you never saw a single code of line.
History:
Version 1.0
- Initial release
Version 1.1
- improved the description of the spell
Version 1.2
- removed the non-optimized version, which was confusing
- improved the comments on the code
|
Rating by users: 0.00 (0 votes)
Rate this spell:
|
| Moderator Review |
|
Not Rated
PurplePoot: It's nice (but the test map is a little overdone :P), but is there really any reason to have the non-optimized one? It has bugs because it rechecks the chances several times (so the chance is actually much less than it says!), and it's much less clean/efficient.
|
|
This spell is approved and works properly.
Click here to download Lighting Bolt by Flame_Phoenix (SS map).w3x (47.76 KB, 1239 Downloads)
|
01-25-2008, 04:48 PM
|
#2 (permalink)
|
Map Maker
Join Date: May 2007
Posts: 1,612
|
Ok guys, here is the spell. I read the rules and I think it is Ok. No leaks, MUI , etc...
What do I have to do to see this spell approved ?
When will it be tested by the Mods ?
Btw, you guys are free to leave comments here, I would like to know what people think of the spell. Although it won't be changed (It will remain like the original from the campaign) it is always nice to read some cool comments.
Still, the JASS knowledge you need will be so low, that I believe everyone will be able to change it if needed.
|
|
|
02-02-2008, 11:03 PM
|
#3 (permalink)
|
Map Maker
Join Date: May 2007
Posts: 1,612
|
Well, first of all, thx for approving the spell for the campaign =). I hope people like it and download it together with the campaign.
But as I say in the mini.tutorial: "The non-optimized code is for those who want to change the spell, but understand very few of JASS"
In other words, your optimization is perfect except but one thing: requires JASS knowledges that many people don't have.
Well, what can I say ?? it's your fault that you are a professional in jASS, not mine ... LOL =P
|
|
|
02-02-2008, 11:08 PM
|
#4 (permalink)
|
Model Moderator
Boingy boingy
Join Date: Nov 2006
Posts: 7,129
|
Awesome that you *finally* got this finished.
|
|
|
02-02-2008, 11:17 PM
|
#5 (permalink)
|
Map Maker
Join Date: May 2007
Posts: 1,612
|
LOL, good maps take time !
I did my best to create this one =)
I hope you like to kill the dummy units, they are kinda fun =P
EDIT
Hey today I was so happy, that I made a print screen of THW main page and saved it !! lol !! My moment of glory shall be remembered =P
|
|
|
02-06-2008, 05:31 AM
|
#6 (permalink)
|
iRawr
Join Date: Dec 2005
Posts: 8,881
|
It's still there, by the way.
In other news, you should at least fix the problem of the chances re-checking several times (in your longhand version) - save the three results in boolean variables.
|
|
|
02-09-2008, 11:37 PM
|
#7 (permalink)
|
Map Maker
Join Date: May 2007
Posts: 1,612
|
Well, if I do so, the "bug" will still remain there and the spell will get more complicated.
Also, that can not be considered a bug as it does not causes problems to the spell - the spells works just fine with it.
As I already said, the goal of my code is not performance (as it is in yours) but to be very simple and intuitive.
Therefore I shall not change it, because it is not a real threat to anything.
|
|
|
02-29-2008, 04:59 PM
|
#8 (permalink)
|
Spell and Map Moderator
The Helpful Personage
Join Date: Jan 2005
Posts: 4,373
|
Can easilly be optimized further by re ordering condtions to prevent multi check (in opt version as other is pointless). You could also remove the need for a miss local which would up efficency greatly by re-ordering the if statements.
Overall it is an ok spell, seems not to efficent thou.
|
|
|
03-01-2008, 04:36 PM
|
#9 (permalink)
|
Need to buy myself a comp
Join Date: Aug 2007
Posts: 1,049
|
Heh, i can only imagine how simple this spell must be xD
|
|
|
03-02-2008, 12:15 PM
|
#10 (permalink)
|
Map Maker
Join Date: May 2007
Posts: 1,612
|
=) good to see you found your way into this spell DSG.
Well, as I already explained, the point of my version is not efficiency, but to be very and really very easy to understand and modify/use. It was specially made for people who don't know JASS, or have trouble understanding it.
The second version of the spell, the optimization made by PurplePoot, has the objective of being super efficient.
I will not make any changes in my code, unless needed.
If you are a pro with JASS and look for efficiency, then you can use the opt PurplePoot made. However, for begginers I advice my code, because i doubt anyone could make a code more simple than mine.
Now the question is, why two versions ??
Well, simple, the more people use it, the more will know about Pyritie's campaign, and that's the main goal here. Make people know this campaign exists and give them the incentive to play it.
Btw, thx for the comment Herman =)
|
|
|
05-31-2008, 10:30 AM
|
#11 (permalink)
|
Map Maker
Join Date: May 2007
Posts: 1,612
|
Well, I've finally updated this resource, and decided to remove the not optimizated version.
The optimized code is commented enough for people to understand what is going on.
I hope you people like the spell, and download the campaign.
Cya all, Flame_Phoenix
|
|
|
07-22-2008, 02:44 AM
|
#12 (permalink)
|
User
Join Date: Jul 2008
Posts: 36
|
i say this is pretty good :), but the third effect - 3 - to instantly kill the target.
<-- aint this a little bit to strong? what if people want to add this spell into a hero arena game? One hit killing a hero is too rig, aint it? You should think of a different effect other than this one. :)
|
|
|
08-12-2008, 07:43 PM
|
#13 (permalink)
|
Map Maker
Join Date: May 2007
Posts: 1,612
|
Quote:
i say this is pretty good :), but the third effect - 3 - to instantly kill the target.
<-- aint this a little bit to strong? what if people want to add this spell into a hero arena game? One hit killing a hero is too rig, aint it? You should think of a different effect other than this one. :)
|
No it is not too strong. First because it is balanced with the "miss chance". Second, because if you don't like it, you can just set it's chance to zero, and it will never occur. That's is why the spell is JESP =)
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|  |  |  |  |   |  |
|