• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Lightning Bolt by Flame_Phoenix

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
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

Keywords:
Pyrite, PurplePoot, Flame_Phoenix, storm, bolt, campaign, stun, lightning
Contents

Lightning Bolt by Flame_Phoenix (Map)

Reviews
15:48, 11th Jun 2015 BPower: The spell is no longer meeting the minimum standart of spell submissions on THW. If you wish your spell to be re-approved, change what I pointed out in my comment PurplePoot: It's nice (but the test map is a...

Moderator

M

Moderator

15:48, 11th Jun 2015
BPower:
The spell is no longer meeting the minimum standart of spell submissions
on THW.

If you wish your spell to be re-approved, change what I pointed
out in my comment

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

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
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.
 
=) 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 =)
 
Level 4
Joined
Jul 2, 2008
Messages
50
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. :)
 
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 =)
 
Level 19
Joined
Mar 18, 2012
Messages
1,716
Re-moderated by BPower

AbilityId, DummyId, etc ... everyrthing which may change after importing the spell into a new map should be configurable via constant function call.

i.e.
constant function LB_Ability takes nothing returns integer

TriggerSleepAction can be very inaccurate and should be avoided in public resources.
Especially when dealing with timed buffs like stun or slow.

There is a constant representing the value of pi with is bj_PI and should be used instead of 3.14....

You do not apply timed life to the dummy unit in all cases, but always create one.
That's a major mistake!

Hardcoded spells are very hard to setup, that's why we always support a configuration block.

I will set this spell back to need fix ( after 7 years beeing approved ) oO
 
Top