• 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] Rally Point Spawn Movement System

Status
Not open for further replies.
Level 9
Joined
Feb 2, 2013
Messages
97
So after I had lots of issues and game crashes with movement towers, which move around 90 units at once I want to implent a rally point system instead which is used in maps like Lordaeron Tactics for example.

Do you guys have any suggestions for me, or experiences with these systems and how they work best? There are two different variants I'm experiencing with atm.

The first one is set at the end of the spawn triggers (which all happen in periodic events of 110 seconds).

Set Point = (Rally-Point of -SPAWNBUILDING- as a point)
Set Temp_Group = (Units in -SPAWN LOCATION- owned by -SPAWNING PLAYER-))

Unit Group - Pick every unit in Temp_Group and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Attack-Move To Point
Custom script: call RemoveLocation(udg_Point)
Custom script: call DestroyGroup (udg_Temp_Group)

Second one is integrated into the Spawn Trigger itself:

...
Unit - Create 1 Footmen for SPAWNING PLAYER at SPAWNPOINT facing blabla...
Unit - Order (Last created unit) to Attack-Move to (Point)
Unit - Create 1 Archer for SPAWNING PLAYER at SPAWNPOINT facing blabla...
Unit - Order (Last created unit) to Attack-Move to (Point)

Btw: 1. do the rally point create a leak or don't I need the "Point" variable and 2. does it Last created unit work like this too:
Unit - Create 4 Archer for SPAWNING PLAYER at SPAWNPOINT facing blabla...
Unit - Order (Last created unit) to Attack-Move to (Point)

Any ideas/suggestions to improve it?
 
Status
Not open for further replies.
Top