HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Chain Lightning Autocast

05-03-2007, 01:17 AM#1
DarthRevansith
Hi guys. On this thread i´ll post all my "general questions" that appears in the map development. first of all i wanna know how can i make the chain lighting auto-castable. it would be good if the auto-cast only casts the spell if there are 2 or more units in the chain lighting spell area ( non triggered if possible) because this will be a weak fast coldown chain lighting for my corrupted chaman.
thanks^^
05-03-2007, 01:21 AM#2
Earth-Fury
Its impossible to make such a thing without triggers.
you could do a periodic event where you count valid targets in range, then pick one at random.
05-03-2007, 01:26 AM#3
DarthRevansith
ok, thanks, but what about the auto-cast... i need chain lighting to have it... and i can´t find the data to change for it...... the triggers are not that important for now ( but can´t i use the ai editor to make the auto-cast only work for more than 2 units ? )
05-03-2007, 03:08 AM#4
Pyrogasm
You cannot make a spell that is not-autocast autocast without triggers. Period. End of story. There are no object-editor fields to change.

Quote:
chaman.
The word is "shaman".
05-03-2007, 03:10 AM#5
Dil999
You could base it off an autocast ability (Slow, for example) and do this:
A unit starts the effect of an ability
Ability being cast equal to Slow
Create 1 Dummy at position of casting unit
Set level of chain lightning for last created unit to level of slow for triggering unit.
Order last created unit to Orc Far Seer- Chain lightning target uint of ability being cast.
05-03-2007, 12:13 PM#6
denzel94
Ohh leakless (I think)

Trigger:
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to [skill]
Collapse Actions
Set Point = (Position of (Casting Unit))
Unit - Create 1 DummyUnit for (Owner of (Casting Unit)) at Point facing Default facing degrees
Custom Script: call RemoveLocation(udg_Point)
Unit - Set level of Chain Lightning for (Last Created Unit) to (Level of [skill] for (Casting Unit))
Unit - Order Last Created Unit to Orc Far Seer - Chain Lightning (Target Unit of Ability being cast)
Unit - Add a 1 seconds Generic Expiration Timer for Last Created Unit
05-03-2007, 01:05 PM#7
Vexorian
Kind of leakless
05-03-2007, 07:52 PM#8
Panto
This is indeed a trigger-related question, and as such I will move it to the forum that's most likely to provide the best answers.
05-04-2007, 12:12 AM#9
DarthRevansith
Canm someone help me to make it leakless ?? becuase this will be a very used spell by lots of units at same time. and i don´t know how to use this trigger line ( where´s the variable ?? i need to create it, but what kind of variable ?? arrays ?? )Set Point = (Position of (Casting Unit))
05-04-2007, 01:33 AM#10
Dil999
Thats a leak less trigger.. no matter how closely two units attack, they will never be able to mess up a trigger with no waits.
05-04-2007, 01:42 AM#11
DarthRevansith
But at that trigger what kind variable should "point" be ? try to answer me but i´ll only see it tomorrow.... going to be now.... i´ve got to sleep ...... 10:42 PM here in BRAZIL soo cya tomorrow.
05-04-2007, 01:45 AM#12
Pyrogasm
Are you really that thick? I hope not...

"Point" is a Point Variable!
05-04-2007, 05:59 AM#13
denzel94
To identify what variables would be in triggers, they would have this in a Custom Script:

RemoveLocation for Points (so technically, what I was using was a point)
RemoveRect for Regions
DestroyForce for Player Groups (not sure if it leaks)
DestroyGroup for Unit Groups
DestroyLightning for Lightning Effects
DestroyTextTag for Floating Texts (not sure if it leaks)
DestroyTimer for Countdown Timers (not really needed *has an action to destroy*)
05-04-2007, 02:22 PM#14
DarthRevansith
Thanks very much i got it working.... by the way.. you guys forgot something:
Trigger:
bloodlighting
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Blood Lightning
Collapse Actions
Set Pointbloodlightning = (Position of (Casting unit))
Unit - Create 1 DarthRevan dummy for (Owner of (Casting unit)) at Pointbloodlightning facing Default building facing degrees
Custom script: call RemoveLocation(udg_Pointbloodlightning)
Unit - Add blood llightning dummy to (Last created unit) +++++++++++++++++++++
Unit - Set level of blood llightning dummy for (Last created unit) to (Level of Blood Lightning for (Casting unit))
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Target unit of ability being cast)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
it won´t work without it...... and ill rep you denzel, thanks again..

_______


by the way.. is there a way to change the spell model of lighning to a red one ?( i couldn´t edit the post... the page was not loading... sorry )
05-04-2007, 11:37 PM#15
Panto
The field Art - Lightning (or something like that) should allow you to select any of the lightning-like skills' art, including Finger of Death which is red.