• 🏆 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] Way to increase range with trigger??

Status
Not open for further replies.
Level 3
Joined
Nov 1, 2013
Messages
26
  • Increase range skill
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Storm Bolt bb
    • Actions
      • Unit - Create 1 Barracks for (Owner of (Learning Hero)) at (Position of (Learning Hero)) facing (Position of (Learning Hero))
      • Unit - Order (Last created unit) to research Long Rifles
      • Wait 5.00 game-time seconds
      • Unit - Remove (Last created unit) from the game
it work but now it show some problem

Problem : how to mute an announcer sound after that research complete?
: how to hide text when research complete?
 
Level 18
Joined
May 11, 2012
Messages
2,103
  • Increase range skill
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Learned Hero Skill) Equal to Storm Bolt bb
    • Actions
      • Unit - Create 1 Barracks for (Owner of (Learning Hero)) at (Position of (Learning Hero)) facing (Position of (Learning Hero))
      • Unit - Order (Last created unit) to research Long Rifles
      • Wait 5.00 game-time seconds
      • Unit - Remove (Last created unit) from the game
it work but now it show some problem

Problem : how to mute an announcer sound after that research complete?
: how to hide text when research complete?

This is not MUI, meaning that it will bug up when 2 units cast it inbetween period of 5 seconds.

  • Your trigger
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to "Your Ability"
    • Actions
      • Set Count = (Count + 1)
      • Unit - Create 1 Footman for Player 1 (Red) at ("Your Location")) facing "Learning Unit" degrees
      • Set "Your Unit"[Count] = (Last created unit)
      • Unit - Order "Your Unit"[Count] to research Your Research
      • Wait 5.00 seconds
      • Set Write = (Write + 1)
      • Unit - Remove "Your Unit"[Write] from the game
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Write Equal to Count
        • Then - Actions
          • Set Count = 0
          • Set Write = 0
        • Else - Actions

You can do that in Gameplay Constants (or Gameplay Interface) I think.
Just search through it and you should find it.

Your action leaks position.
 
Status
Not open for further replies.
Top