Casters
The "casters" are monsters which cast other monsters onto the sliding heroes. The cast monster is all the time on the ground and goes straight until it goes out of range of the caster, then disapears. The caster anticipates the trajectory of the hero, so when it shoots, if the hero slides straight, this one will be touched and killed by the projectile monster. The caster has a load time, time it must wait after a shoot before shooting again. It can shoot only if at least one hero is in its range. If more than one hero is in its range, it randomly chooses a hero to shoot on.<br/><br/>Like for monster types and monsters, we distinguish caster types from casters. A caster type contains all the characteristics for casters, whereas a caster is a monster shooting on the heroes, with all the characteristics of its type, and a place to be.
-
-newCaster (newc) ‹label› ‹casterMonsterType› ‹projectileMonsterType› [‹range› [‹projectileSpeed› [‹loadTime›]]]This command creates a new caster type. Three parameters are compulsory and three are optional. If you don't specify an optional parameter, a default value is given.
-Compulsory parameters :- You give to the caster type a label of your choice. The label allows you to specify your caster type in order to use commands allowing to create casters or to modify or delete the caster type.
- You choose a caster monster type. It will define for every caster, the monster type of the caster itself : how the monster will look like, its immolation radius, etc.
- You choose a projectile monster type. It will define for every caster, the monster type of the projectiles : how the projectile looks like, its immolation radius, etc. Its movement speed is ignored.
- You can define the range of your caster type. The casters are able to shoot on the heroes only if the heroes are in their range. The projectiles disapear when going out of their casters range. The default range is 1000.
- You can choose a projectile speed. Like for slide speeds, there is no maximum limit to the projectile speed, but it has a minimum of 100. The default projectile speed is 600.
- You can change the load time of the caster type. It is the time a caster must wait after a shoot before shooting again. The load time has a minimum of 0.2 second and the default value is 1 second.
Examples-newCaster dragon dragon bouleDeFeu
-newc dragon dra fireBall 1000 700 1.7 -
-setCasterLabel (setcl) ‹oldCasterLabel› ‹newCasterLabel›Changes the label of a caster type. All caster type labels and alias must be different.Examples-setCasterLabel dragon dragon1
-setcl dragon2 tower -
-setCasterAlias (setca) ‹casterLabel› ‹alias›Puts an alias or changes the alias of a caster type. An alias is a short name which can be used like a label.Examples-setCasterAlias dragon dra
-setca dra dra1 -
-setCasterCaster (setcc) ‹casterLabel› ‹casterMonsterType›Changes the caster monster type of a caster type. It defines for every caster, the monster type of the caster itself : how the monster will look like, its immolation radius, etc.Examples-setCasterCaster dragon dragon
-setcc dragon dra -
-setCasterProjectile (setcp) ‹casterLabel› ‹projectileMonsterType›Changes the projectile monster type of a caster type. It defines for every caster, the monster type of the projectiles : how the projectile looks like, its immolation radius, etc. Its movement speed is ignored.Examples-setCasterProjectile dragon bouleDeFeu
-setcp dragon fireBall -
-setCasterRange (setcr) ‹casterLabel› ‹range›Changes the range of a caster type. The casters are able to shoot on the heroes only if the heroes are in their range. The projectiles disapear when going out of their casters range.Examples-setCasterRange dragon 1200
-setcr dragon 700 -
-setCasterSpeed (setcs) ‹casterLabel› ‹projectileSpeed›Changes the projectile speed of a caster type. Like for slide speeds, there is no maximum limit to the projectile speed, but it has a minimum of 100.Examples-setCasterSpeed dragon 1000
-setcs dragon 550 -
-setCasterLoadtime (setclt) ‹casterLabel› ‹loadTime›Changes the load time of a caster type. It is the time a caster must wait after a shoot before shooting again. The load time has a minimum of 0.2 second.Examples-setCasterLoadtime dragon 2.5
-setclt dragon 1.8 -
-setCasterAnimation (setcan) ‹casterLabel› ‹animation›Changes the animation of a caster type. When a caster shoots, it plays this animation. The default animation is "spell". The spaces are allowed for animations. You can see all animations of a model by opening it with the programm War3 Model Editor.Examples-setCasterAnimation dragon devour
-setcan dragon attack alternate -
-displayCasters (dc) [‹casterLabel›]Displays the characteristics of the caster types added by the maker(s). If you specify the ‹casterLabel›, the information of the corresponding type only are displayed ; if you don't, the information of all caster types are displayed. For every caster type the displayed information are the following : label, alias, caster monster type, projectile monster type, range, projectile speed, load time and animation.Examples-displayCasters
-dc dragon -
-removeCaster (remc) ‹casterLabel›Removes a caster type from the game and removes all casters of this type. Use this command carefully, it can remove lots of casters and there is no way back.
THIS COMMAND WORKS ONLY FOR ADMIN PLAYERS.Examples-removeCaster dragon
-remc dra -
-createCaster (crc) ‹casterLabel› [‹facingAngle›]Creates casters by right clicking. This command roughly works like the createMonsterImmobile command, the second parameter defining the facing angle of the casters. If you specify a facing angle of -1 or no facing angle, a random angle will be chosen to create the caster, each time it is created (mainly at the beginning of the level). If you specify a facing angle different than -1, the facing angle of the caster will always be the same. An angle of 0 or 360 is towards right whereas an angle of 90 is towards up.Examples-createCaster dragon
-crc dra 90 -
-deleteCaster (delc)Working roughly the same way as the deleteMonster command, this command deletes the casters clicked by the player.Examples-deleteCaster
-delc -
-deleteCastersBetweenPoints (delcbp)Working roughly the same way as the deleteMonstersBetweenPoints command, this command removes the casters present in rectangles formed with two right clicks.Examples-deleteCastersBetweenPoints