[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Spells


Reply
 
Thread Tools
The Hive Workshop Spells:
Mind control v1.1
by Bluebay
Images
Highslide JS
Details
Uploaded:16:57, 1st Jan 2010
Last Updated:14:16, 3rd Aug 2012
Keywords:Mind, Control, Soul, Ghost, Banshee.
Type:Target Object
Category:GUI / Triggers

This is a MUI spell that I created by myself.

Description : Controls the targeted ennemy for a short period of time. If the caster stops channeling, if the timer expires or if the controled unit goes away the maximum distance from the caster, the spell will be canceled.

Give credits if you use it in your map(s).

Changelog

v1.0 released !
v1.1 : - Fixed a glitch where the caster continued to channel the spell while it could walk, during when it was targeting another unit with the spell. This was caused if the second target was at a longer distance away from the caster than the previous one.
I was forced to introduce a third trigger to prevent this from happening.
- Changed the periodic event to apply every 0.03 seconds instead of 0.01 seconds.
- Added another hero to prove the efficiency of the spell.
- Added new documentation.


For the (old) triggering, please check in the comments below.
I'd appreciate if anybody could post the newest version of the triggers tho, as I'm using a French version of the World Editor.
Rating - 0.00 (0 votes)
(Hover and click)
Moderator Comments
Useful
21:21, 4th Jan 2010
The_Reborn_Devil:
The triggers look ok, and there are no leaks.

Status: Approved
Rating: Useful

This spell is approved and works properly.


Download Spell - Mind Control v1.1.w3x
(46.01 KB, 1138 Downloads)

Old 01-01-2010, 05:16 PM   #2 (permalink)
Registered User X-OMG-X
Amira Tower Defence
 
X-OMG-X's Avatar
 
Join Date: Nov 2008
Posts: 2,248
X-OMG-X is a jewel in the rough (239)X-OMG-X is a jewel in the rough (239)X-OMG-X is a jewel in the rough (239)
Could you post the triggers here? It sounds pretty interesting. Also, you did mentod that it stops when the controlled unit dies. Does it bug then?
__________________
X-OMG-X is offline   Reply With Quote
Old 01-01-2010, 05:17 PM   #3 (permalink)
Registered User Bluebay
Channel the light of Aiur
 
Bluebay's Avatar
 
Join Date: May 2008
Posts: 112
Bluebay has little to show at this moment (21)Bluebay has little to show at this moment (21)Bluebay has little to show at this moment (21)
Trigger posted. And why would you want it bugs after the unit dies ? It doesn't bug when it dies.

[EDIT] : Sorry, it's my warcraft III french version so there is some bugs into the scripts.

Last edited by Bluebay; 01-01-2010 at 05:43 PM.
Bluebay is offline   Reply With Quote
Old 01-01-2010, 05:48 PM   #4 (permalink)
Registered User OffGraphic
._. no word
 
OffGraphic's Avatar
 
Join Date: Jul 2008
Posts: 974
OffGraphic has disabled reputation
Here you have the english triggers.
CnP the stuff below.. (If you want to use it)


Triggers - Mind control v1.0

Mind control cast

Mind control cast:
Mind control cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mind control (channeling)
Actions
-------- -------------------------------- --------
-------- DOCUMENTATION --------
-------- -------------------------------- --------
-------- This checks if the spell is already running. If it does, it destroys the last one and creates a new one. --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Casting unit) is in MC_Group) Equal to True
Then - Actions
Special Effect - Destroy MC_AttachedEffect[(Custom value of (Casting unit))]
Floating Text - Destroy MC_TextTimer[(Custom value of (Casting unit))]
Lightning - Destroy MC_LightningChain[(Custom value of (Casting unit))]
Unit Group - Remove (Casting unit) from MC_Group
Unit - Change ownership of MC_Target[(Custom value of (Casting unit))] to MC_TargetPlayer[(Custom value of (Casting unit))] and Change color
Game - Display to (All players) the text: !
Set MC_TimeElapsed[(Custom value of (Casting unit))] = 0.00
Set MC_Integer[2] = (MC_Integer[2] - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MC_Integer[2] Equal to 0
Then - Actions
Set MC_Integer[1] = 0
Trigger - Turn off Mind control loop <gen>
Else - Actions
Else - Actions
-------- This add an Integer to the index system. --------
Set MC_Integer[1] = (MC_Integer[1] + 1)
-------- This sets the caster. --------
Set MC_Caster[MC_Integer[1]] = (Casting unit)
-------- This sets the controled unit. --------
Set MC_Target[MC_Integer[1]] = (Target unit of ability being cast)
-------- This sets level settings. --------
Set MC_Level[MC_Integer[1]] = (Level of (Ability being cast) for MC_Caster[MC_Integer[1]])
-------- verify if (or eventually and directly sets to) LEVEL 1 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MC_Level[MC_Integer[1]] Equal to 1
Then - Actions
-------- This sets the maximum time of how long the unit will be controled. (The target) --------
Set MC_Time[MC_Integer[1]] = 10.00
-------- This sets the maximum distance between the caster and the target. --------
Set MC_MaxDistance[MC_Integer[1]] = 1000.00
Else - Actions
-------- if not LEVEL 1, verify (and eventually sets to) LEVEL 2 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MC_Level[MC_Integer[1]] Equal to 2
Then - Actions
Set MC_Time[MC_Integer[1]] = 20.00
Set MC_MaxDistance[MC_Integer[1]] = 1100.00
Else - Actions
-------- if not LEVEL 2, verify (and eventually sets to) LEVEL 3 --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MC_Level[MC_Integer[1]] Equal to 3
Then - Actions
Set MC_Time[MC_Integer[1]] = 30.00
Set MC_MaxDistance[MC_Integer[1]] = 1200.00
Else - Actions
-------- This sets the owner of the target. --------
Set MC_TargetPlayer[MC_Integer[1]] = (Owner of MC_Target[MC_Integer[1]])
-------- This sets the 2 points needed for the following actions. --------
Set MC_TempPoint1 = (Position of MC_Caster[MC_Integer[1]])
Set MC_TempPoint2 = (Position of MC_Target[MC_Integer[1]])
Set MC_TempPoint3 = (MC_TempPoint2 offset by 40.00 towards (Angle from MC_TempPoint1 to MC_TempPoint2) degrees)
-------- This creates the timer text. --------
Set MC_TimerInteger[MC_Integer[1]] = (Integer((MC_Time[MC_Integer[1]] - MC_TimeElapsed[MC_Integer[1]])))
Floating Text - Create floating text that reads (String(MC_TimerInteger[MC_Integer[1]])) at MC_TempPoint3 with Z offset 0.00, using font size 11.00, color (50.00%, 50.00%, 100.00%), and 0.00% transparency
Set MC_TextTimer[MC_Integer[1]] = (Last created floating text)
-------- This creates and set the lightning effect between the caster and the target. --------
Lightning - Create a Drain Mana lightning effect from source MC_TempPoint1 to target MC_TempPoint2
Set MC_LightningChain[MC_Integer[1]] = (Last created lightning effect)
-------- This creates and set the effect over the head of the target. --------
Special Effect - Create a special effect attached to the overhead of MC_Target[MC_Integer[1]] using Abilities\Spells\NightElf\shadowstrike\shadowstrike.mdl
Set MC_AttachedEffect[MC_Integer[1]] = (Last created special effect)
-------- This instantly change the owner of the target. --------
Unit - Change ownership of MC_Target[MC_Integer[1]] to (Owner of MC_Caster[MC_Integer[1]]) and Retain color
-------- This add the Caster to the group to verify that he is always channeling the spell. --------
Unit Group - Add MC_Caster[MC_Integer[1]] to MC_Group
-------- Set the custom value to the index Integer. --------
Unit - Set the custom value of MC_Caster[MC_Integer[1]] to MC_Integer[1]
-------- Removing the location created. --------
Custom script: call RemoveLocation(udg_MC_TempPoint1)
Custom script: call RemoveLocation(udg_MC_TempPoint2)
Custom script: call RemoveLocation(udg_MC_TempPoint3)
-------- This add one more Integer[2] to make the Integer[1] null and stop the loop integer when he is null. --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MC_Integer[2] Equal to 0
Then - Actions
Trigger - Turn on Mind control loop <gen>
Else - Actions
Set MC_Integer[2] = (MC_Integer[2] + 1)

Mind control loop

Mind control loop:
Mind control loop
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
For each (Integer MC_Integer[3]) from 1 to MC_Integer[1], do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(MC_Caster[MC_Integer[3]] is in MC_Group) Equal to True
Then - Actions
Set MC_TempPoint1 = (Position of MC_Caster[MC_Integer[3]])
Set MC_TempPoint2 = (Position of MC_Target[MC_Integer[3]])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between MC_TempPoint1 and MC_TempPoint2) Less than MC_MaxDistance[MC_Integer[3]]
(MC_Caster[MC_Integer[3]] is alive) Equal to True
(MC_Target[MC_Integer[3]] is alive) Equal to True
(Current order of MC_Caster[MC_Integer[3]]) Equal to (Order(unrobogoblin))
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MC_TimeElapsed[MC_Integer[3]] Less than MC_Time[MC_Integer[3]]
Then - Actions
Set MC_TimeElapsed[MC_Integer[3]] = (MC_TimeElapsed[MC_Integer[3]] + 0.01)
Lightning - Move MC_LightningChain[MC_Integer[3]] to source MC_TempPoint1 and target MC_TempPoint2
Set MC_TempPoint3 = (MC_TempPoint2 offset by 40.00 towards (Angle from MC_TempPoint1 to MC_TempPoint2) degrees)
Set MC_TimerInteger[MC_Integer[3]] = (Integer((MC_Time[MC_Integer[3]] - MC_TimeElapsed[MC_Integer[3]])))
Floating Text - Destroy MC_TextTimer[MC_Integer[3]]
Floating Text - Create floating text that reads (String(MC_TimerInteger[MC_Integer[3]])) at MC_TempPoint3 with Z offset 0.00, using font size 11.00, color (50.00%, 50.00%, 100.00%), and 0.00% transparency
Set MC_TextTimer[MC_Integer[3]] = (Last created floating text)
Custom script: call RemoveLocation(udg_MC_TempPoint3)
Else - Actions
Special Effect - Destroy MC_AttachedEffect[MC_Integer[3]]
Floating Text - Destroy MC_TextTimer[MC_Integer[3]]
Lightning - Destroy MC_LightningChain[MC_Integer[3]]
Unit Group - Remove MC_Caster[MC_Integer[3]] from MC_Group
Unit - Change ownership of MC_Target[MC_Integer[3]] to MC_TargetPlayer[MC_Integer[3]] and Change color
Set MC_TimeElapsed[MC_Integer[3]] = 0.00
Set MC_Integer[2] = (MC_Integer[2] - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MC_Integer[2] Equal to 0
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
Else - Actions
Special Effect - Destroy MC_AttachedEffect[MC_Integer[3]]
Floating Text - Destroy MC_TextTimer[MC_Integer[3]]
Lightning - Destroy MC_LightningChain[MC_Integer[3]]
Unit Group - Remove MC_Caster[MC_Integer[3]] from MC_Group
Unit - Change ownership of MC_Target[MC_Integer[3]] to MC_TargetPlayer[MC_Integer[3]] and Change color
Unit - Order MC_Caster[MC_Integer[3]] to Stop
Set MC_TimeElapsed[MC_Integer[3]] = 0.00
Set MC_Integer[2] = (MC_Integer[2] - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
MC_Integer[2] Equal to 0
Then - Actions
Set MC_Integer[1] = 0
Trigger - Turn off (This trigger)
Else - Actions
Custom script: call RemoveLocation(udg_MC_TempPoint1)
Custom script: call RemoveLocation(udg_MC_TempPoint2)
Else - Actions

__________________
[01-08-08] Magtheridon96: Good riddance you rude motherfucker.
[01-08-42] I3lackDeath: XD
[01-08-49] Ralle: Wow. He really was horrible
OffGraphic is offline   Reply With Quote
Old 01-04-2010, 07:47 PM   #5 (permalink)
Registered User Klingo
 
Klingo's Avatar
 
Join Date: Dec 2009
Posts: 284
Klingo has disabled reputation
lol french world editor
Klingo is offline   Reply With Quote
Old 01-05-2010, 09:25 AM   #6 (permalink)
Registered User X-OMG-X
Amira Tower Defence
 
X-OMG-X's Avatar
 
Join Date: Nov 2008
Posts: 2,248
X-OMG-X is a jewel in the rough (239)X-OMG-X is a jewel in the rough (239)X-OMG-X is a jewel in the rough (239)
Clean code and good amount of trigger comments. Like it.
__________________
X-OMG-X is offline   Reply With Quote
Old 01-05-2010, 02:18 PM   #7 (permalink)
Registered User king_drift_alex
noob_smoke
 
king_drift_alex's Avatar
 
Join Date: Nov 2007
Posts: 710
king_drift_alex is on a distinguished road (67)king_drift_alex is on a distinguished road (67)
bug founded !

I can control that unit for ever ... it's a bug
Download the replay to see the bug exactly
Attached Thumbnails
mind-control-bug.jpg  
Attached Files
File Type: w3g Mind Control Bug.w3g (9.1 KB, 48 views)
__________________
king_drift_alex is offline   Reply With Quote
Old 01-07-2010, 12:51 PM   #8 (permalink)
Registered User Bluebay
Channel the light of Aiur
 
Bluebay's Avatar
 
Join Date: May 2008
Posts: 112
Bluebay has little to show at this moment (21)Bluebay has little to show at this moment (21)Bluebay has little to show at this moment (21)
Can't read your replay, sorry. Can you tell me what exactly happened ?
Bluebay is offline   Reply With Quote
Old 01-10-2010, 05:01 PM   #9 (permalink)
Registered User king_drift_alex
noob_smoke
 
king_drift_alex's Avatar
 
Join Date: Nov 2007
Posts: 710
king_drift_alex is on a distinguished road (67)king_drift_alex is on a distinguished road (67)
i have patch 1.24b ... do you have it ?
__________________
king_drift_alex is offline   Reply With Quote
Old 01-11-2010, 05:33 PM   #10 (permalink)
Registered User Bluebay
Channel the light of Aiur
 
Bluebay's Avatar
 
Join Date: May 2008
Posts: 112
Bluebay has little to show at this moment (21)Bluebay has little to show at this moment (21)Bluebay has little to show at this moment (21)
I have the patch "1.24c".
Bluebay is offline   Reply With Quote
Old 03-24-2010, 08:38 PM   #11 (permalink)
Registered User Mouzyy
Me ownz.
 
Mouzyy's Avatar
 
Join Date: Dec 2009
Posts: 171
Mouzyy has little to show at this moment (4)
Hm, just the spell i need!
I hope you wont mind if ill use it in my map, with some changes
(like duration, radius and it wont be for time duration)
__________________
As the Spellbreaker said: Watch and learn.
Mouzyy is offline   Reply With Quote
Old 08-04-2012, 08:22 PM   #12 (permalink)
Registered User Justicebringer
User
 
Justicebringer's Avatar
 
Join Date: Dec 2011
Posts: 129
Justicebringer has little to show at this moment (24)Justicebringer has little to show at this moment (24)Justicebringer has little to show at this moment (24)
Wow.Nice one ! (^o^)
Justicebringer is offline   Reply With Quote
Old 02-01-2013, 11:30 AM   #13 (permalink)
Registered User hieu2525
User
 
hieu2525's Avatar
 
Join Date: May 2011
Posts: 21
hieu2525 has little to show at this moment (1)
Whats the problem if i use that to a Hero? I can remove that hero's items from his inventory right?
hieu2525 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spell Request [mind control + life drain] bhusta Requests 0 12-30-2009 10:03 PM
Mind Control Nichilus World Editor Help Zone 6 11-03-2009 07:41 PM
Mind Control,cant make it work Japut3h Triggers & Scripts 4 01-21-2008 08:08 PM
Mind Control {AR}Nazuel Triggers & Scripts 8 11-07-2004 08:48 AM

All times are GMT. The time now is 06:15 PM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle