Warcraft III resources & community, 2003–2006 · archived

Power Bash 2

not rated
Submitted by Nantuko_HuskJASS Enhanced266 downloads27 KB
Screenshot
Screenshot
The hero transforms itself into a ball and moves with high speed to bash it`s target.



Reworked.



Spell follows the JESP standard.
File Name
PowerBash.w3x
Author
Nantuko_Husk
Download

Comments

9
The main function and the condition has to start with the codename (in this case "PBash") aswell. Anyway, it's good to see the other things got fixed.
ok, i reworked Power Bash,here what's changed

-Fixed a leak somewhere.
-Now if the target is on a small (changeable on configurations) distance shows an error message (also changeable)
-I added 2 rifles that move continiously to see what happens when the target changes direction and so (nothing,it works fine)
-I am sure i changed something else but cant remember now :?

Ok.

here what i did too,

-Added SetUnitExploded
-Hero is added back to player's selection.
-I think it is JESP now.
Sorry for the group, didn't see it.

SetUnitExploded makes the unit skip decaying, meaning that the game will remove it faster, and thereby use less space.
ok thanks blade


- Use a call SetUnitExploded(whichUnit, true) on the dummy before killing it.


what would that do?


- This spell doesn't follow the JESP standard as you say. Why? The spell's code (in this case PBash_) has to be the exact name of the trigger and all functions have to start with the code so DoPowerBash would for example be PBash_DoBash. As it is now you can't use it to create a new instance of the spell.


how funny,only for this!


- When you show the caster again, also add him to the player's selection.


i know my bad,but i did forget it.

[quote
BTW, in your GroupGetWeakestUnit function why don't you destroy the group?
[/quote]

no,i destroy that



 call DestroyGroup(g2)  
set g2 = null  
set temp = null  
set g = null    

return weakest
endfunction


http://www.wc3sear.ch/index.php?p=JASS&ID=300&sid=5739791e0f35b87ea7bac67f366c8d26
see it by yourself.
Pretty good, but..

- Use a call SetUnitExploded(whichUnit, true) on the dummy before killing it.
- This spell doesn't follow the JESP standard as you say. Why? The spell's code (in this case PBash_) has to be the exact name of the trigger and all functions have to start with the code so DoPowerBash would for example be PBash_DoBash. As it is now you can't use it to create a new instance of the spell.
- When you show the caster again, also add him to the player's selection.

BTW, in your GroupGetWeakestUnit function why don't you destroy the group?
well. i had made such spell,that knockback enemies in it's way,but then i changed and made it burn because from the 5 spells i had made 3 were knockback!

This doesnt knockback other enemies because you already target one,if it targetet a location then maybe,but it's purpose is to be a shapeshift like spell.
It just knockback the target? why don't it knockback all enemies that stand in the panda's way? Just a suggestion. Anyway, nice spell.
well i decided to follow this since gives a chance to those non jassers understand a little bit more what happens out there.

and as you might have noticed i didnt give so much info on previous spells.
so if a guy didnt knew jass,or basic knowledge of rawcodes,paths in jass etc,couldn't undertand a thing.

anyway i wouldn't call this standard,but a help to the GUI.
I can't believe so much guys are following the JESP standard