Damage = 3x str >>how?

C

C[a]sKet_90

Guest
Hi, just wondering how to get spells like this, (similar to the ones in Defi4nc3, and the backstab ability in Dota. A tutorial or trigger code would really help me, thanks
 
unit - damage unit for (convert integer to real) (hero - attribute - str of (triggering unit))
something like that..
if you want it x3 then do a arithmetic str of hero x 3
 
Xd

Spells
Code:
Events - A unit starts the effects of ability (I think thats it)
Conditions - Ability being cast equal to "Dmg3x"
Actions - Set Str3x = Integer(Hero Strength of casting unit x 3)
   - Set life of target unit of ability being cast to life of target unit of ability being cast - Str3x

Btw the Str3x is an integer, and when you click it, up the top, use the Integer to Real conversion, to get Hero STR
 
Or if you cop out the easy way go to advanced --> game constants, just set 1 pt of strength gives 3 dmg, and make each hero strength-based if you do that xD

edit: didn't see that you were talking about SPELLS

ahaha yeah, follow what those guys said :p
 
Making a spell

HI, i prolly already posted this somewhere, but i cant find it, so ill just ask again - How do i make spells like "Damage = 3x heros strength" ? A free trigger code, or some help would help, thanks
 
Pawnable said:
It has to do with a Real value.
Actually, hero attributes are integers, not reals.

@casket
If you already posted a topic on something, then bump that instead of making a new one. If you don't know where it is, use the Search tool. Thank you :)
 
corvusHaunt said:
Actually, hero attributes are integers, not reals.

@casket
If you already posted a topic on something, then bump that instead of making a new one. If you don't know where it is, use the Search tool. Thank you :)

i used search tool couldnt find still, but thanks for previous trigger threads
 
!

Edit: i have another problem
Code:
Unit - Set life of (Target unit of ability being cast) to (Life of (Target unit of ability being cast))

thats what i have, i dont know how to add the -strx3 to the end of it >>i tested, spell no working
 
i got a lazy way for you
but it doesnt work for multiplayer maps...
Just change the gameplay constants to 3 damage per primary attribute :D :D
and walaa ur hero deals 3x str if its a str hero :D
 
that wont do at all >> im trying to make a spell
(and its multiplayer map)
 
casket you need to make the life equal to an arethmatic operation of life - X
 
i cant do the - x because it says no varibales of this type defined >< i have str3 set to an interger

Please help, all comments appreciated
 
Untitled Trigger 001
Events
Unit - A unit Is attacked
Conditions
Actions
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing ((Real((Strength of (Attacking unit) (Include bonuses)))) x 3.00) damage of attack type Hero and damage type Normal
 
im trying to make a spell tho, not damage ( or are u showing me how to make a spell indirectly? i cant tell)
 
lol

Spell based of attribute

Code:
Event - A unit starts the effects of an ability
Conditiond Ability Being cast equal to 3x strength
Actions - Set Str3x = strength of casting unit x 3
  - Set life of target unit of ability being cast to life of target unit of ability being cast - Str3x
Oh and btw, when you find the - life part, to get Str3x you must use real to integer conversion, its listed at the top...
Easy, hope that helps
 
HEH i ended up finding out the whole real conversion thing (on my own ;p) >> thanks tho >> so tired, making me bad at basic triggers right now. Thanks for help tho, i wish i had actually thought about what i was reading (i must have read ur first comment 8 times and not noticed the importance of the real conversion thing** : / )
 
lol

Yw, and Sorry I would of pointed it out earlier, but I was quite busy...

For future reference, you can also convert to strings XD
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Love you man so glad you are still here
  • Varine Varine:
    I live a very boring life otherwise.
  • Varine Varine:
    23AndMe is apparently looking to sell the company. I wonder what that means for all the genetic data they have. I don't have an account for The Atlantic so I can't read the rest of their news, but presumably whoever would buy the company would then have access to that, and I don't think there are any HIPPA or equivalent protections on it
  • Varine Varine:
    I'd bet it would be a treasure trove for pharmaceutical manufacturing and genetic research. I know they sold some genetic information a few years ago but they did that without identifying information attached
  • Varine Varine:
    It's be like a really boring biopunk dystopia. My TV started giving me ads when I turn it on recently (which is real fucking cool), and now I'm imagining it just being like "bioinformation says you have cancer. Get a prescription for Avastin today" and then you get connected to someone that is technically a doctor but really mostly just selling drugs to people right on your TV since they have cameras now to give you a prescription.
  • Varine Varine:
    So, buy stocks in whoever buys them would be my bet
  • Varine Varine:
    I wish I had time to keep up on things like this. My investment portfolio would probably look a bit better.
  • N Natalie the gay boss:
    So I am starting a thread.pls search how to make the teacher mad.
  • Ghan Ghan:
    Hive is 20 years old today.
  • The Helper The Helper:
    No way - holy shiznit!
  • The Helper The Helper:
    love that it is still going strong too!
  • The Helper The Helper:
    OMG I cannot handle this Natalie person I hate to do it but ban hammer activated
    +1
  • The Helper The Helper:
    I would rather not have anyone ever post then those kinds of posts
  • Varine Varine:
    lol what were they doing?
  • Varine Varine:
    3D printer is working again. Had to get a bunch of parts, cuz I forgot I kind of modded it and then never finished modding it. Turns out thermistors aren't all the same
  • Varine Varine:
    And as a result I may have gotten the hot end way too hot and caused a small fire
  • Varine Varine:
    Anyway I have a new not end and this one has the right things
  • Varine Varine:
    Although I get these really weird artifacts, I think its from my bed not being clean. Not really sure, I've seen this before though and I think cleaning the build plate fixed it. Eh, I'll figure it out, worst case scenario it rips the rest of the model off and it catches fire again
  • Varine Varine:
    I'm now realizing I could have cut out like 99% of this print and it would have been fine cuz I just need to see if a frame will fit over an LCD
  • Varine Varine:
    Oh well
  • Varine Varine:
    I'm not an engineer
  • Varine Varine:
    Although this filament is kind of expensive, I should probably be a bit more wary of that.
  • The Helper The Helper:
    I love the whole concept of 3D Printers and am very happy you have one so I can hear about them
  • The Helper The Helper:

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top