(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Reply
 
LinkBack Thread Tools Display Modes
Old 11-21-2008, 04:50 AM   #1 (permalink)

User
 
Join Date: Apr 2006
Posts: 16

Wurmspawn is an unknown quantity at this point (0)


Casting Abilities on Random Targets....

I tried to check over the previous posts but nothing caught my eye that might help. I am currently trying to create an ability that triggers through the casting of a Frost Bolt. Basically, the ability works as such, once the target has been cast upon the trigger (or triggers) relating to it gerenates a region around that target. Then, using a dummy, other Frost Bolts are then fired at random enemies that happen to be in that region. My problem is trying to make the built in trigger system recognize the freshly generated region. Again this isn't meant to refer to a premade region on the map. I'm trying to make and remake a sizable region around the target of the spell each time it's cast. I hope this isn't confusing. And I'm hoping someone else can give me some pointers on getting it to work. Thank you in advance.
__________________
"In advance, please excuse anything I happen to say that might be misconstrued as offensive as I slowly go NUTS!" -Col. Jack O'Neill
Wurmspawn is offline   Reply With Quote
Old 11-21-2008, 05:09 AM   #2 (permalink)
 
Big Dub's Avatar

AegisFang@USWest
 
Join Date: Aug 2007
Posts: 432

Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)


Haha, you've got the right idea, your just going about it wrong.
bleh
Events
Conditions
Actions
Unit Group - Remove all units from FrostGroup01
Unit Group - Pick every unit in (Units within 512.00 of (Position of (Target unit of ability being cast)) matching (((Owner of (Matching unit)) is an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
Loop - Actions
Unit Group - Add (Picked unit) to FrostGroup01
For each (Integer A) from 1 to 10, do (Actions)
Loop - Actions
Unit - Create 1 Infantry for (Owner of (Casting unit)) at (Position of (Targeted unit)) facing Default building facing degrees
Unit - Order (Last created unit) to Neutral - Firebolt (Random unit from FrostGroup01)
Wait 0.01 game-time seconds
Unit - Remove (Last created unit) from the game
Unit Group - Remove all units from FrostGroup01

That one will allow for targets to be hit multiple times, dont have time, gtg, gl
__________________
Please remember to give reputation peoples!
If you use my resources in a game give credits to AegisFang@USWest
Really Cool Stuff!
Get your Starcraft 2 resources here!
Big Dub is offline   Reply With Quote
Old 11-21-2008, 06:51 AM   #3 (permalink)
 
Day-Elven's Avatar

User
 
Join Date: Apr 2008
Posts: 347

Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)Day-Elven has little to show at this moment (39)


1. You don't need to clear FrostGroup01 twice.
2. You leak at Position of Target unit of ability being cast
3. In the loop 1st line: create it not at the position of Targeted unit but at the position of Triggering unit.
Day-Elven is offline   Reply With Quote
Old 11-21-2008, 01:06 PM   #4 (permalink)

User
 
Join Date: Apr 2006
Posts: 16

Wurmspawn is an unknown quantity at this point (0)


Thank you both Big Dub and Day-Elven. Ultimately I had to increase the wait time to let the dummy have enough time to use the ability, but that shouldn't be of any consequence even if I use more than one dummy later on as the skill gets stronger because I can use the same unit group (after clearing it) to select the unit type of the dummies around the cast to remove them from the map. Thanks again.
__________________
"In advance, please excuse anything I happen to say that might be misconstrued as offensive as I slowly go NUTS!" -Col. Jack O'Neill
Wurmspawn is offline   Reply With Quote
Old 11-22-2008, 01:44 AM   #5 (permalink)
 
Big Dub's Avatar

AegisFang@USWest
 
Join Date: Aug 2007
Posts: 432

Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)Big Dub has little to show at this moment (20)


Day-Elven you are correct, You dont need to clear it twice, it was simply a precausion that was not needed. BUT! I think it would look cooler if you did make the next frost attack from the person who got hit, as I said I did not have time and could not explain it all the way. Im not so good at covering leaks, so yea listen to him on that one.

You have the right idea with the dummies, and increasing the wait could get very annoying with alot of dummie. I would prefer to do it like you say, putting them into a group then deleting them afterwards. I didnt have time last night. And make sure you get ALL the dummies, they have a strange way of staying there. Just to make sure you dont drive players mad, give the dummy units 0 sight radius and make them dont appear on mini map, just in case. Its so annoying.
__________________
Please remember to give reputation peoples!
If you use my resources in a game give credits to AegisFang@USWest
Really Cool Stuff!
Get your Starcraft 2 resources here!
Big Dub is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] Creating a unit (arrow) infront of casting unit facing angle the same as casting unit pikachux4 World Editor Help Zone 2 10-05-2008 06:23 AM
[Solved] Truly Random Events [creating a building at random point] H.o.t.Carl World Editor Help Zone 2 08-12-2008 07:13 AM
Targets Allowed Malkav04 World Editor Help Zone 6 06-16-2008 08:30 PM
[AI] Priority Targets Desitine Triggers & Scripts 2 02-15-2008 08:01 AM
Question about spellbook abilities and normal abilities The_wand_mirror World Editor Help Zone 7 11-25-2007 01:09 PM

All times are GMT. The time now is 06:33 AM.






Your link here 
Travel Shop | Fast Loans | Ringtones | Loans | Credit Cards
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle