• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

1.00

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
My first spell in Jass, please sent me your comments

Keywords:
Regeneration, Jass, JASS, tmg
Contents

Regeneration JASS (Map)

Reviews
18:58, 4th Oct 2009 TriggerHappy187: Lacks description, proper name ect. The coding is also very poor. And the resource submitter has not replied at all.

Moderator

M

Moderator

18:58, 4th Oct 2009
TriggerHappy187:

Lacks description, proper name ect.

The coding is also very poor.

And the resource submitter has not replied at all.
 
Level 12
Joined
Dec 10, 2008
Messages
850
So, whats this do? I cant see if it acually works, since the dummy ability does nothing. You also use a TSA in your loop, along with a global CreateTrigger(). You also have 2 exit whens, which might be the source of your problem. You also use SetUnitLifeBJ. Inline that too.

As for the spell in-game, I cant test it to see if it does anything, either with an improper ID or the 2 exitwhens are causing problems. So, with that, 1/5 until you make it atleast castable.
 
As the others said it lacks a description and a name.

You're using many BJ's that are useless I would suggest download JNGP which contains TESH for syntax highlighing. It also contains a function list that can help you remove BJ's.

It's also using TSA's which are inaccurate among other things like still running while a player is lagging.

You need to make all of the raw codes configurable because most likely in different maps the raw id will be different.

It can be achieved like this;

JASS:
constant function SPELL_RAW_ID takes nothing returns integer
    return 'A000'
endfunction

// now inside your condition function

function Trig_Regeneration_Conditions takes nothing returns boolean
    return GetSpellAbilityId() == SPELL_RAW_ID()
endfunction

Do that for all of your raw codes and also for the spells effect ("Abilities\\Spells\\Human\\Heal\\HealTarget.mdl")

Also, your spell isn't even functional. I cast it and nothing happens.
 
Top