[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > World Editor Help Zone


World Editor Help Zone Ask general questions about World Editor features and use in this forum. If you need help fixing a trigger, please post it in Triggers & Scripts. Please review the forum rules before posting.

Closed Thread
 
Thread Tools
Old 06-01-2009, 12:38 AM   #1 (permalink)
Registered User Knightmawk
User
 
Join Date: Apr 2008
Posts: 56
Knightmawk is an unknown quantity at this point (0)
Please help with spawning spell

I want to make a spell, similar to dark arrow, that spawns a unit from a killed one. Except in this case I don't want to make it a spell that autocasts, I want to make it an ability that has a percentage of happening, like has a 15% chance to spawn unit x from killed unit.

Is there a way I can do this without triggers? and if not, how do I do it with triggers?

I know this same thread is up already but I accidently posted it as solved last time
Knightmawk is offline  
Old 06-01-2009, 01:23 AM   #2 (permalink)
Registered User Dr Super Good
Imperial Good
 
Dr Super Good's Avatar
 
Join Date: Jan 2005
Posts: 15,278
Dr Super Good has been here far too long (2650)Dr Super Good has been here far too long (2650)Dr Super Good has been here far too long (2650)Dr Super Good has been here far too long (2650)Dr Super Good has been here far too long (2650)Dr Super Good has been here far too long (2650)
Merit Badge - Level 0: This user has proven to be extremely valuable to the Warcraft III Modding Community. User of the Year: 2010 
Describe exactly what this spell must do?

If its basically a target spell with % chance to spawn on death, then use triggers to deal the damage. If the damage was fatal (unit is dead after dealing damage) then do your random % statment (if random integer between 0 and 99 < 15) and if that passes then create a minion, if not then do nothing.

That is if the spell you want deals a large sum of damage and on killing does that. If you mean the unit is cursed for X seconds with that curse to spawn a minion on death, then something else is needed.

Like I said, you need to be more clear as dark arrow does not spawn a unit from a killed one, it spawns a unit from a unit that dies to it.
Dr Super Good is offline  
Old 06-01-2009, 01:51 AM   #3 (permalink)
Registered User dansaDisco
Account Disabled
 
dansaDisco's Avatar
 
Join Date: Jun 2008
Posts: 990
dansaDisco is a jewel in the rough (251)dansaDisco is a jewel in the rough (251)dansaDisco is a jewel in the rough (251)dansaDisco is a jewel in the rough (251)
Hosted Project of the Year - 2009: Diablo III Warcraft 
Hai.

I made this in a minute, I believe it's what you're asking for?
Attached Files
File Type: w3x Undead Blow.w3x (18.6 KB, 13 views)
dansaDisco is offline  
Old 06-01-2009, 02:05 AM   #4 (permalink)
Registered User Coolty44
Nevar guna give u up!
 
Coolty44's Avatar
 
Join Date: Dec 2008
Posts: 622
Coolty44 will become famous soon enough (116)Coolty44 will become famous soon enough (116)Coolty44 will become famous soon enough (116)
I think this is what you want, I didnt test it, but it should work. Just take the ability Sphere, change its values, give it some icons, and set the Buff field to Black Arrow. It should work, if it doesn't ,tell me and I'll figure out why.

Dark Arrow
Events
Unit - A unit Dies
Conditions
((Triggering unit) has buff Black Arrow) Equal to True
Actions
Set ArrowChance = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ArrowChance Less than or equal to 15
Then - Actions
Set UnitLoc = (Position of (Attacked unit))
Unit - Create 1 Footman for (Owner of (Attacking unit)) at UnitLoc facing Default building facing degrees
Custom script: call RemoveLocation(udg_UnitLoc)
Else - Actions
Set ArrowChance = 0

Hopefully it works, I'll keep the trigger around just incase.
Coolty44 is offline  
Old 06-01-2009, 02:08 AM   #5 (permalink)
Registered User dansaDisco
Account Disabled
 
dansaDisco's Avatar
 
Join Date: Jun 2008
Posts: 990
dansaDisco is a jewel in the rough (251)dansaDisco is a jewel in the rough (251)dansaDisco is a jewel in the rough (251)dansaDisco is a jewel in the rough (251)
Hosted Project of the Year - 2009: Diablo III Warcraft 
Lol, that's pretty much exactly my system, except mine has levels and special effects :p

btw you don't have to reset ArrowChance.

It's set to a new value the next time trigger runs Oo
dansaDisco is offline  
Old 06-01-2009, 02:11 AM   #6 (permalink)
Registered User Coolty44
Nevar guna give u up!
 
Coolty44's Avatar
 
Join Date: Dec 2008
Posts: 622
Coolty44 will become famous soon enough (116)Coolty44 will become famous soon enough (116)Coolty44 will become famous soon enough (116)
Meh, All I'd need to do is maybe change 2-3 lines at the most for level, and the arrow effects come from the ability its basd on, thank god for an ability that does nothing but effects
Coolty44 is offline  
Old 06-01-2009, 02:42 AM   #7 (permalink)
Registered User Dr Super Good
Imperial Good
 
Dr Super Good's Avatar
 
Join Date: Jan 2005
Posts: 15,278
Dr Super Good has been here far too long (2650)Dr Super Good has been here far too long (2650)Dr Super Good has been here far too long (2650)Dr Super Good has been here far too long (2650)Dr Super Good has been here far too long (2650)Dr Super Good has been here far too long (2650)
Merit Badge - Level 0: This user has proven to be extremely valuable to the Warcraft III Modding Community. User of the Year: 2010 
Dieing units do not have buffs.... So I have no clue how your triggers are meant to work...
Dr Super Good is offline  
Old 06-01-2009, 02:45 AM   #8 (permalink)
Registered User dansaDisco
Account Disabled
 
dansaDisco's Avatar
 
Join Date: Jun 2008
Posts: 990
dansaDisco is a jewel in the rough (251)dansaDisco is a jewel in the rough (251)dansaDisco is a jewel in the rough (251)dansaDisco is a jewel in the rough (251)
Hosted Project of the Year - 2009: Diablo III Warcraft 
I think it's meant to be "killing unit", not triggering.

Mine works. i tested it :P
dansaDisco is offline  
Old 06-01-2009, 09:42 AM   #9 (permalink)
Registered User UreDe4D
valiant little mapper
 
UreDe4D's Avatar
 
Join Date: Nov 2006
Posts: 908
UreDe4D will become famous soon enough (102)UreDe4D will become famous soon enough (102)UreDe4D will become famous soon enough (102)
if you use killing unit, i would base the buff off an aura (with target self only) with no effects, probably the easiest thing to do, although sphere should work too
__________________
Hear the bombs falling
The devil is calling
The godly creation
In obliteration
On your final hour
Experience the power
Of retaliation
Death and domination
UreDe4D is offline  
Closed Thread

Bookmarks

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help spawning units {spawning a unit every 30 seconds depending on a building} ilikeorcs World Editor Help Zone 6 02-22-2009 08:17 PM
[Trigger] Spawning bigDino Triggers & Scripts 2 02-26-2008 03:36 AM
[JASS] Help with spawning AussieLauren Triggers & Scripts 9 08-01-2007 03:30 AM
Spawning Obelisk Map Development 2 03-23-2006 03:32 PM
:/ Spawning forceflow Map Development 3 07-31-2005 09:31 PM

All times are GMT. The time now is 10:45 PM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle