-
Are you planning to upload your awesome spell or system to Hive? Please review the rules here.Dismiss Notice
-
Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.Dismiss Notice
-
A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!Dismiss Notice
-
Check out the Staff job openings thread.Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.
Dummy Caster v1.4
Submitted by
Almia
- Tags:
- System, GUI / Triggers
- Filesize:
- 19.83 KB
- Rating:
-
(0 votes)
- Downloads:
- 1684
- Uploaded:
- Oct 25, 2012
- Updated:
- Nov 15, 2016
- Resources:
- 1
- Author(s):
- Almia
- State:
- Approved

This bundle is marked as approved. It works and satisfies the submission rules.
Dummy Caster
This is the Dummy Caster system,this allows you to use dummy to cast abilities based on your orders.
This system is good for stunning,nova,and destroy trees.
Doesnt support summonings and channeling.
If you want a vJASS version:
MUIDummyCasterbyMcKill2009-
-
-
Dummy Caster
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Custom script: set udg_DC_Hash = InitHashtable()
-
-------- ---------------------------- --------
-
-------- Creating Dummy --------
-
-------- ---------------------------- --------
-
Set DC_Loc = (Center of (Playable map area))
-
For each (Integer DC_I) from 1 to 12, do (Actions)
-
Loop - Actions
-
Unit - Create 1 Dummy for (Player(DC_I)) at DC_Loc facing Default building facing degrees
-
Set DC_DummyCaster[DC_I] = (Last created unit)
-
-
-
Custom script: call RemoveLocation(udg_DC_Loc)
-
Custom script: endfunction
-
-------- ---------------------------- --------
-
-------- This function resets the dummy caster --------
-
-------- ---------------------------- --------
-
Custom script: function DummyCasterReset takes nothing returns nothing
-
-------- ---------------------------- --------
-
-------- you can remove this line if you want --------
-
-------- ---------------------------- --------
-
Custom script: call DisplayTextToForce( GetPlayersAll(), ( "Dummy Caster casted" + GetAbilityName(udg_DC_AddedAbil) ) )
-
-------- ---------------------------- --------
-
Set DC_Loc = (Center of (Playable map area))
-
Unit - Move DC_DummyCaster[DC_ID] instantly to DC_Loc
-
Custom script: call RemoveLocation(udg_DC_Loc)
-
Custom script: call UnitRemoveAbility(udg_DC_DummyCaster[udg_DC_ID],udg_DC_AddedAbil)
-
Custom script: endfunction
-
-------- ---------------------------- --------
-
-------- This function applies the ability to the dummy caster --------
-
-------- ---------------------------- --------
-
Custom script: function ApplyDummyCaster takes nothing returns nothing
-
Custom script: call UnitAddAbility(udg_DC_DummyCaster[udg_DC_ID],udg_DC_AddedAbil)
-
Custom script: call SetUnitAbilityLevel(udg_DC_DummyCaster[udg_DC_ID],udg_DC_AddedAbil,udg_DC_Level)
-
Custom script: endfunction
-
-------- ---------------------------- --------
-
-------- This function orders the dummy caster to target unit --------
-
-------- Use call ExecuteFunc("OrderDummyCasterTargetUnit") --------
-
-------- ---------------------------- --------
-
Custom script: function OrderDummyCasterTargetUnit takes nothing returns nothing
-
Custom script: call ApplyDummyCaster()
-
Unit - Move DC_DummyCaster[DC_ID] instantly to DC_Loc
-
Custom script: call IssueTargetOrder(udg_DC_DummyCaster[udg_DC_ID],udg_DC_Order,udg_DC_Target)
-
Custom script: call DummyCasterReset()
-
Custom script: endfunction
-
-------- ---------------------------- --------
-
-------- This function orders the dummy caster to target point --------
-
-------- Use call ExecuteFunc("OrderDummyCasterTargetPoint") --------
-
-------- ---------------------------- --------
-
Custom script: function OrderDummyCasterTargetPoint takes nothing returns nothing
-
Custom script: call ApplyDummyCaster()
-
Unit - Move DC_DummyCaster[DC_ID] instantly to DC_Loc
-
Custom script: call IssuePointOrderLoc(udg_DC_DummyCaster[udg_DC_ID],udg_DC_Order,udg_DC_TargetLoc)
-
Custom script: call DummyCasterReset()
-
Custom script: endfunction
-
-------- ---------------------------- --------
-
-------- This function orders the dummy caster to target destructable --------
-
-------- This is good for destroying trees --------
-
-------- Use call ExecuteFunc("OrderDummyCasterTargetDest") --------
-
-------- ---------------------------- --------
-
Custom script: function OrderDummyCasterTargetDest takes nothing returns nothing
-
Custom script: call ApplyDummyCaster()
-
Unit - Move DC_DummyCaster[DC_ID] instantly to DC_Loc
-
Custom script: call IssueTargetDestructableOrder(udg_DC_DummyCaster[udg_DC_ID],udg_DC_Order,udg_DC_TargetDest)
-
Custom script: call DummyCasterReset()
-
Custom script: endfunction
-
-------- ---------------------------- --------
-
-------- This function orders the dummy caster with no target --------
-
-------- Use call ExecuteFunc("OrderDummyCasterNoTarget") --------
-
-------- ---------------------------- --------
-
Custom script: function OrderDummyCasterNoTarget takes nothing returns nothing
-
Custom script: call ApplyDummyCaster()
-
Unit - Move DC_DummyCaster[DC_ID] instantly to DC_Loc
-
Custom script: call IssueImmediateOrder(udg_DC_DummyCaster[udg_DC_ID],udg_DC_Order)
-
Custom script: call DummyCasterReset()
-
-
-
-
-
Target Point
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Thunder Clap Ex
-
-
Actions
-
Set DC_Caster = (Triggering unit)
-
Set DC_TargetLoc = (Position of DC_Caster)
-
-------- ---------------------------- --------
-
-------- Thunder Clap orders dummy to cast Carrion Swarm --------
-
-------- ---------------------------- --------
-
Custom script: set udg_DC_AddedAbil = 'AUcs'
-
Set DC_Order = carrionswarm
-
Set DC_Loc = (Position of DC_Caster)
-
Set DC_Level = (Level of (Ability being cast) for DC_Caster)
-
Custom script: call ExecuteFunc("OrderDummyCasterTargetPoint")
-
Custom script: call RemoveLocation(udg_DC_Loc)
-
Custom script: call RemoveLocation(udg_DC_TargetLoc)
-
-
-
-
-
Target Unit
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Storm Bolt Ex
-
-
Actions
-
Set DC_Caster = (Triggering unit)
-
Set DC_Target = (Target unit of ability being cast)
-
-------- ---------------------------- --------
-
-------- Storm Bolt orders dummy to cast Banish --------
-
-------- ---------------------------- --------
-
Custom script: set udg_DC_AddedAbil = 'AHbn'
-
Set DC_Order = banish
-
Set DC_Loc = (Position of DC_Caster)
-
Set DC_Level = (Level of (Ability being cast) for DC_Caster)
-
Custom script: call ExecuteFunc("OrderDummyCasterTargetUnit")
-
Custom script: call RemoveLocation(udg_DC_Loc)
-
-
-
-
- v1.0
-Released
v1.1
-Removed Configuration(due to the Timed Lightning Issue)
v1.2
-Fixed SetUnitAbilityLevel script
v1.3
-Added new function(ApplyDummyCaster)
v1.4
-Fixed kill application.(due to defskulls)
Contents
Page 1 of 2