Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Come and join our gamer community by
registering for free here
Other Gaming Forum
PC games
WarCraft III Modding
Make a Basic Creep Spawn..?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="edwinfong25" data-source="post: 127934" data-attributes="member: 6832"><p>ok, so, i'd say that the easiest way to get this accomplished would be as MeTaL GuArD advised and to make a region on each side (essentially a decently sized region that would be large enough to encompass the area that all the spawns may take up as they spawn), this region shall be where the creeps are spawned</p><p></p><p>nextly, if that region is not close enough to the castle, then you can either make another region (this would be the target of the creeps' movement), or just find the position of the castle through triggers</p><p></p><p>so, now you'd have the spawning trigger (most likely Time - Periodic Event)</p><p>in that trigger you'd use "Unit - Create <u>#</u> <u><Creep Unit-Type></u> for <u><Player></u> at <u>(Center of <Region>)</u> facing <u>Default building facing degrees</u>"</p><p></p><p>so the number and creep unit and the (assumably) computer player who would possess them would be adjusted accordingly and to your needs</p><p>the Center of Region would need the region adjusted to the respective Creep Spawning Region that you had created</p><p>and the facing won't really matter since they'll turn once they start moving and/or attacking, lol</p><p></p><p>next, you'll need a trigger with Event "Unit - Unit Enters Region" (set the region to the spawning region as well)</p><p>add a condition to check <em>Player Comparison</em>, <u>Owner of (Entering Unit)</u> Equal to <the corresponding computer that should own the creeps that are spawning from that region></p><p></p><p>then in the actions for that, you'd use "Unit - Issue Order Targeting Point"</p><p>and adjust it to: Unit - Order (Entering Unit) to Attack-Move To (Center of <the region to which the spawn should be attacking to OR the point that you'd specify (like position of unit with the unit being the castle>)</p><p></p><p>the creep spawning trigger can create units for both teams, just make sure that you adjust the spawn region, and owning computer as necessary</p><p>also you'd create two of the Unit Enters Region triggers (one for each region)</p><p>and they'd have pretty much the same actions except that they would reverse the spawn regions, the attack targets, the owning computers</p><p></p><p>and that should work <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>hope that helps <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="edwinfong25, post: 127934, member: 6832"] ok, so, i'd say that the easiest way to get this accomplished would be as MeTaL GuArD advised and to make a region on each side (essentially a decently sized region that would be large enough to encompass the area that all the spawns may take up as they spawn), this region shall be where the creeps are spawned nextly, if that region is not close enough to the castle, then you can either make another region (this would be the target of the creeps' movement), or just find the position of the castle through triggers so, now you'd have the spawning trigger (most likely Time - Periodic Event) in that trigger you'd use "Unit - Create [U]#[/U] [U]<Creep Unit-Type>[/U] for [U]<Player>[/U] at [U](Center of <Region>)[/U] facing [U]Default building facing degrees[/U]" so the number and creep unit and the (assumably) computer player who would possess them would be adjusted accordingly and to your needs the Center of Region would need the region adjusted to the respective Creep Spawning Region that you had created and the facing won't really matter since they'll turn once they start moving and/or attacking, lol next, you'll need a trigger with Event "Unit - Unit Enters Region" (set the region to the spawning region as well) add a condition to check [I]Player Comparison[/I], [U]Owner of (Entering Unit)[/U] Equal to <the corresponding computer that should own the creeps that are spawning from that region> then in the actions for that, you'd use "Unit - Issue Order Targeting Point" and adjust it to: Unit - Order (Entering Unit) to Attack-Move To (Center of <the region to which the spawn should be attacking to OR the point that you'd specify (like position of unit with the unit being the castle>) the creep spawning trigger can create units for both teams, just make sure that you adjust the spawn region, and owning computer as necessary also you'd create two of the Unit Enters Region triggers (one for each region) and they'd have pretty much the same actions except that they would reverse the spawn regions, the attack targets, the owning computers and that should work :) hope that helps :) [/QUOTE]
Verification
Post reply
Other Gaming Forum
PC games
WarCraft III Modding
Make a Basic Creep Spawn..?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top