How do I trigger Forked lightning to attack one target?

LoveRPG

Member
Reaction score
6
I want forked lightning to do what the trigger should do:S Though it is not working, I might have done something wrong with the ability forked lightning, not sure:S Trigger:
Trigger:
  • Event
    • Unit - A unit begins casting an ability
    • Condition
    • Level of ability being cast greater than 0
    • Ability being cast equal to (Unholy Lightning
    • Action
    • Lightning - Create a Lightning effect from trigger unit to (unit of (target of ability being cast))
    • Unit - Cause Triggering unit to damage (Unit of (target of ability being cast)), dealing (0.3 x (real(Intelligence of (triggering unit))) damage of attack type equal to (Spells) and damage type equal to (Magic)

Help me out guys>.< All answers are highly appreciated:)
 

W!†A_cRaft

Ultra Cool Member
Reaction score
28
1st use starts the effect of an ability
2nd i don't see how can someone cast an ability if his level is not greater than 0, condition is needless
3rd you should remove the lightning effect afterwards
 

Devrak

New Member
Reaction score
17
If you want Forked Lightning to only hit one target you can just change the data field in forked lightning named "Data - Number of targets hit" to 1.
 

LoveRPG

Member
Reaction score
6
I know that I can do it in the object editor... but there are 100 levels and I will not do every single level. Second, I will remove the condition also remove the Light effect, If it matters the Light effect is Drain mana:S Who is triggering unit? My floating text says zero so I guess it aint working correctly:S

Sorry, had to (Attacking unit)
 

W!†A_cRaft

Ultra Cool Member
Reaction score
28
you can easily do all 100 levels (at least for the numeber of targets but as it seems you want dmg to be based on the intellect, i FULLY support you, why should attackers have an advantage of getting dmg from gear while casters dont....

In any case you can do it the way i told you, should work
 

LoveRPG

Member
Reaction score
6
It is working kind of good:S Though I got a problem:S

I am making a floating text with this function:

Trigger:
  • Floating text - Create floating text reading (String(Intelligence of(Casting unit))(Include Bonuses) x (Integer(0.7)) + (!!!!) at (Position of (Target unit of ability being cast))


Though it only displays: 0!!!!
Also tried: Int of Triggering unit and Int of Attacking unit. Still displaying zero:O

Autofill? Does it set the level thing to 100 damage only or does it increase:S Since otherwise it is quite useless:S And I believe that Intelligence is the perfect thing to create spell damage:)
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Your problem is in the x(Integer(0.7)). Decimals are always rounded down for integers in WC3, so you are multiplying by 0. Do the multiplication within a Convert Real to Integer command.
 

LoveRPG

Member
Reaction score
6
omg... why did I not figure that out... I know the difference of integers and reals.....
Mate I have set it to: Convert real to integer, that was the thing it was set from all the time, it still says: (integer(0.7)) messed up, and it still displays 0, No wait another problem, just changed the (integer to string) to (real to string) but then I can't retrieve the int attribute. It was possible to convert real to string, then integer to real:) So that is solved:S Now how to make it attack multiple targets, was thinking maybe attack 0.2 x targets of the ability level:S
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top