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

[Spell] Anyway to make this Multi-Instance? (Modifying WC3 spell data via trigger)

Status
Not open for further replies.
Level 5
Joined
Feb 13, 2019
Messages
128
So I stumbled upon a neat little trick but I feel like since this is straight up changing the abilities damage to the unit's INT amount if two players were to cast this at the same time we could run into an issue.

  • Scale Firebolt test
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Firebolt
    • Actions
      • Ability - Set Ability: (Unit: (Triggering unit)'s Ability with Ability Code: Firebolt )'s Real Level Field: Damage ('Htb1') of Level: 0 to (5.00 + ((Real((Unit: (Triggering unit)'s Integer Field: Intelligence ('uinc')))) + 0.00))
Is there a work around or should I just say fuckit all and just use/make custom spells?
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
Since this is an instant effect (there is no waits or timers in the trigger) it won't be a problem. You might want to change event to "starts effect of an ability" to prevent cast/cancel abuse.

If you would like to deal damage at the exact moment firebolt hits, thats a different story.
 
Last edited:
Level 39
Joined
Feb 27, 2007
Messages
5,010
There's no workaround needed. That ability field change is only for the specific instance of that ability on that specific unit. It doesn't affect other instances of the spell on other units.
You might want to change event to "starts effect of an ability" to prevent cast/cancel abuse.
There's nothing to abuse here. It's just setting a field that would ultimately be set when the spell is cast anyway so spamming cancel doesn't actually do anything.
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
Sorry, my mind just didn't register those new object editor natives exist. I thought trigger was dealing damage.
 
Status
Not open for further replies.
Top