| 02-05-2004, 07:00 PM | #1 |
I'm working on a dota style map with alot of custom spells, i tend 2 go abit over my head alot of the time and get stuck with alot of spells, just curious if any1 wants 2 help. I'll post some spells where i've hit a wall.. if u could make the spells or simply give some advise thats fine. Justice - When an offensive spell is cast on the hero e.g. stormbolt an equal amount of damage is done to the caster, some kind of *feedback* animation would be appropiate. (only offensive spells) Word of Wilding - Summons a bear, each level u get 1 extra bear. B4 the bear(s) are summoned the amount of friendly dead bodies are counted also if possible the levels of the units that died, maybe a multiplicaion. E.g. 5 bodies, of which there levels are 1/2/3/4/5 = 15 So 15/5 = 3 So a level 3 bear(s) would be summoned (could simply replace the unit summoned). Death Pulse - Summons a black ball, however the way u cast the spell is similiar to dispell. All friendly units under the circle die. Again number of units times there levels is taken into account. Then a Ball is summoned depending on the outcome. Each level could increase radius. Plagiarize - Cast on a unit - u temporarily gain a random ability from him (normal ability), after a while it wears off |
| 02-05-2004, 07:03 PM | #2 |
I believe Linkmaster23 created a custom trigger-spell thread. Try posting there. |
| 02-05-2004, 07:05 PM | #3 |
I did:D Its just people pick spells they like, i'm fine if some1 just gives me advice or help. |
| 02-05-2004, 11:01 PM | #4 |
I had a go at Word of wilding ------ Unit - A unit Begins casting an ability (Ability being cast) Equal to Feral Spirit Unit Group - Pick every unit in (Units within 250.00 of (Position of (Casting unit))) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Picked unit) belongs to an ally of (Owner of (Casting unit))) Equal to True ((Triggering unit) is dead) Equal to True Then - Actions Unit Group - Add (Picked unit) to WordsofWilding Set WordsAmount = (Number of units in WordsofWilding) Set WordsLevel = (Point-value of (Picked unit)) Set WordsTotal = (WordsLevel / WordsAmount) Else - Actions Do nothing I do not know how 2 count the added levels of all the picked units/unit group. Once i could do that WordsLevel would be a proper value. Next i'd some how round off WordsTotal. Then when feral spirit is cast if WordsTotal = 6-10 replace spawned units with lvl2 wolfs = 11-15 replace spawned units with lvl3 wolfs = 16-20 replace spawned units with lvl4 wolfs etc. etc. |
| 02-06-2004, 05:44 AM | #5 |
Well, first, create an array for the Wardtype at Map Init. then: E: Unit - A unit Begins casting an ability C: (Ability being cast) Equal to Feral Spirit A: Set WordsAmount = 0 Set WordsTotalLevel = 0 Unit Group - Pick every unit in (Units within 250.00 of (Position of (Casting unit))) and do (Actions) Loop - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Picked unit) belongs to an ally of (Owner of (Casting unit))) Equal to True ((Picked unit) is dead) Equal to True Then - Actions Remove Picked unit Set WordsAmount = WordsAmount + 1 Set WordsTotalLevel = WordsTotalLevel + (Level of (Picked unit)) Else - Actions Do nothing //Create Bears in ( WordsAmount / 5 ) Level //Add expiraton timer for last created group |
