HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Looking for trigger help for Spawning Units.

09-25-2004, 12:57 AM#1
Xzarol
Could anyone direct me to a 1.17 compatible, up to date and easy to implement trigger system which I could use to spawn units for an AoS. This AoS has 8 barracks spawning for each side ( There are three variant groups of units spawned at each) I really need this to stop the lag from my AoS! Thanks for your time!
09-25-2004, 02:14 PM#2
RaeVanMorlock
Quote:
Originally Posted by Xzarol
Could anyone direct me to a 1.17 compatible, up to date and easy to implement trigger system which I could use to spawn units for an AoS. This AoS has 8 barracks spawning for each side ( There are three variant groups of units spawned at each) I really need this to stop the lag from my AoS! Thanks for your time!

umm.. I don't know about directing you anywhere, and I'm not sure what you mean by variants or how exactly you want this to work, but I could help you map out a general way that I would do it...

- Variables -
BarracksGroup :: UnitGroup
_point :: Point

=Make the Barracks Group=
Event:
- Map Initialization
Actions:
- Pick each unit in (Playable map area) Matching Condition (Unit-type of (Picked Unit) Equal to Barracks)
- - Add (Picked unit) to BarracksGroup

=A Barracks Dies=
Event:
- A unit dies
Condition:
- (Dying Unit) is in group BarracksGroup
Actions:
- Remove (Dying unit) from BarracksGroup

=Spawn Units=
Event:
- Every X seconds (where X is how often spawns are too occur)
Actions:
- Pick every unit in BarracksGroup
- - Set _point = Position of (Picked unit)
- - Create X units for (Owner of (Picked unit)) at _point
- - Custom script: call RemoveLocation(udg__point)


Now I suppose you'd still need to order these guys to attack and such but I don't know where you want them to go or if there's a trail to follow or what. If you could provide an in-depth description of exactly how you want this all to work then maybe I could be of further service.
09-25-2004, 11:41 PM#3
iNfraNe
Quote:
Originally Posted by RaeVanMorlock
- Pick each unit in (Playable map area) Matching Condition (Unit-type of (Picked Unit) Equal to Barracks)
- - Add (Picked unit) to BarracksGroup
Use Matching unit for Matching condition
- Pick each unit in (Playable map area) Matching Condition (Unit-type of (Matching Unit) Equal to Barracks)
09-25-2004, 11:52 PM#4
Gandalf2349
You should really stay away from a global variable _point when you plan to reference it in JASS.
09-26-2004, 12:18 AM#5
RaeVanMorlock
Quote:
Originally Posted by toot
Use Matching unit for Matching condition
- Pick each unit in (Playable map area) Matching Condition (Unit-type of (Matching Unit) Equal to Barracks)

Oops--thanks. I get that confused alot. But then again, if Matching Unit wasn't used there, I suppose there would be no use for it at all ^_^



Quote:
Originally Posted by Gandalf2349
You should really stay away from a global variable _point when you plan to reference it in JASS.

I have no problems with it. Using variables like _unit, _integer, and _point keep them ordered together in the variable list and keep it obvious that they serve no purpose other then temporarily storing their assigned data types. It also makes it obvious what type of variable they are. MyUnit and MyPoint would be similar, but I never liked having "My" -- plus that would put them in the middle of the variable list clustered together with the important ones. It's really not that difficult to see the difference between _ and __ At least, I've never had any problems.

Okay, so I'm ranting now.. rant rant rant.

So, umm... Xzarol, is your problem solved? lol
09-26-2004, 04:16 AM#6
Xzarol
I was wondering if anyone would be willing to just do the spawns for me, since I know next to nothing about all this lag stuff. I would be willing to pay in gold and full credit in the map if someone can do it. Here is a map to better show the job needed to be done. Every 50 or so seconds of the game diffrent units will spawn from the purple dots on the map and engage the other barracks spawns, go for that barracks, and then head into the enemy base. Each side has a commander, which allows spawns to be changed from diffrent selections. (i.e selection one makes 3 archers and one Huntress. Selection two spawns four archers and a mountain giant every other spawn.) Thanks for your time!
09-26-2004, 04:51 AM#7
RaeVanMorlock
Quote:
Originally Posted by Xzarol
I was wondering if anyone would be willing to just do the spawns for me, since I know next to nothing about all this lag stuff. I would be willing to pay in gold and full credit in the map if someone can do it. Here is a map to better show the job needed to be done. Every 50 or so seconds of the game diffrent units will spawn from the purple dots on the map and engage the other barracks spawns, go for that barracks, and then head into the enemy base. Each side has a commander, which allows spawns to be changed from diffrent selections. (i.e selection one makes 3 archers and one Huntress. Selection two spawns four archers and a mountain giant every other spawn.) Thanks for your time!


Nice picture, but if anyone is going to do it for you, they're going to need the map itself to access the regions, units, and variables.
09-26-2004, 08:59 AM#8
Dead-Inside
Quote:
Originally Posted by Xzarol
I was wondering if anyone would be willing to just do the spawns for me, since I know next to nothing about all this lag stuff. I would be willing to pay in gold and full credit in the map if someone can do it. Here is a map to better show the job needed to be done. Every 50 or so seconds of the game diffrent units will spawn from the purple dots on the map and engage the other barracks spawns, go for that barracks, and then head into the enemy base. Each side has a commander, which allows spawns to be changed from diffrent selections. (i.e selection one makes 3 archers and one Huntress. Selection two spawns four archers and a mountain giant every other spawn.) Thanks for your time!

What you want is rather advanced. I'd also suggest that you use dialogs for the choosing (Just makes things simpler :)).