(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Recycle Bin > Recycle Bin

Recycle Bin Don't be offended by the name. This is where we put everything that randomly appears around the forums.

 
 
LinkBack Thread Tools Display Modes
Old 08-31-2008, 05:08 PM   #1 (permalink)
 
Vicboy's Avatar

Banñed & Inactive
 
Join Date: Aug 2007
Posts: 890

Vicboy has little to show at this moment (39)Vicboy has little to show at this moment (39)Vicboy has little to show at this moment (39)Vicboy has little to show at this moment (39)


What is wrong with this simple trigger...

Spontaneous Combustion
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to (==) Spontaneous Combustion
Actions
Unit Group - Add (Target unit of ability being cast) to spontaneouscombustionunitgroup[(Player number of (Owner of (Casting unit)))]
Spontaneous Combustion Die
Events
Unit - A unit Dies
Conditions
Actions
Do Multiple ActionsFor each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Dying unit) is in spontaneouscombustionunitgroup[(Integer A)]) Equal to (==) True
Then - Actions
Unit - Remove Spontaneous Combustion buff from (Dying unit)
Set dyingunitpoint = (Position of (Dying unit))
Set spontaneouscombustionunitrange = (Units within 250.00 of dyingunitpoint matching (((Matching unit) belongs to an enemy of (Player((Integer A)))) Equal to (==) True))
Special Effect - Create a special effect at dyingunitpoint using Abilities\Spells\Orc\AncestralSpirit\AncestralSpiritCaster.mdl
Special Effect - Destroy (Last created special effect)
Unit Group - Pick every unit in spontaneouscombustionunitrange and do (Actions)
Loop - Actions
Unit - Cause hero[(Integer A)] to damage (Picked unit), dealing (50.00 x (Real((Level of Spontaneous Combustion for hero[(Integer A)])))) damage of attack type Spells and damage type Normal
Point - Remove dyingunitpoint
Unit Group - Destroy unit group spontaneouscombustionunitrange
Else - Actions

Its suppose to:

Put unit in a unit group in an array number of the casting unit's
When a unit dies, it will see if the dying unit is in any of the groups
If it is, special effects and units within range takes damage
There...
Vicboy is offline  
 

Bookmarks

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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Trigger] What's wrong with this trigger kevv2 Triggers & Scripts 10 06-11-2008 03:26 PM
[Trigger] what is wrong with this trigger Gallin Triggers & Scripts 10 01-02-2008 12:36 AM
[Trigger] Simple simple tower trigger sk8er754 Triggers & Scripts 2 10-31-2007 02:16 AM
What is wrong with this trigger ? operator World Editor Help Zone 9 12-24-2006 10:48 PM
[JASS] PLLZZZ HELP "a simple trigger" whats wrong? HAPKOMAH2004 Triggers & Scripts 7 05-11-2006 03:17 PM

All times are GMT. The time now is 07:15 AM.






Your link here 
Personal Loans | Free Gift Registry - AGiftWish.com | Loans | Loans | Credit Counseling
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle