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

help me check my trigger

Status
Not open for further replies.
Level 6
Joined
Mar 9, 2009
Messages
175
help me check my trigger have what problem


  • CS
    • Events
      • Unit - A unit Dies
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Owner of (Dying unit)) Equal to Neutral Hostile
          • (Unit-type of (Dying unit)) Equal to Civilian Pondan
          • (Unit-type of (Dying unit)) Equal to Civilian Pondan
          • (Unit-type of (Dying unit)) Equal to Civilian Pondan
          • (Unit-type of (Dying unit)) Equal to Civilian Pondan
          • (Unit-type of (Dying unit)) Equal to Civilian Pondan
      • (Unit-type of (Dying unit)) Not equal to Apprentice Sniper
      • (Unit-type of (Dying unit)) Not equal to Expert Sniper
      • (Unit-type of (Dying unit)) Not equal to Master Sniper
      • (Unit-type of (Dying unit)) Not equal to Medic Apprentice
      • (Unit-type of (Dying unit)) Not equal to Medic Officer
      • (Unit-type of (Dying unit)) Not equal to Tank - V66
      • (Unit-type of (Dying unit)) Not equal to Tank APC
      • (Unit-type of (Dying unit)) Not equal to Tank Destroyer
      • (Unit-type of (Dying unit)) Not equal to Tank Sherman
      • (Unit-type of (Dying unit)) Not equal to Flamer Marine
      • (Unit-type of (Dying unit)) Not equal to Gladiator Marine
      • (Unit-type of (Dying unit)) Not equal to Great Marine
      • (Unit-type of (Dying unit)) Not equal to Officer HQ
      • (Unit-type of (Dying unit)) Not equal to Rifleman
      • (Unit-type of (Dying unit)) Not equal to Supreme Marine
    • Actions
      • Set CS_Region[1] = Civil2 <gen>
      • Set CS_Region[2] = Civil4 <gen>
      • Set CS_Region[3] = Civil3 <gen>
      • Set CS_Region[4] = Civil <gen>
      • Wait 60.00 seconds
      • Unit - Create 1 (Unit-type of (Dying unit)) for Neutral Hostile at (Random point in CS_Region[(Random integer number between 1 and 4)]) facing Default building facing degrees
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
1) What are you trying to achieve?

2) You can use "Triggering Unit" depending on the event. In this case, "Unit Dies", Dying Unit = Triggering Unit. Use Triggering Unit as long as you can, since it's faster than getting other Event Response units.

3) Why're you using 5 "(Unit-type of (Dying unit)) Equal to Civilian Pondan"? One is enough.

4) I'm sure there must be a better way to do that list. I recall my first question.

5) Waits are not good... They're evil, that's why they're red (Joking). Just use them as less as you can.

Seems like you're trying to make some kind of re-spawn system, making creeps spawn after 60 seconds in a random región. Check in the Spell section for some respawn/spawn system. They're usually better for beginners.

Maybe you can use a simple condition like "Triggering Unit is a Hero equal to False", or "Unit Type of Triggering Unit is *YourUnit*.

You're setting the region variables every time a unit dies. In that case, it's better to declare them on Map Initialization. I'm not sure though.

Whenever you use a Point (Random Point in...) declare it into a variable:

set *PointTypeVariable* = Random Point in... bla bla.
-> Create unit in *PointTypeVariable*
Custom script: call RemoveLocation(udg_*PointTypeVariable*).

Ayway, this sytem won't work as it's. Check my suggestions.
 
Level 6
Joined
Mar 9, 2009
Messages
175
errm.. ya i was trying to make an respawn trigger . By the way Civil Pondan 5 all not same unit just same name i lazy to changed it -.- . okay i will try to search at spell section .
 
Level 6
Joined
Mar 9, 2009
Messages
175
erm i got tried this once before , the custom script i used after 30minute it cause bugs . Dont know is my trigger problem or no . My map i will play over 30minute so i afraid the bugs will happen . Hehe
 
Status
Not open for further replies.
Top