1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The Lich King demands your service! We've reached the 19th edition of the Icon Contest. Come along and make some chilling servants for the one true king.
    Dismiss Notice
  4. The 4th SFX Contest has started. Be sure to participate and have a fun factor in it.
    Dismiss Notice
  5. The poll for the 21st Terraining Contest is LIVE. Be sure to check out the entries and vote for one.
    Dismiss Notice
  6. The results are out! Check them out.
    Dismiss Notice
  7. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  8. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  9. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Help me with a simple triggered heal please

Discussion in 'World Editor Help Zone' started by Paavo, Jul 10, 2010.

  1. Paavo

    Paavo

    Joined:
    Oct 30, 2008
    Messages:
    4
    Resources:
    0
    Resources:
    0
    I am making an rpg map, and to make abilities more interesting i wanted to add some kind of attribute scaling to them. For damaging spells it has been quite a piece of cake, but healing seems to be a bit harder to make.

    So, my spell here is almost like melee Paladin's 'Holy Light', but with the intelligence scaling. It aint just working.

    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Divine Touch
    • Actions
      • Set da = (0.50 x (Real((Intelligence of (Triggering unit) (Include bonuses)))))
      • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (25 + da))


    I just noticed that I should post this to Triggers & Scripts forum. Could somebody move this?
     
  2. darkalex13

    darkalex13

    Joined:
    Feb 20, 2008
    Messages:
    54
    Resources:
    0
    Resources:
    0
    I'm not an adept of using triggering unit(though I've heard it's better).
    Have you tried... using casting unit instead of triggering?
    • Set da = (0.50 x (Real((Intelligence of (Casting Unit)(Include bonuses)))))
     
  3. supertoinkz

    supertoinkz

    Joined:
    Dec 29, 2008
    Messages:
    2,813
    Resources:
    25
    Models:
    15
    Icons:
    7
    Maps:
    1
    Tutorials:
    2
    Resources:
    25
    /@ Paavo: I did the same, it works for me. What was your problem?

    /@ darkalex13: Always use Triggering unit ("Target unit of ability being cast" and "Target unit of order" are exceptions to this). It is waaaaaaaaaaaaaayy better.
     
  4. Garfield1337

    Garfield1337

    Joined:
    Jul 6, 2009
    Messages:
    1,806
    Resources:
    4
    Maps:
    1
    Spells:
    3
    Resources:
    4
    Also there is no need to use variable,this would do,
    • Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) + (25 + (0.50 x (Real((Intelligence of (Triggering unit) (Include bonuses)))))))

    It should work,unless the spell you're using as base spell is an AOE spell,in which case 'Target unit of ability being cast' wouldn't work.
     
  5. Paavo

    Paavo

    Joined:
    Oct 30, 2008
    Messages:
    4
    Resources:
    0
    Resources:
    0
    I do not know. That spell ain't still working. What base spell did you use, by the way?
     
  6. supertoinkz

    supertoinkz

    Joined:
    Dec 29, 2008
    Messages:
    2,813
    Resources:
    25
    Models:
    15
    Icons:
    7
    Maps:
    1
    Tutorials:
    2
    Resources:
    25
    I used Channel
     
  7. VestriDeus

    VestriDeus

    Joined:
    May 31, 2009
    Messages:
    120
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Those do work, but it is a pain in the ass to fix if you make a mistake, having to click through so many boxes xD
     
  8. Garfield1337

    Garfield1337

    Joined:
    Jul 6, 2009
    Messages:
    1,806
    Resources:
    4
    Maps:
    1
    Spells:
    3
    Resources:
    4
    That's one of advantages of JASS,less clicking.
     
  9. Paavo

    Paavo

    Joined:
    Oct 30, 2008
    Messages:
    4
    Resources:
    0
    Resources:
    0
    So, I am using a hero, who has the 'spellbook' ability and i have that healin there. The heal is also an unit ability, not a hero ability. Do those things propably affect the spell?

    Also, I do not know if you have time for it, but if you could make me a testmap with that spell working I would be very grateful. Since I cannot make it work.
     
  10. Maker

    Maker

    Joined:
    Mar 6, 2006
    Messages:
    9,181
    Resources:
    17
    Maps:
    2
    Spells:
    14
    Tutorials:
    1
    Resources:
    17
    Here you go.
     

    Attached Files: