View Single Post
Old 01-07-2007, 10:40 AM   #5
Themerion
Brahms-fan
 
Themerion's Avatar
 
Join Date: Jan 2006
Posts: 642

Submissions (2)

Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)Themerion has a spectacular aura about (114)

Default

Ok, sorry. To be more precise, the system requires JASSHelper 0.9.x (which CSCache also is dependant on). Yes, of course I could have made it dependant on nothing! But no sane scripter would make anything without vJASS these days...

I made this decision because vJASS makes it:

* Faster than anything you could ever produce without it.
* Deadly easy to implement.

I cannot know how your system was, Diolenist, but with this system, I can set up all the automatically respawning creep spawns in my map in 1 trigger. It look like this:

Trigger:
Create Groups
Collapse Events
Map initialization
Conditions
Collapse Actions
-------- Spawn 7 random level 3 creeps --------
Set TempInt = 7
Set TempInt2 = 3
Set TempLoc = (Center of Creep1 <gen>)
Custom script: call CreepCreateGroup(udg_TempInt2,udg_TempLoc,udg_TempInt)
-------- --- --------
-------- Spawn 3 Riflemen --------
Set TempInt = 3
Set TempType = Rifleman
Set TempLoc = (Center of Creep2 <gen>)
Custom script: call CreepCreateGroup(udg_TempType,udg_TempLoc,udg_TempInt)
-------- --- --------
-------- Spawn 4 Random Creeps of Level 5 --------
Set TempInt = 4
Set TempInt2 = 5
Set TempLoc = (Center of Creep3 <gen>)
Custom script: call CreepCreateGroup(udg_TempInt2,udg_TempLoc,udg_TempInt)
-------- --- --------
Custom script: call SpawnAllNewGroups()

As I understand from your post, you have vast JASS experience, so you surely notice that the only thing that's needed is the CreepCreateGroup command which takes a level/a unit-type, the number of creeps and the location of the group.

I'll edit the first post to contain this stuff...
__________________
Submissions::
(v)JASS Tutorial
Covers how to make fast and safe coding for common tasks in vJASS/JASS.
Creep Respawn System
It has never been easier to respawn creep groups...
Themerion is offline   Reply With Quote