View Single Post
Old 01-01-2007, 12:09 PM   #1
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 Creep Respawn System

Creep Respawn System v2.6!

Updated to work with Warcraft III 1.24 and above!

Expand JASS:

Purpose

The Creep Respawn system is intended to greatly simplify the process of automatically respawning creep groups for you. A creep group is a group of creeps (1 or more) which will respawn after every unit in the group dies.

Requirements:
Features:
  • Very easy to use.
  • Respawning creeps will remember their original position, facing and acquisition range.
  • Supports randomly spawning a group from a list of pre-defined setups.
  • Has the possibility to suspend respawn if certain units are too close to the spawn point.
  • The respawn-trigger will detect unit death, changed ownership, RemoveUnit and ReplaceUnit (AutoIndex doesn't seem to function properly for this).
  • Simple setup:

    Just make a region around your pre-placed creeps, and do like this:
    In the example, Creep1<gen> is a region (JASS: rect).

    Trigger:
    Test map Init
    Collapse Events
    Time - Elapsed game time is 5.00 seconds
    Conditions
    Collapse Actions
    -------- ----------------------------------------------------- --------
    Set aRegionVariable = Creep1 <gen>
    Custom script: call CRS_CreateGroup(udg_aRegionVariable)
    --------
    -------- Now the creeps in the region Creep1 will respawn as a group. -------
    Now you might think that: "Hey, Custom Script! That's not easy at all!" Relax. You don't have to understand anything. Just copy the script and it will work :)
Attached Images
File Type: jpg crs.jpg (9.2 KB, 961 views)
Attached Files
File Type: w3x CreepRespawnSystem2.6.w3x (70.4 KB, 415 views)
__________________
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
Sponsored Links - Login to hide this ad!