• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Ability cast give gold to player

Status
Not open for further replies.
Level 20
Joined
Feb 27, 2019
Messages
594
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