HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Problem with triggered Item Illusions (Panto's Map)

11-13-2008, 10:30 PM#1
Kyrbi0
Ok, I'm trying to trigger an ability (rather, more than one). The abiliti(es) requires a Dummy Caster to cast the spell Item Illusions. But that spell has no Order ID, so it can't be casted.

I then checked one of Panto's test maps (specifically addresses this issue), but when I tried to "rework" it for my usage, it completely failed (once Disabled, would not let itself be re-Enabled.)

Here's my trigger (doesn't work)
Trigger:
Bewilder Code
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Dark Portal (Archimonde)
Collapse Actions
Collapse Unit Group - Pick every unit in (Units within 250.00 of (Target point of ability being cast) matching (((Matching unit) is alive) Equal to True)) and do (Actions)
Collapse Loop - Actions
Unit - Create 1 Dummy Unit for (Owner of (Casting unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
Custom script: call IssueTargetOrderByID( GetLastCreatedUnit(), 852274, GetEnumUnit() )
(I'm pretty sure that the "852274" is the ID order-code-thingy of Item Illusions. At least, that's how it was in Panto's Map.)

If there's any confusion, his map is open for download...
11-14-2008, 03:20 AM#2
Pyrogasm
IssueTargetOrderById, not IssueTargetOrderByID.

Aside from that, I'm not really sure if that will work as intended... It might be that the units don't 'exist' yet when that trigger fires.
11-14-2008, 03:29 AM#3
Kyrbi0
D'oh!

~~~

Huh? First it "enumerates" a buncha units, then "creates" a dummy for each one... How is "enum unit" and "last created unit" not there??
11-14-2008, 03:40 AM#4
Pyrogasm
No, I meant the summoned units.
11-14-2008, 04:03 AM#5
Kyrbi0
Oh. The summoned units are unimportant, though. I chose Dark Portal merely for it's "single-target point" ability, with less fields to mess with. (or was there something else?...)

However, in trying what you said:
Yay: It let itself be re-Enabled
Boo: It still doesn't work. :/
11-14-2008, 04:05 AM#6
Pyrogasm
Oh. For some reason I thought this was related to Army of Darkness, and you were creating illusions of the units...

Edit: what doesn't work now? It should.
11-14-2008, 03:45 PM#7
Kyrbi0
Oh, no. This is for 2 entirely different spells.

One of which is my take (read: GUI :P) on the "Reinforcements" spell originally planned by (some user) on the 2nd Hero Contest. For the same contest, though. Was for THW Race Olympics, but those are over (with 0 submissions. :P :/) The other is for my personal projects; one of my Troll heroes has this spell.

Both of which need a Dummy Caster to cast a mod. Wand of Illusions spell on Picked/Matching target units... Which doesn't seem to want to work.

~~~

Maybe I should use a different base spell?
[[Specifically, I cast the spell right in-between a group of 3 Enemy Footman (should fall under "Pick Every Unit..."), the SFX play (Dark Portal's, unchanged), and a few seconds later... 3 Doom Guards and a Felhound are summoned and start tearing them apart. Funny, but not working as planned. :P]]

--EDIT--

Holy cow, when did you get to be Spells and Development Moderator?! :P
11-15-2008, 05:11 AM#8
Pyrogasm
I've been a moderator since May 2007-ish, but until a few months ago it said "Moderator." Dusk decided to give us all unique titles, and as I am now a moderator of the resource section too (specializing in spells because I, like Dusk, really can't get my head around the "my system is more efficient than this one because of my coding practices" stuff that runs rampant in system/code resources–take timers for instance: I could care less what the fuck a system does as long as it allocates timers for me and lets me attach stuff too them somehow), the title seemed fitting.

How's that for tangential parenthesis?

Can you post your map or link it to me on the pastebin? I think that would be most useful in fixing this up.
11-15-2008, 06:04 PM#9
Kyrbi0
Nah, tangents are one my specialities. :P

Sure, I can post it. Thinking back, though, I only tested it once (*slaps wrist*), so my sincerest apologies if it's something simple like "needs a new test ability" or "has a mana cost". :/
Attached Files
File type: w3x[THW] Team Race Olympics - Kyrbi0.w3x (178.5 KB)