HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[GUI] Spell problem

11-13-2008, 01:13 PM#1
rizla
Sup everyone. I'm having a problem with my trigger enhanced spells. I'll give you an example. I'm creating a spell that creates 36 dummy units in a circle around the caster. These dummy's then cast a spell based off of chain lightning, just for the effect (it having no damage etc and only 1 target), at the caster so it looks lke he's draining electricity from the dummy's. The problem comes in when the units are meant to cast the ability. They all spawn fine...

Trigger:
stormsphere
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Storm Sphere
Collapse Actions
Collapse For each (Integer A) from 1 to 36, do (Actions)
Collapse Loop - Actions
Unit - Create 1 stormsphere dummy for (Triggering player) at ((Position of (Triggering unit)) offset by 400.00 towards ((Real((Integer A))) x 10.00) degrees) facing (Position of (Triggering unit))
Unit - Add Storm Sphere to (Last created unit)
Unit - Set level of Storm Sphere for (Last created unit) to 1
Unit - Order (Last created unit) to (Name of Storm Sphere ) (Triggering unit)
Unit - Add a 4.00 second Generic expiration timer to (Last created unit)

This is just an example of a spell so it doesn't get any further than this. I figured I'd better sort this out before I move on. thanks for any help in advance.
11-13-2008, 01:38 PM#2
DioD
there is no problem with code...

expect set level to 1, this string useless.
11-13-2008, 02:00 PM#3
rizla
then I've got no clue whats wrong with this spell. I've tried plenty of other spells using the dummy casting and set it up just like this and they all don't work :-| Depressing. Could anything else be preventing it that I might have overlooked?
11-13-2008, 04:10 PM#4
DioD
post demomap.

it looks like "forgot to null manacost or set proper targets for dummy spell"
11-13-2008, 04:26 PM#5
chobibo
Does the dummy have mana, or does the spell need mana to be casted? Maybe the spell needs mana and your dummies doesn't have any.
11-13-2008, 08:22 PM#6
rizla
Well heres a demo map. Its not the mana because the dummy unit has 1000 mana and the spell requires 0 mana. I have no idea what could be wrong with the properties of the ability or the dummy. I've checked a couple of times.
Might have missed something.
Attached Files
File type: w3xdemo.w3x (13.2 KB)
11-14-2008, 03:22 AM#7
Pyrogasm
This line doesn't make any sense:
Trigger:
Unit - Order (Last created unit) to (Name of Storm Sphere ) (Triggering unit)
It should be:
Trigger:
Unit - Order (Last created unit) to (Chain Lightning) (Triggering unit)
11-14-2008, 10:49 AM#8
DioD
looks like you are using UMSWE...

check comments for functions next time.

orders takes orders, not spell names.
Trigger:
Storm Sphere
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to (==) Storm sphere
Collapse Actions
Collapse Do Multiple ActionsFor each (Integer A) from 1 to 36, do (Actions)
Collapse Loop - Actions
Unit - Create 1 Dummy for Player 1 (Red) at ((Position of (Triggering unit)) offset by 400.00 towards ((Real((Integer A))) x 10.00) degrees) facing (Position of (Triggering unit))
Unit - Add Lightning to (Last created unit)
Unit - Order (Last created unit) to chainlightning (Triggering unit)
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
11-14-2008, 11:27 AM#9
rizla
Sorry that was a mistake on my part. Its changed in the demo map and it still won't work pyrogasm.
I'm using WeU. Is it not possible to use "unit - issue order targetting a unit (takes string)" and then pick ability name. This way you can set it to cast a custom ability... Like I've done.

If not how would I go about ordering the dummy unit to cast a custom spell.
11-14-2008, 11:42 AM#10
DioD
there is list of all orderstring in GUI...
Attached Images
File type: jpg123.JPG (62.3 KB)
11-14-2008, 11:49 AM#11
rizla
so the way I'm understanding this is that the only way to order a dummy unit to cast an abiltiy, custom or not, is to use those preset order strings? that sucks. So in order for me to order the dummy to cast my custom chain lightning derivative i would have to give it the chain lightning order ID for example and then select the orc - chain lightning preset?
11-14-2008, 11:52 AM#12
DioD
all spells based of chain lightning cast by "chainlightning" order.

this is simple.
11-14-2008, 12:00 PM#13
rizla
It may be simple but it confuses me.

Just tested it and it works, I don't understand how this can work with order ID's and all that crap but that just might be my preconcieved idea getting in the way. Thanks a lot DioD.
+rep