Looking for a little help around an idea for this.
If a player is attacked , X attack needs to be to have a random chance for it to leave a debuff. The behavior that is left on the attacked target has to have a random chance to spread to another target if in x range every so often if they are in range.
I wouldn't do this via Triggers. You can do this completely with Data. If you make an Ability with effect you can set the "chance" to be between 0 and 1 for percentages. I haven't been in the editor in a while I think its just called chance. But then that will apply a behavior which will do the damage or debuff or whatever you want. But, you'll also need to add a periodic effect to call a search effect which will search for nearby units to then apply the "virus" to another unit. I'm not sure if I explained that well. But that's how you should do it.
I played around with it. I haven't tested it yet because I have to go soon. However, I did it with 2 effects and 1 behavior. If you don't want it in an ability, simply add the "initial"effect to the weapon of the unit you want to use. You can also play around with the period durations and search area sizes and damage and icons to match your tastes, or recreate this on your own so you learn.
You can check the tutorial page in my signature, I've fixed a lot of the links so they work. Has a lot of basic concept stuff. Edit: oh the guy above me posted the same link.
Also, I'd add some actors to this disease thing to make it noticeable and look cool. Maybe a Zerg acid or something.
After looking into it seriously, I found out its minor things to fix the links to the tutorials. These are the links that are broken on the tutorials page.
oh lol that link is extremely broken :( thats a shame... however, that guy just hasnt been on to fix his stuff. If you want to access any of those links, simply move the forums.sc2mapster to sc2mapster.com/forums. The stuff you're having issues with is probably the same.
The issue is that they updated the site a few years ago and made it so that forums. is actually .com/forums so anything that is in that format like static probably is the same.
So no idea if this was solved but off the top of my head I don't think it would be super hard to do:
First create a behavior of type buff (infectious), this will be the buff that makes a unit contagious. In a behavior there is an option for period and periodic effect, period = the interval at which the periodic effect happens. We want that periodic effect to search the area for possible victims to infect.
So then we create an effect of type search area (Search for Victims). Open the area field, click the + button and set how big you want the search radius to be, maybe like 2-6. The effect field says what effect will happen to targets found. So,
Create a new effect of type apply behavior (Infect) set the behavior it applies to (infectious) if you want victims to spread the virus too, if not you'll need a separate behavior.
Now we need to go back and connect them, so for (infectious) set the period effect to (Search for Victims). In (Search for Victims) go into the area field and set the effect there to (infect).
All that is left to get this working is to set up the chance of infecting people over time. The period field in (infectious) says how often it searches, I would set this to about .25, I think this means every quarter of a game second it will search. You can then either set the chance field in (infect) or (search for victims). Using infect will give each unit an independent chance of being infect, using search for victims will mean they are all either infected or not. I'd set the field in infect. You could make it like 2.5% or 0.025 X 4 times per second = 10% chance per second of any unit in range being infected.
For the initial infection attack
Not at editor atm but my thinking is you'll need to create an effect that has a random chance of infecting that fires along side the weapons regular damage, so:
Create an effect of type apply behavior (Initial infect) give it whatever chance you want of it infecting the unit per attack in the chance field, set the behavior it applies to (infectious)
Create an effect of type set (Poison attack set) and add the (initial infect) effect as well as your weapon damage to the effects field.
Go to your weapon, set the effect to (Poison attack set) now any attack will damage and have a chance to infect the victim.
Looking for a little help around an idea for this.
If a player is attacked , X attack needs to be to have a random chance for it to leave a debuff. The behavior that is left on the attacked target has to have a random chance to spread to another target if in x range every so often if they are in range.
If a mod sees this move to data please.
@iMisu: Go
I wouldn't do this via Triggers. You can do this completely with Data. If you make an Ability with effect you can set the "chance" to be between 0 and 1 for percentages. I haven't been in the editor in a while I think its just called chance. But then that will apply a behavior which will do the damage or debuff or whatever you want. But, you'll also need to add a periodic effect to call a search effect which will search for nearby units to then apply the "virus" to another unit. I'm not sure if I explained that well. But that's how you should do it.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
I understand the chance effect and could do that on my own but the search effect that periodically checks units around I could not do without help
I played around with it. I haven't tested it yet because I have to go soon. However, I did it with 2 effects and 1 behavior. If you don't want it in an ability, simply add the "initial"effect to the weapon of the unit you want to use. You can also play around with the period durations and search area sizes and damage and icons to match your tastes, or recreate this on your own so you learn.
Hope this helped.
Edit: the ability is called Spread Virus
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
I will take a look at these thank you.
I would have used this tutorial...
http://www.sc2mapster.com/forums/resources/tutorials/1800-data-add-effect-to-your-units-attack/
but there is alot of broken tutorials now on the tutorials page....
Did you go here?
http://wiki.sc2mapster.com/Tutorials
You can check the tutorial page in my signature, I've fixed a lot of the links so they work. Has a lot of basic concept stuff. Edit: oh the guy above me posted the same link.
Also, I'd add some actors to this disease thing to make it noticeable and look cool. Maybe a Zerg acid or something.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
Yes some tutorials on that page are broken.
Which ones specifically? I swear I fixed a lot of them so that they dont give "page not found" anymore
or do you just mean the tutorial itself is missing pictures and stuff cause that i cant fix
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
After looking into it seriously, I found out its minor things to fix the links to the tutorials. These are the links that are broken on the tutorials page.
http://www.sc2mapster.com/forums/resources/tutorials/11851-data-introduction-to-ability-creation/Introduction
The Fix - The word introduction needs to be removed from the end
http://www.sc2mapster.com/forums/resources/tutorials/22272-data-actor-range-indicators-the-best-way/Selected
The Fix - Remove Selected from the end
Also the assets link in your footer Fishy, extremely broken lol.
Since we are so grossly off topic now what is the format for content that was attached?
http://static.sc2mapster.com/content/attachments/x/x/x/x/x/x/x Is incorrect
I'd like to fix this
http://www.sc2mapster.com/assets/hd-starcraft-2-cursors/
oh lol that link is extremely broken :( thats a shame... however, that guy just hasnt been on to fix his stuff. If you want to access any of those links, simply move the forums.sc2mapster to sc2mapster.com/forums. The stuff you're having issues with is probably the same.
The issue is that they updated the site a few years ago and made it so that forums. is actually .com/forums so anything that is in that format like static probably is the same.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
For the virus
So no idea if this was solved but off the top of my head I don't think it would be super hard to do:
First create a behavior of type buff (infectious), this will be the buff that makes a unit contagious. In a behavior there is an option for period and periodic effect, period = the interval at which the periodic effect happens. We want that periodic effect to search the area for possible victims to infect.
So then we create an effect of type search area (Search for Victims). Open the area field, click the + button and set how big you want the search radius to be, maybe like 2-6. The effect field says what effect will happen to targets found. So,
Create a new effect of type apply behavior (Infect) set the behavior it applies to (infectious) if you want victims to spread the virus too, if not you'll need a separate behavior.
Now we need to go back and connect them, so for (infectious) set the period effect to (Search for Victims). In (Search for Victims) go into the area field and set the effect there to (infect).
All that is left to get this working is to set up the chance of infecting people over time. The period field in (infectious) says how often it searches, I would set this to about .25, I think this means every quarter of a game second it will search. You can then either set the chance field in (infect) or (search for victims). Using infect will give each unit an independent chance of being infect, using search for victims will mean they are all either infected or not. I'd set the field in infect. You could make it like 2.5% or 0.025 X 4 times per second = 10% chance per second of any unit in range being infected.
For the initial infection attack
Not at editor atm but my thinking is you'll need to create an effect that has a random chance of infecting that fires along side the weapons regular damage, so:
Create an effect of type apply behavior (Initial infect) give it whatever chance you want of it infecting the unit per attack in the chance field, set the behavior it applies to (infectious)
Create an effect of type set (Poison attack set) and add the (initial infect) effect as well as your weapon damage to the effects field.
Go to your weapon, set the effect to (Poison attack set) now any attack will damage and have a chance to infect the victim.
So we are talking about broken links that are like a virus for mapster right?