• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Desyncs using visibility triggers and attacking over a wall

Status
Not open for further replies.
Level 5
Joined
Aug 19, 2015
Messages
68
Hi,
I think this problem was longer persistent but has gotten worse,
probably because I increased acquisition- and attack-range for the towers (to larger than visibility at night, but this also happens at day).

Background:
A specific unit comes into a range of my towers.
The towers have a default slow aura and a larger one is added when the distance is small enough.
Then both teams gain visibility over that area and the caught unit gets the chance to attack the tower.

I really dont understand what went wrong so i hope you guys know whats going on.

The category for the vamp towers is called "vamp stun traps".
In "6337922", the desync happened at ~12:41, in "last replay" at ~16:34
(I only see the first archer projectile hitting the tower - or the first tower projectile hitting a just trained meelee hero ... but at least the last mentioned event triggers absolutely nothing)
https://www.dropbox.com/s/jpnsgy69mq95caz/replays+map.zip?dl=0

Thank you very much.
 
Level 5
Joined
Aug 19, 2015
Messages
68
Main triggers for the tower:
  • trap part 1 init triggers
    • Events
      • Unit - A unit leaves Region 003 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Builder
      • (Triggering unit) Not equal to builders[(Player number of (Triggering player))]
    • Actions
      • Trigger - Add to trap part 2 no build <gen> the event (Unit - (Triggering unit)'s mana becomes Less than 1.00)
      • Trigger - Add to trap part 3 build <gen> the event (Unit - (Triggering unit)'s mana becomes Greater than 1.00)
      • Trigger - Add to trap part 5 main <gen> the event (Unit - A unit comes within 744.00 of (Triggering unit))
      • Set builders[(Player number of (Triggering player))] = (Triggering unit)
  • trap part 5 main
    • Events
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Vampire Tower
    • Actions
      • Game - Display to (All enemies of (Owner of (Triggering unit))) the text: |cfffff222A builder...
      • Game - Display to (All enemies of (Owner of (Triggering unit))) the text: |cfff22ff2A builder...
      • Game - Display to (All enemies of (Owner of (Triggering unit))) the text: |cfff2222fA builder...
      • Cinematic - Ping minimap for (All players) at (Position of (Triggering unit)) for 12.00 seconds
      • Unit - Add Endurance aura expander (tower) 760 to (Triggering unit)
      • Unit - Set the custom value of (Triggering unit) to currentvm
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across (Region centered at (Position of (Triggering unit)) with size (1500.00, 1500.00))
          • Set visibilitymodifiers[((currentvm x 12) + (Player number of (Picked player)))] = (Last created visibility modifier)
      • Set currentvm = (currentvm + 1)
      • Trigger - Add to trap vis remover <gen> the event (Unit - (Triggering unit) Dies)
  • trap vis remover
    • Events
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Visibility - Destroy visibilitymodifiers[(((Custom value of (Triggering unit)) x 12) + (Player number of (Picked player)))]
When the tower is attacked, this is also executed:
(The first crash, when the archer attacked the tower, it was)
  • onhit vamptowers
    • Events
    • Conditions
      • (Unit-type of (Damage source)) Equal to Heiress
    • Actions
      • Player - Add (Integer((150.00 + ((Damage taken) / 17.00)))) to (Owner of (Damage source)) Current lumber
      • Hero - Add (Integer((20.00 + ((Damage taken) / 20.00)))) experience to (Damage source), Show level-up graphics
Maybe this is also triggered but definitively not executed at any point:
  • manaburn reverb
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Mana Burn [minion]
    • Actions
      • Unit - Add brilliance debuff to (Target unit of ability being cast)
      • Unit - Remove brilliance debuff from (Target unit of ability being cast)
This probably has nothing to do with the problem, it's just making builders without mana unable to build anything.

  • trap part 2 no build
    • Events
    • Conditions
    • Actions
      • Player - Make Lumber Base 1 Unavailable for training/construction by (Triggering player)
      • Player - Make Wall 1 Unavailable for training/construction by (Triggering player)
      • Player - Make Arrow Tower 1 Unavailable for training/construction by (Triggering player)
      • Player - Make Range Tower 1 Unavailable for training/construction by (Triggering player)
      • Player - Make Speed Tower 1 Unavailable for training/construction by (Triggering player)
      • Player - Make Zero Tower Unavailable for training/construction by (Triggering player)
      • Player - Make Tech Center 1 Unavailable for training/construction by (Triggering player)
      • Player - Make Altar Unavailable for training/construction by (Triggering player)
      • Player - Make Upgrade Center 1 Unavailable for training/construction by (Triggering player)
      • Player - Make Slayer Shop Unavailable for training/construction by (Triggering player)
  • trap part 3 build
    • Events
    • Conditions
    • Actions
      • Player - Make Lumber Base 1 Available for training/construction by (Triggering player)
      • Player - Make Wall 1 Available for training/construction by (Triggering player)
      • Player - Make Arrow Tower 1 Available for training/construction by (Triggering player)
      • Player - Make Range Tower 1 Available for training/construction by (Triggering player)
      • Player - Make Speed Tower 1 Available for training/construction by (Triggering player)
      • Player - Make Zero Tower Available for training/construction by (Triggering player)
      • Player - Make Tech Center 1 Available for training/construction by (Triggering player)
      • Player - Make Altar Available for training/construction by (Triggering player)
      • Player - Make Upgrade Center 1 Available for training/construction by (Triggering player)
      • Player - Make Slayer Shop Available for training/construction by (Triggering player)
That should be all triggers involved, but my map is not encrypted.
 
Last edited:
Status
Not open for further replies.
Top