- Joined
- Apr 12, 2013
- Messages
- 11
I have been working on a few features for the last couple of days (as that is when I started map making or even looking at the WorldEditor program) and thought I would share with you all.
Any feedback is good feedback. So comment away.
Basically, I am working on an autocast system for units/heroes/towers/whatever. I have read through a lot of posts and discussions regarding dummy units/abilities/etc. To be honest, I was initially confused as hell about them (however they make a little more sense now).
Anyway, so what I've done to get around all that was to create a dummy ability ("AutoCast"), and then create a bunch of items with spells attached. So the items sit in the inventory slot 1 of whatever unit/hero/tower and then a trigger determines that when the unit is casting "AutoCast" ability (the dummy ability) then to "USE" the item in slot 1 (targeting same target).
This is the trigger basically:
I'll attach a couple of images and a demo test file...
**PS. APOLOGIES IF THIS IS IN THE INCORRECT SECTION, MODS FEEL FREE TO MOVE IT TO CORRECT SECTION IF IT'S IN WRONG ONE. THANKS
Any feedback is good feedback. So comment away.
Basically, I am working on an autocast system for units/heroes/towers/whatever. I have read through a lot of posts and discussions regarding dummy units/abilities/etc. To be honest, I was initially confused as hell about them (however they make a little more sense now).
Anyway, so what I've done to get around all that was to create a dummy ability ("AutoCast"), and then create a bunch of items with spells attached. So the items sit in the inventory slot 1 of whatever unit/hero/tower and then a trigger determines that when the unit is casting "AutoCast" ability (the dummy ability) then to "USE" the item in slot 1 (targeting same target).
This is the trigger basically:
-
UseItem
-
Events
- Unit - A unit owned by Player 1 (Red) Begins casting an ability
-
Conditions
- (Ability being cast) Equal to AutoCast
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Item-class of (Item carried by (Triggering unit) in slot 1)) Equal to Artifact
-
Then - Actions
- Hero - Order (Triggering unit) to use (Item carried by (Triggering unit) in slot 1) on (Target unit of ability being cast)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
I'll attach a couple of images and a demo test file...
**PS. APOLOGIES IF THIS IS IN THE INCORRECT SECTION, MODS FEEL FREE TO MOVE IT TO CORRECT SECTION IF IT'S IN WRONG ONE. THANKS
Attachments
Last edited: