• 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] Time Spawning and other trigger problem

Status
Not open for further replies.
Level 2
Joined
Jan 1, 2013
Messages
9
i want confirm what is the problem in my triggers
you will see in the map that i will attach its still beta phase and not yet release
because of the problems in it

The Problem i want to know:
1.The regions and the Spawn
Trigger name is:
:fp: Start up Timer
2. i want to know if that trigger would work (the trigger mention Above)
3.The Item System i want to add items in the marketplace
Trigger name is:
:fp: Item System
i misread the trigger it says at the end Unit Position-Position of (Name of Unit
--------------------------------------------------------------------------

that trigger(mentioned above the first trigger) is not yet finish because i want confirmations first
 

Attachments

  • The Black Citadel Defence Version Beta.w3x
    90.7 KB · Views: 28
Level 7
Joined
Nov 15, 2009
Messages
225
Hey,
changed some stuff for you.
Fixed the level spawn at this time, we need a little bit more work to fix all the bugs.

What I've changed:
-Already placed units are now neutral passive
-Changed trigger: lvl 1
-Changed trigger: Start up Timer
-Changed trigger: Start up Spawn
-Added trigger: RemoveKilledUnits
-Created three new variables (TempPoint, Level and Spawn_TimerWindow)

If you don't understand those changes I made, or if you fixed your spawn:
Write me a message, so we can continue or overwork all the changes.

Tried to keep your coding mostly to your style, hope it worked. :)

:grin:
 

Attachments

  • The Black Citadel Defence Version Beta.w3x
    91.3 KB · Views: 33
Level 2
Joined
Jan 1, 2013
Messages
9
Hey,
changed some stuff for you.
Fixed the level spawn at this time, we need a little bit more work to fix all the bugs.

What I've changed:
-Already placed units are now neutral passive
-Changed trigger: lvl 1
-Changed trigger: Start up Timer
-Changed trigger: Start up Spawn
-Added trigger: RemoveKilledUnits
-Created three new variables (TempPoint, Level and Spawn_TimerWindow)

If you don't understand those changes I made, or if you fixed your spawn:
Write me a message, so we can continue or overwork all the changes.

Tried to keep your coding mostly to your style, hope it worked. :)

:grin:


well done but...we have problems fixed and encounter
FIXED:
-the spawn of units
-the level
PROBLEMS:
-the timer(it won't show after level 1 has finished)
NOT FIXED:
-the item system trigger

Btw, Chaosy if it is not a little complicated to understand i should have already put it in the instead of showing it in the map its like a mixed thingy something like that
 
Level 7
Joined
Nov 15, 2009
Messages
225
well done but...we have problems fixed and encounter
FIXED:
-the spawn of units
-the level
PROBLEMS:
-the timer(it won't show after level 1 has finished)
NOT FIXED:
-the item system trigger

Btw, Chaosy if it is not a little complicated to understand i should have already put it in the instead of showing it in the map its like a mixed thingy something like that

It worked for me, downloaded it again and it failed. Strange..
Well nevermind, the spawn is fixed again.
(Just fixed the trigger: Start up Spawn)

It would be nice if you attach the fixed map so I can see that you fixed anything.
Going to continue helping you if you fixed all your spawn levels.
 

Attachments

  • The Black Citadel Defence Version Beta.w3x
    91 KB · Views: 31
Level 2
Joined
Jan 1, 2013
Messages
9
Let's just say ifthis would work than using complicated triggers

  • Spawn Unit
    • Events
      • Time - Elapsed game time is 180.00 seconds
    • Conditions
    • Actions
      • Unit - Create 1 (Unit-type of Draenei Disciple 0001 <gen>) for Neutral Passive at (Center of Minor Spawn <gen>) facing 270.00 degrees
      • Unit - Create 1 (Unit-type of Draenei Guardian 0000 <gen>) for Neutral Passive at (Center of Minor Spawn <gen>) facing 270.00 degrees

  • lvl 1
    • Events
      • Unit - A unit enters Minor Spawn <gen>
    • Conditions
      • (Owner of (Entering unit)) Equal to Neutral Hostile
    • Actions
      • Unit - Create 10 (Unit-type of (Entering unit)) for Neutral Hostile at (Center of Enter <gen>) facing 270.00 degrees
      • Unit - Create 10 (Unit-type of (Entering unit)) for Neutral Hostile at (Center of Enter Copy <gen>) facing 270.00 degrees
      • Unit - Create 10 (Unit-type of (Entering unit)) for Neutral Hostile at (Center of Enter Copy 2 <gen>) facing 270.00 degrees
      • Unit - Create 10 (Unit-type of (Entering unit)) for Neutral Hostile at (Center of Enter Copy 3 <gen>) facing 270.00 degrees

:xxd: :goblin_boom:
 
Level 7
Joined
Nov 15, 2009
Messages
225
I guess this could work, but your triggers leak.
Which means if you play your map a little bit longer, all players start lagging (depents on how good your computer and your connection is).
So if you want to do it this way, at least make sure you don't have leaks in your code.

Here's the trigger I've changed for you:

  • For each (Integer A) from 1 to 10, do (Actions)
    • Loop - Action
      • Set TempPoint = (Center of Enter <gen>)
      • Unit - Create 1 (Unit-type of Draenei-Wächter 0000 <gen>) for Spieler 12 (Braun) at TempPoint facing 270.00 degrees
      • Unit - Create 1 (Unit-type of Draenei-Jünger 0001 <gen>) for Spieler 12 (Braun) at TempPoint facing 270.00 degrees
      • Custom script: call RemoveLocation(udg_TempPoint)
Ignore the loop (for explaining reasons).
You create a point, which is in the center of your region 'Enter'.
Now you create 1 unit for all the unit types who spawn in your level at this point (in your region 'Enter').

So far so good, but this will cause Warcraft to lag over time.
To remove the lag, you simply need the following custom script:
call RemoveLocation(udg_YourVariable)
RemoveLocation is for removing the point variable.
YourVariable is of course the name of the point variable.
The udg_ is just for Warcraft to realize that this is a variable you made with pressing X (ctrl + b)
To all wc3 pro's out there, i'm trying to explain it easy, don't even think about flaming!^^

One thing is missing, the loop.
You could remove the loop and this would still work.
If you would change the region from the point variable (changing center to random point in region) you would spawn units on 10 different points, instead of all 10 units at the same random point.
Thats why I always use loops.

But in this case you don't need to.
So you could remove the loop (but you still need anything else of this).
Like this:
  • Set TempPoint = (Center of Enter <gen>)
  • Unit - Create 10 (Unit-type of Draenei-Wächter 0000 <gen>) for Spieler 12 (Braun) at TempPoint facing 270.00 degrees
  • Unit - Create 10 (Unit-type of Draenei-Jünger 0001 <gen>) for Spieler 12 (Braun) at TempPoint facing 270.00 degrees
  • Custom script: call RemoveLocation(udg_TempPoint)
 
Status
Not open for further replies.
Top