[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 10-09-2008, 04:05 PM   #1 (permalink)
Registered User Greenwhy
Greenwhy
 
Greenwhy's Avatar
 
Join Date: Sep 2007
Posts: 215
Greenwhy has little to show at this moment (39)Greenwhy has little to show at this moment (39)Greenwhy has little to show at this moment (39)Greenwhy has little to show at this moment (39)
cumulative stacking buffs

Such as Viscous Nasal Goo in DotA
Such as Shadow Vulnerability or Sunder Armour in WoW

I will use some arbitrary numbers to help describe what i want to do.


My hero has two abilities:
Curse of Corruption(single targetted) - adds a 5 second debuff to an enemy slowing its attack speed, this debuff should be stackable so as to slow the attack cumulatively.
Tainted Blades (passive) - chance on attack to apply or stack the same debuff as in the above ability.


so you can see the hero has two ways of adding and stacking this debuff which should stack up to 5 times slowing the attack speed by 10% per stack.


What I would really like the spell to do is for each subsequent application of the debuff to refresh the duration just like sunder armour or shadow vulnerability in world of warcraft. IE, if the debuff only has 1 second left but a second stack is applied this will mean a 20% attack speed reduction for 5 more seconds, even though the enemy has already suffered a 10% attack speed reduction for 4 seconds.

I have a reasonably comprehensive knowledge of triggered so feel free to give me complex instructions :)
Greenwhy is offline  
Old 10-09-2008, 07:21 PM   #2 (permalink)
Registered User StaberFire
Actively Inactive
 
StaberFire's Avatar
 
Join Date: Jun 2008
Posts: 793
StaberFire will become famous soon enough (116)StaberFire will become famous soon enough (116)StaberFire will become famous soon enough (116)
This aught to do the trick.

The tainted blades trigger is bugged a little bit, I can't seem to figure out why. It seems to resolve to the first buff a second after the stacked buff is cast, but the stacked buffs still cumulate. maybe you can figure out what's wrong.
Attached Files
File Type: w3x Curse Demo.w3x (17.5 KB, 25 views)
__________________
I have been inactive for the longest time... and I've forgotten how to mod. =(
StaberFire is offline  
Old 10-10-2008, 01:18 AM   #3 (permalink)
Registered User Greenwhy
Greenwhy
 
Greenwhy's Avatar
 
Join Date: Sep 2007
Posts: 215
Greenwhy has little to show at this moment (39)Greenwhy has little to show at this moment (39)Greenwhy has little to show at this moment (39)Greenwhy has little to show at this moment (39)
Thanks, now that I've seen how that system works I think I can create my own without too much trouble. Thanks again.


Just out of curiosity... Why do you use a point variable and set it to a position instead of just referring to the position in the trigger response?

instead of this....

Set temppoint = (Position of (Target unit of ability being cast))
Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at temppoint facing Default building facing degrees

why not just do this?

Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Position of (Target unit of ability being cast)) facing Default building facing degrees
Greenwhy is offline  
Old 10-10-2008, 01:27 AM   #4 (permalink)
Registered User PoZoR
Creator of Mage Siege
 
Join Date: Oct 2008
Posts: 100
PoZoR has little to show at this moment (16)PoZoR has little to show at this moment (16)
so he can use a custom script to remove that point, so that your spell doesnt lag like crazy
PoZoR is offline  
Old 10-10-2008, 01:40 AM   #5 (permalink)
Registered User Vegavak
comprehension √
 
Vegavak's Avatar
 
Join Date: Mar 2006
Posts: 1,015
Vegavak will become famous soon enough (117)Vegavak will become famous soon enough (117)Vegavak will become famous soon enough (117)
Points leak, so you must assign it to a variable and destroy it. Enough leaks will cause major slowdowns or crashes.

I would just use a dummy spell and buff checker trigger to do it.
Vegavak is offline  
Old 10-10-2008, 02:23 AM   #6 (permalink)
Registered User Redeemer59
Pawn and Messiah
 
Redeemer59's Avatar
 
Join Date: Jun 2007
Posts: 582
Redeemer59 is on a distinguished road (88)Redeemer59 is on a distinguished road (88)
Yeah, when you use variables and refer to them it prevents a memory leak. Memory leaks are like empty husks that do nothing but take up space and lag the map (in game, of course) and can't be referred to. One memory leak isn't a big deal, but, say, ten thousand memory leaks...
__________________
Imperial Castle Defense! Current version: 1.22 -- Tell me what you think!
Redeemer59 is offline  
Old 10-10-2008, 04:07 AM   #7 (permalink)
Registered User Greenwhy
Greenwhy
 
Greenwhy's Avatar
 
Join Date: Sep 2007
Posts: 215
Greenwhy has little to show at this moment (39)Greenwhy has little to show at this moment (39)Greenwhy has little to show at this moment (39)Greenwhy has little to show at this moment (39)
I see, this is something I need to get a handle on, my map has many triggered abilities like this which create a dummy unit at a point but I wasn't aware each point that gets referred to is then stored. I'll now replace this in all my triggered abilities, thanks.
Greenwhy 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
stacking buffs based on same buff Softy World Editor Help Zone 8 07-27-2008 07:58 PM
Abilities with stacking buffs. Super-Sheep World Editor Help Zone 2 07-05-2008 05:57 PM
What are Buffs? Ownwithglory World Editor Help Zone 4 03-21-2008 05:20 AM
Stacking Buffs BlazeLancer Triggers & Scripts 4 11-26-2006 06:04 PM
Buffs DevinS Map Development 1 06-01-2006 06:27 AM

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





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