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

[Trigger] Help /w Casting Point for Blizzard

Status
Not open for further replies.
Level 3
Joined
Mar 30, 2007
Messages
26
  • Blizzard
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to PointCast
    • Actions
      • Set blizzdummypoint[(Player number of (Owner of (Triggering unit)))] = (Position of (Casting unit))
      • Set blizzcastpoint[(Player number of (Owner of (Triggering unit)))] = (Target point of ability being cast)
      • Unit - Create 1 Blizzard [Casting Dummy] for (Owner of (Triggering unit)) at blizzdummypoint[(Player number of (Owner of (Triggering unit)))] facing Default building facing degrees
      • Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
      • Unit - Set level of Blizzard [Casting Dummy] for (Last created unit) to (Level of Point Cast for (Triggering unit))
      • Unit - Order (Last created unit) to Human Archmage - Blizzard blizzcastpoint[(Player number of (Owner of (Triggering unit)))]
      • Custom script: call RemoveLocation(udg_blizzdummypoint[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
      • Custom script: call RemoveLocation(udg_blizzcastpoint[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
The object of this trigger is when someone casts Point Cast, the point in which it is cast is saved. A dummy then spawns to cast Blizzard (which lasts 5 seconds) at that point. My problem is when the point leaks are removed at the end, the dummy stops casting Blizzard abruptly after the first wave because blizzcastpoint gets removed. How do I make it so that Blizzard is completely channeled for 5 seconds without adding a Wait timer? Point Cast has to be able to be cast again while the dummy caster is still channeling Blizzard.

Thanks.
 
Level 5
Joined
Dec 18, 2007
Messages
205
before destroying the location you could just wait 5 seconds? :D

it isn't then as MPI/MUI as you want, but it would solve th eproblem i think.
use locals to make it MUI then.

greetz
 
Level 7
Joined
Jul 20, 2008
Messages
377
You could try this:

  • Custom script: call IssuePointOrder(bj_lastCreatedUnit, "blizzard", GetLocationX(udg_blizzcastpoint[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))+1]), GetLocationY(udg_blizzcastpoint[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))+1]))
in place of:

  • Unit - Order (Last created unit) to Human Archmage - Blizzard blizzcastpoint[(Player number of (Owner of (Triggering unit)))]
 
Status
Not open for further replies.
Top