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

Ability cast give gold to player

Status
Not open for further replies.
Level 19
Joined
Feb 27, 2019
Messages
590
Im getting fucked in the ass by the world editor and Im scared.

Why doesnt my trigger work?

Event: A unit starts the effect of an ability

Actions: Set Real_Calculations = (Real(Mana cost of (Ability being cast), Level 1)))
Set Real_Calculations = Real_Calcuations/12
Player - Add (Integer(Real_Calculations) to (Owner of (Triggering unit)) Current gold

I can SWEAR this worked before the reforged shit started. Any ideas? If I just put: "Player - add 50 to (Owner of (Triggering unit)) Current gold" it works fine.

EDIT: Okay. Spells have levels. When you want a spell with no levels you basically choose level 1. So for some reason the editor thinks that my level 1 spell is level 0. Nice work Blizzard. Really easy to understand as usal. GG WP. Level 1 is level 0. OFOCURSE. Why not? Why did I even think otherwise. I am simply too stupid.
 
Last edited:
Status
Not open for further replies.
Top