Register for free, and make this box disappear!

Welcome to the BF Forums! Register Now, It's Free!


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.



Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Forums > Warcraft > Warcraft General > Warcraft Maps and Modifications

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 05-30-2005, 06:48 AM   #1 (permalink)
BattleForums Junior Member
 
Join Date: Aug 2004
Location: alaska
Age: 25
Posts: 106
Mass life drain

ok,i wanna have a hero ability that drains the life of all enemy units around the hero.I want there to be 3 levels,
Level 1)drains 50 life per second for 5 seconds and returns half of 'all' life drained back to hero.
Level 2)drains 100 p/s for 5 secs ''''''''''
Level 3)drains 150 p/s for 5 secs ''''''''''

i have no idea of where to start so please help me from start to finish and provide all importent details.

im not sure how i want the spell to look,but im sure i can figure that out on my own.

Thank You in advance.
Ducati is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 06-01-2005, 01:40 AM   #2 (permalink)
BattleForums Junior Member
 
Join Date: Aug 2004
Location: alaska
Age: 25
Posts: 106
Posting useless crap like this, demanding a reply, will get you nowhere. Avoid it at all costs. Also, it was a double post. Learn a little patience my friend.

-Frank :cool:

Last edited by IceDevil9; 06-01-2005 at 08:00 AM.
Ducati is offline   Reply With Quote
Old 06-01-2005, 07:08 AM   #3 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,282
I can make the trigger for this, but the effects I am not so sure. I'm not sure you can use Fan of Knives as a base with a duration and the lightning effects the same as Life Drain. Either way;

Variables needed:
A Unit Group variable (I'll call it UnitGroup); number of times needed to drain, (I'll call this n).
A region with width and height equal to the spell's area of effect times two. I'll give it a variable name, Region.
A unit variable to store the casting unit (I'll call it Unit).
An integer array for damage (I'll call it Damage).

2 Triggers needed.

Trigger 1
Events:
Generic Unit Event - Unit begins to cast a spell

Conditions:
Spell is equal to (whatever)

Actions:
Region - Move (Region) to (Position of (Casting Unit))
Unit Group - Pick every unit in (Region) and do multiple actions
If ((Distance between (Casting Unit) and (Picked Unit) is (Less than or equal to (range of spell)) and ((Owner of (Picked Unit) is not an ally of (Owner of (Casting Unit))) Then (Add (Picked Unit) to (Region)) Else (Do Nothing)
Set (n) = 0
Set (Unit) = (Casting Unit)
Trigger - Run (Trigger 2)

Trigger 2
Events:
Every (1) seconds of game time

Conditions: None

Actions:
If (Conditions) then do multiple actions else do multiple actions[indent]If - Conditions
(n) is less than 5
Then - Actions
Pick every unit in (UnitGroup) and do multiple actions
Order (Unit) to damage (Picked Unit) for (Damage[(Level of ability for unit (whatever)-1)]) using ... (You finish this)
Set (n) = ((n) + 1)
Else - Actions
Set (Life of (Unit) to ((Life of (Unit) + (Damage[(Level of ability for unit (whatever)-1)] / 2 * (Number of units in (UnitGroup)))
Turn off (this trigger)
*
__________________
* IM IN UR WIKI RVRTING UR EDITS


Last edited by x42bn6; 06-01-2005 at 09:44 AM.
x42bn6 is offline   Reply With Quote
Old 06-01-2005, 02:49 PM   #4 (permalink)
BattleForums Junior Member
 
Join Date: Aug 2004
Location: alaska
Age: 25
Posts: 106
This may sound noobish,but whats a Variables and how do i make one?
Ducati is offline   Reply With Quote
Old 06-02-2005, 06:18 AM   #5 (permalink)
Aya Matsuura is awesome
 
x42bn6's Avatar
 
Join Date: Nov 2002
Location: Trieste, Friuli-Venezia Giulia
Age: 20
Posts: 15,282
Quote:
Originally Posted by Ducati
This may sound noobish,but whats a Variables and how do i make one?
Variables are value 'storehouses' that are used to store values.

In the Trigger Editor, hit the X button on the toolbar.*
__________________
* IM IN UR WIKI RVRTING UR EDITS

x42bn6 is offline   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« New Map Crew | I just hav a question for IceDevil and all the other wc3map guys »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are Off


All times are GMT +1. The time now is 02:42 PM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0