[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 > Warcraft III Modding > World Editor Help Zone


World Editor Help Zone Ask general questions about World Editor features and use in this forum. If you need help fixing a trigger, please post it in Triggers & Scripts. Please review the forum rules before posting.

Closed Thread
 
Thread Tools
Old 08-06-2012, 09:15 AM   #1 (permalink)
Registered User bloodbath5557
Whorecraft III
 
bloodbath5557's Avatar
 
Join Date: Dec 2009
Posts: 375
bloodbath5557 is on a distinguished road (60)bloodbath5557 is on a distinguished road (60)
knockback and flying corpses

Hey guys,
i just need a lil help here
can somebody tell me how to a GUI trigger for this type of knockback?

refer here
Diablo III 1.0b

thanks~
__________________
bloodbath5557 is offline  
Old 08-06-2012, 11:13 AM   #2 (permalink)
Registered User _PV
*Le hive random ^_^*
 
_PV's Avatar
 
Join Date: Aug 2010
Posts: 187
_PV has little to show at this moment (44)_PV has little to show at this moment (44)_PV has little to show at this moment (44)_PV has little to show at this moment (44)_PV has little to show at this moment (44)
Okay lemme put it down step by step: (note: this is for GUI)

Make a trigger (obviously) and name it "GUI".
-
Events
Unit - A unit Starts the effect of an ability
(Generic Unit Event)
Conditions
(ability being cast) Equal to KnockBack
(Ability Comparison) oh, and "KnockBack" is just some ability I made, insert your own ability here :P

Now add 3 variables:

Caster - Unit
Target - Unit
Location - point

And set these variable
Actions
Set variable Caster = (Triggering Unit)/(Casting Unit)
Set variable Target = (Target Unit of ability being Cast)
Set variable Location = (Position of Caster)
(general Action)

Now make a new trigger, name it "Knock" or "Push" (or whatever)

Events
Time - Every 0.04 seconds of game time
(note: reason for 0.04 seconds of game time - it runs really smoothly and looks epic :P)
Now untick the "Initially On" box, so that it doesn't run forever.
Okay, this trigger only needs 1 action. This is the actual trigger that makes the knockback effect.

Unit - Move (variable TARGET) instantly to Point with polar offset
Now this is kind of the tricky part.
Okay, now take the Location variable
Make the offset by Arithmetic. You will see:
1.00 + 1.00 - both in blue
Click on the first "1.00"
Make it: Math - Distance between points -
Distance between Location and
(Position of Target).

Now click the second 1.00 and make it's value 5. (just do it :P)

Now make it "towards (math - angle between points)"
make it Angle from Location to Position of Target.

I'll include a few Screenshots If you don't understand, cause It's rather hard to explain it like this :PP
Now go back to the trigger "GUI"
add actions:
Actions
Trigger - Turn on Knock/push<gen>
Wait - 1.00 seconds
Trigger - Turn off Knock/push<gen>

Why wait 1 second? Cause watching somebody getting knocked back for 10 seconds is pretty lame :P

That's pretty much it! Just wait a sec lemme attach those screenshots.
Hope this helped :)
__________________
Cool story bro
Events
Story told
Conditions
((Story) is Cool) Equal to True
Actions
Cinematic - Send transmission to (Story teller) from Me Play LOL<gen> and display Cool story bro Modify duration: Add 0.00 seconds and Wait
_PV is offline  
Old 08-06-2012, 11:26 AM   #3 (permalink)
Registered User _PV
*Le hive random ^_^*
 
_PV's Avatar
 
Join Date: Aug 2010
Posts: 187
_PV has little to show at this moment (44)_PV has little to show at this moment (44)_PV has little to show at this moment (44)_PV has little to show at this moment (44)_PV has little to show at this moment (44)
Here's a simple map I just quickly made the trigger in. Try it out :P just cast Stormbolt or a peasant and watch em knock back. Though The ability would look better if it were a melee strike :P
Attached Files
File Type: w3x Knockback.w3x (16.9 KB, 10 views)
__________________
Cool story bro
Events
Story told
Conditions
((Story) is Cool) Equal to True
Actions
Cinematic - Send transmission to (Story teller) from Me Play LOL<gen> and display Cool story bro Modify duration: Add 0.00 seconds and Wait
_PV is offline  
Old 08-07-2012, 12:50 PM   #4 (permalink)
Registered User bloodbath5557
Whorecraft III
 
bloodbath5557's Avatar
 
Join Date: Dec 2009
Posts: 375
bloodbath5557 is on a distinguished road (60)bloodbath5557 is on a distinguished road (60)
thank you..
__________________
bloodbath5557 is offline  
Closed Thread

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


All times are GMT. The time now is 09:14 AM.





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