This is the offical to Vampirism Hell, a popular WC3 TFT Game!
HomeHome  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  
Post new topic   Reply to topic
 

READ! It's awesome!!

View previous topic View next topic Go down 
AuthorMessage
Omgfzor
Ancient Hell Beast
Ancient Hell Beast


Gender:Male
Age : 20
Joined : 12 Apr 2008
Posts : 642
Location : Underworld Floor 666
Wc3 Server : Northrend(Europe)

PostSubject: READ! It's awesome!!   Wed Jul 16, 2008 5:01 pm

Since I've posted this to fluffball's forum, I decided to post this here too.
It's an agillity critical trigger, with a attack animation when it hits,
This could be an usefull spell for you, it's a bit long,but usefull and GUI not Jass, well here it is:
WARNING THIS TRIGGER CONTAINS 3 DIFFERENT TRIGGERS
Variables: Flurry (Integer) FlurryDmg(Real) FlurryGuy(Unit) FlurryTarg(Unit)

Main Trigger:
Flurry
Events
Unit - A unit gets Attacked.
Conditions
Actions
Set Flurry = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Conditions
Flurry smaller than 15
'THEN'-Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Conditions
(Level of Flurry for (Attacking unit)) equals 1
'THEN'-Actions
Set FlurryDmg = ((Real((Agillity of(Attacking Unit)(Include Bonuses))) x 2.00)
Set FlurryGuy = (Attacking unit)
Set FLurryTarg = (Attacked unit)
Trigger - Turn on MultiAkt1 <gen>
Wait 1.00 seconds
Trigger - Turn off MultiAtk1 <gen>
'ELSE'-Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Conditions
(Level of Flurry for (Attacking unit)) Equals 2
'THEN'-Actions
Set FlurryDmg = ((Real((Agillity of (Attacking unit) (Include bonuses)))) x 2.00)
Set FlurryGuy = (Attacking unit)
Set FLurryTarg = (Attacked unit)
Trigger - Turn on MultiAtk2 <gen>
Wait 1.00 seconds
Trigger - Turn off MultiAtk2 <gen>
'ELSE'-Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
'IF'-Conditions
(Level of Flurry for (Attacking unit)) Equals 3
'THEN'-Actions
Set FlurryDmg = ((Real((Agillity of (Attacking unit) (Include bonuses)))) x 2.00)
Set FlurryGuy = (Attacking unit)
Set FLurryTarg = (Attacked unit)
Trigger - Turn on MultiAtk3 <gen>
Wait 1.00 seconds
Trigger - Turn off MultiAtk3 <gen>
'ELSE'-Actions
'ELSE'-Actions

Second Triggers:

MultiAtk1
Events
Time - Every 0.75 seconds of game time
Condtions
Actions
Unit - Cause FlurryGuy to damage FLurryTarg, dealing FlurryDmg damage of attack type Normal and damage type Normal
Animation - Play FlurryGuy's attack animation
Flowing Text - Create floating text that reads (String(FlurryDmg)) at (Position of FLurryTarg) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
Flowing text - Set the velocity of (Last created floating text) to 50.00 towards 90.00 degrees
Flowing Text - Change the lifespan of (Last created floating text) to 2.00 seconds
Flowing Text - Change (Last created floating text): Deactivating permanence
MultiAtk2 is the same like 3 just the Every X.XX seconds of time is shorter ->cause more hits ->more damage. It should run like this:
The unit attacks the enemy, causing 15% to do x2.00 His agillity to damage the enemy 1/2/3 times.
yes, it's a AGILLITY Critical trigger, you can do the same with strengh, just change the variable to real((integer agillity x2.00)) you can change it to 3.00 for more dmg, and to str or agillity.

In my case i would take for Multiatk 2 0.45 seconds
and for multiatk 3 0.32 seconds.
IT fits more. For balance.
A testmap with the trigger? KK here it is to copy off, first import the variables then the trigger,
http://www.mediafire.com/?zfmyy1e3eut


Last edited by Omgfzor on Wed Jul 16, 2008 5:52 pm; edited 1 time in total (Reason for editing : Test map)
Back to top Go down

READ! It's awesome!!

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You can reply to topics in this forum
Vampirism Hell Forum :: WC3 TFT :: Mapping-
Post new topic   Reply to topic