• 🏆 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] The trigger I am worried about.

Status
Not open for further replies.
Level 9
Joined
May 21, 2014
Messages
580
Hello once again, Hive! I am in need of help, but this time I need reassurance.

I need to know if my trigger will make my map lag.
The map is an RPG map, and many of my spells are triggered already. My spells aren't MUI, but I am sure that the spells will only be used by 1 hero, and uniquely to that hero only.

Now, I have a trigger that worries me the most since it never did include turning it off (except when the hero changed class or something). For so long that unit exists in the field, the trigger is on (well, duh).

The trigger uses Weep's Damage Detection System, A.K.A. GDD.

Here are my triggers.

  • Incite
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Unit-type of (Leveling Hero)) Equal to Leviathan Guard (PJ)
      • And - All (Conditions) are true
        • Conditions
          • ((Level of (Leveling Hero)) / 5) Equal to 0
          • (Level of (Leveling Hero)) Not equal to 100
    • Actions
      • Unit - Increase level of Incite (PJ Leviathan) for (Leveling Hero)
  • Incite Effect
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
      • (Unit-type of GDD_DamageSource) Equal to Leviathan Guard (PJ)
      • (GDD_DamagedUnit belongs to an enemy of (Owner of GDD_DamageSource)) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to (Level of Incite (PJ Leviathan) for GDD_DamageSource)
        • Then - Actions
          • Special Effect - Create a special effect attached to the chest of GDD_DamagedUnit using Objects\Spawnmodels\Other\IllidanFootprint\IllidanWaterSpawnFootPrint.mdl
          • Special Effect - Destroy (Last created special effect)
          • Unit - Order GDD_DamagedUnit to Attack GDD_DamageSource
        • Else - Actions
The first trigger is just when the hero levels up, the skill will also level up given that the level gained by the hero is divisible by 5.

The 2nd trigger is what I worry most. Since it's an RPG map, almost all units are attacking or something like that. Will the triggers cause the map to lag?
Also, there is another help I could want to be done with my trigger. I want Incite Effect to run only with NORMAL ATTACKS, AND WHEN THE ATTACK LANDED.

Thanks so much, Hive. :) :ogre_hurrhurr:
 
Level 9
Joined
May 21, 2014
Messages
580
I've used some spells that also are Physical in damage, so another DDS won't help me in that, if I want it from a normal attack in any way.

I found a way, as so to speak, but the trigger I made might cause lag (I am worried again.)

Here are the new set of triggers:

  • Incite
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Unit-type of (Leveling Hero)) Equal to Leviathan Guard (PJ)
      • And - All (Conditions) are true
        • Conditions
          • ((Level of (Leveling Hero)) / 5) Equal to 0
          • (Level of (Leveling Hero)) Not equal to 100
    • Actions
      • Unit - Increase level of Incite (PJ Leviathan) for (Leveling Hero)
  • Incite Check
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to Leviathan Guard (PJ)
      • ((Attacked unit) belongs to an enemy of (Owner of (Attacking unit))) Equal to True
      • (Random integer number between 1 and 100) Less than or equal to (Level of Incite (PJ Leviathan) for (Attacking unit))
    • Actions
      • Trigger - Turn on Incite Cancel <gen>
      • Trigger - Turn on Incite Effect <gen>
  • Incite Cancel (Initially Off)
    • Events
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Unit-type of (Ordered unit)) Equal to Leviathan Guard (PJ)
    • Actions
      • Trigger - Turn off Incite Effect <gen>
      • Trigger - Turn off Incite Cancel <gen>
  • Incite Effect (Initially Off)
    • Events
      • Game - GDD_Event becomes Equal to 0.00
    • Conditions
      • (Unit-type of GDD_DamageSource) Equal to Leviathan Guard (PJ)
      • (GDD_DamagedUnit belongs to an enemy of (Owner of GDD_DamageSource)) Equal to True
    • Actions
      • Special Effect - Create a special effect attached to the chest of GDD_DamagedUnit using Objects\Spawnmodels\Other\IllidanFootprint\IllidanWaterSpawnFootPrint.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit - Order GDD_DamagedUnit to Attack GDD_DamageSource
      • Trigger - Turn off Incite Effect <gen>
      • Trigger - Turn off Incite Cancel <gen>
 
Status
Not open for further replies.
Top