• 🏆 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!

Combinding a Real with an integer Variable

Status
Not open for further replies.
Level 11
Joined
Sep 9, 2010
Messages
368
Greetings. I've made a spell, which damage will be 100 + the casting hero's strength.
My first plan was that the damage part of the trigger should look like this:
  • Actions
    • Set Slam_Strenght[ID_CastPlayerNumber] = (Strength of (Casting unit) (Exclude bonuses))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Level of (Ability being cast) for (Triggering unit)) Equal to 1
      • Then - Actions
        • Set Slam_Damage[ID_CastPlayerNumber] = (100.00 + Slam_Strenght[ID_CastPlayerNumber])
      • Else - Actions
But I discovered that I can't use arithmetic with a real and an integer variable to carculate the damage.

Anyone might know how to make this trigger work?


Thanks in advance.
 
Status
Not open for further replies.
Top