Stacking Attack Bonus

B

Betray

Guest
I am trying to add an attack bonus to a unit each time an ability is used. I can make it so the bonus is added to the unit when the ability is used the first time but every time after that it does nothing.. it doesn't stack.. Any suggestions?

Also, the unit I am trying to add the attack bonus to is a tower not a unit or hero. I tried the Give Item to Triggering Unit but it is a hero function and the item just gets dropped to the ground beside the tower and the tower cannot pick it up.
 
I gave it a short look, and... uhhh... it is kind of complicated.
As far as Ive seen there is no ability that does something like this the easy way.
Though there is an advanced trigger in WEU (World editor unlimited) that lets you manipulate the amount of damage a unit does. So you could probably make a dummy ability, and make triggers that would increase the damage of the target of that ability by some amount, whenever the ability was cast...

There just might be more simple solution, but I havent figured it out yet... Havent had much time to play with this, but Ill try some different aproaches little bit later.
 
Well

Thats basically what I was expecting..

Right now I have Sacrifice as the dummy ability so that it kills
another tower and then gives the unit a unit ability of +2 attack
damage bonus.. problem is it doesn't stack each time you cast so
it just stays at the +2.. so if there is a trigger that will directly add
to the attack damage a variable may be possible.. but hmm how
would i split it up to only effect one tower.. if you have 2 of the
sacrificing towers then if the first tower sacrifices 5 times and
gains +10 then a second tower does it it will go by the variable
and increase that tower to +12 instead of just +2.. hmm

Guess I would have to create another variable array of some sort
that is set for each of that type of tower that is created?
 
Well if you decided to use the WEU trigger... than this really would be a problem. You wouldnt be using any variables, just a dummy ability and a trigger.
The trgger would look something like this:

Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Sacrifice
Actions
Advanced - Start the spell enhancer
Advanced - For (Triggering unit) Increase damage by 2
 
I see

That trigger looks like it will work to me..

..but what is the spell enhancer?
 
Just an action you must include t run the next action correctly...
 
Not working..

Okay this is my exact trigger..

Event:
A unit begins casting an ability

Condition:
Ability being cast - Advanced dummyspell (purge)
and
(Owner of Targeted unit of ability being cast) equal to
(Owner of unit casting ability)

Action:
Start the spell enhancer
Unit - kill (target unit of ability being cast)
Advanced - For (Casting Unit) Increase Damage by 2

When I go into the game and use the ability it kills the unit I cast
it on but it does not add the +2 damage.
I tried chaning it to Triggering Unit.. that didn't do anything..
Am I missing something obvious?
 
Can you upload a small example map... it would really save my time
 
Here is the map

Alright I think I included everything you need in this..
 
Ok, ok my bad... I forgot to tell you that in WEU, in order for the advanced triggers to work, you need an "Advanced - Initialize advanced triggers" at map initalization.

Heres the map:
 

Attachments

  • testing map.w3x
    386.2 KB · Views: 184
Problems that just won't quit

Alright, upon making those changes it seemed that everything was working.. I put it in the map and went in and cast the ability on like 3 of the other towers and it stacked great.. then the first round of creeps spawned and my computer crashed... and again when I restarted and tried again..

It did not do this before I changed the map into WEU and added these towers/abilities/trigger so any ideas as to what is going on and how I can fix this?

Something I noticed.. the file size of the map is 1,011k which seems high as all the other maps on the list were around 125-200k could this have anything to do with the problem??
 
About the map size, WEU adds about 150-200 kb to your map, because it has to include all the advanced triggers and variables that come with them, to your map. But this isnt the thing you should be focusing on right now...

Since there can be dozens of reasons for that map crash, I really cant give you a clear answer. So I guess it would be best if you sent me the map, for me to take a look at it... if you`re confortable with that.
Heh belive me Im really not someone whos gona try to steal your map or host it on BNet.

So if you think its wise :p , my mail is [email protected]
 
Ok man, the good news is your dummy ability wasnt the real problem, so I think you'll be able to use it...
The bad news is that your spawn triggers are soooo very, very messed up :p . They are way to complicated for me to figure out on first glance, but its obvious that they are the problem, since you spawn all the waves at once, and do it over n over again... ups

The map you sent me just froze when the first wave got spawned, so I put a small 0.1 wait between the spawning of creeps in different regions. It helped just enough, for the game not to freeze, but to run 1 frame per 3 seconds hehe... and this is where I figured out what was happening.
The regions were getting filled with orcs, dragons, murlocks... lol...
and once they spawned most of em died right away (I mean there was just no space to fit em all lol)

So man I guess its back to creep spawn triggers for you hehe...
I mean I would really like to help... ehhh... if I wasnt... uhhh...
OH DAMN I just dont feel like it after seeing those spawn triggers.
ke ke ke :p ;)

So Ill send you the map, if you want to see the creep spawn/die ritual... but basicly all you need to do to attend it is to put a 0.1 wait between the creep spawning in different rects...

Good luck man, lol :D
 
hmm

Interesting.. it's not really my map.. I was just working on this on tower for my clan leader.. No idea what he may have done with the spawning.. I thought he just was modifying the wintermaul map I didn't think he changed the spawning at all..

Oh well, sounds like a problem I can pass on..

Wasn't my fault! heh
 
???

We didn't change anything with the spawn triggers.. it's the wintermaul map.. what exactly was happening when they spawned?? I think you are saying all the levels were spawning at the same time instead of spawning each level??
 
Yup... they all spawned, n died, n spawned,n died....

If I were in ur place, i would completely redo the spawn triggers.
Even if they worked the way they were supposed to sometime back, they r sooo very messed up now. I know its a lot of work, but since you already have all the waves set up, it wont be too hard to do.
And yes, just to be sure I made mysefl clear before...
Using the spellenhancer takes up a bit more memory n processor capacity. So if u plan to keep it in ur map, you really must have a smooth code for spawning...
Some tips:
-When you spawn the next wave, never ever spawn all the monsters at once. It causes great lag, and for some lower end comps, even disconnect... So if you for example have 100 creeps,
spawn 10, then wait 0.1 sec n spaw the next 10... do this till you spawn em all. You dont need to stick with 10 creeps, you can go with 20 or 25. The best way would be to experiment, n see what works best.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    It's actually remarkably easy to make mayonnaise though. Fun fact, it USED to kind of be a French mother sauce. I believe that Careme considered it one, it may have been aioli but that has also built a different meaning than it used to. An aioli is just mayonnaise I mixed with other shit typically, I didn't start it don't come at me
  • Varine Varine:
    It's very hard to do it on a large scale though
  • Varine Varine:
    Depending on how you pour the oil the consistency can vary wildly, but that's true for most emulsions. I can only make about two quarts at a time with my robo coup, and if I have to make several in series because I forgot to order it becomes really obvious even when I do it. We have to wait and mix them all together to make sure we have the same thing.
  • Varine Varine:
    Hollandaise is also kind of like that, emulsions require a very steady hand to do exactly the same every time.
  • Varine Varine:
    Luckily I live in an age with electricity so it's way fucking faster, but when I was just a boy trying to find my place I had some hardcore chefs that made use do things like that by hand. It is WAY easier to get right by hand because you control it and can feel it, but it takes soooooo much longer. And on the scale a modern kitchen requires... I serve 400-500 guests on average per day right now, if I had 100 then we could do things way better
  • Varine Varine:
    But we can't do that. In the winter yeah, but I HAVE to get people through here right now so I can afford the staff that we CAN do that. We have about 100 days of summer, and if that summer doesn't make us what it will, then I can't operate the other most of the year with my staff. The owner is talking about closing two days a week to cut down on labor, I told him he should cut down on vacations and it did not go great. I do think I won though, I have to keep my fucking core staff and they have to be gainfully employed
  • Varine Varine:
    Sure some of them might take a second job, but I can't just cut my entire staff to unlivable hours, nor can I can cut them off all winter if I want them to come back.
  • Varine Varine:
    And also, there is no fucking way I'm pulling these hours come september. I only do this right now because I have to, the second I don't have to be the one doing it I won't be
  • Varine Varine:
    I have a 5 person core staff in the kitchen, not including me or Chef Ben
  • Varine Varine:
    Though two of those people are likely not making it this year. One of them has been replaced, the other I am kind of trying to. He's being a giant bitch, today I had to get onto him because in the three hours before I left he had taken like thirty minutes for cigarette breaks
  • Varine Varine:
    And he was also complaining to me the other day that he was out of weed so couldn't smoke any before work that day, and was confused about why I was annoyed he was telling me, his boss, that he is smoking weed everyday before work.
    +1
  • Varine Varine:
    Like yeah I can tell. I don't need to fucking know.
  • Varine Varine:
    So now he's getting scrutinized and will not be top of the list. I know I don't have the smartest people but I do expect them to have some common fucking sense
  • Varine Varine:
    I did do a rare thing for me and hire a girl last month without warning. Everyone was made at me because I started her at like 21, but she worked with me before and I was like don't care. She made 19 at her old job and I wanted her to come work with me, she is the best
    +1
  • Varine Varine:
    I'm going to get her a raise at the end of the summer. She wants to go to school again, but I want her to still work with me so.... she kind of can just tell me what the price is. I can go to 25 if she keeps up. I need to get her onto line more, that's what she wants, but I need her where she is and it's not fair that she doesn't get the little bit of raise that comes with it. She can do it no problem, I've worked with her there.
  • Varine Varine:
    It's just hard to move and train people unnecessarily right now. And also the line fucking sucks, it's not any more fun. This is turn and burn so I have the bankroll, and everyone suffers for it
  • Varine Varine:
    Eventually we'll get it balanced, we'
  • Varine Varine:
    we're starting online orders and stuff, but I also turn that off all the time because I barely keep up trying to be the best at Sysco shit
  • Varine Varine:
    I think it's gonna be a good fall and winter though. We're going to have a good staff, they will get along, they will be able to manage the workload and the complications, they know how to really cook this year, like every person on line knows their steak temps. Some of them use thermometers a lot and they don't always use them right, but they do know how to do it. Failure, especially in this field, is the only way to get better. They'll get it
  • Varine Varine:
    They won't get feel down while they do the thermometer, but we didn't have an instant read probe when I was learning. Like they did but god knows how off it is, you HAD to do it by feel. Even if the chef was fine with me bringing my own, it takes too long. Poke and know
  • The Helper The Helper:
    420 threads in the Artificial Intelligence forum :)
  • The Helper The Helper:
    Happy Monday!
    +1
  • The Helper The Helper:
    and then it was Tuesday!
    +1
  • The Helper The Helper:
    fyi I am going out of town to lake somewhere in bfe texas for the weekend will be gone Friday morning to sunday afternoon for a paranormal thing and some rest peace

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials
      Top