Staredit Network > Forums > SC2 Assistance > Topic: Add Behavior Delay?
Add Behavior Delay?
Nov 28 2010, 5:31 am
By: payne  

Nov 28 2010, 5:31 am payne Post #1

:payne:

Are there any reasons why the "Add Behavior (Player)" action would not complete itself if the trigger that contains it is triggered many times, very fast?
What triggers it in my case is the fact that the players click a button, and if the player has enough resources, it subtract resources and add behavior to his unit. The player can thus spam the button as much as he want.



None.

Nov 28 2010, 6:01 am Roy Post #2

An artist's depiction of an Extended Unit Death

It might be a problem of adding the same behavior many times. Have you tried using a conditional to prevent adding the behavior if it is already added? Or, if you want it to be re-added, remove the behavior if it already exists first?

There's no reason for the trigger not to work on the basis that it is running several times in a short amount of time; maybe the engine just doesn't know how to properly handle this action in rapid succession.

If all else fails, put a cooldown on the button.




Nov 28 2010, 6:55 am payne Post #3

:payne:

Quote from Roy
It might be a problem of adding the same behavior many times. Have you tried using a conditional to prevent adding the behavior if it is already added? Or, if you want it to be re-added, remove the behavior if it already exists first?

There's no reason for the trigger not to work on the basis that it is running several times in a short amount of time; maybe the engine just doesn't know how to properly handle this action in rapid succession.

If all else fails, put a cooldown on the button.
1) The Behaviors are supposed to stack infinitely.
2) Cooldown was the solution I had thought of, but it's extremely unprofessional. :/



None.

Nov 28 2010, 7:06 am Roy Post #4

An artist's depiction of an Extended Unit Death

Quote from payne
2) Cooldown was the solution I had thought of, but it's extremely unprofessional. :/
You could do a cooldown under the covers, adding each button click to a queue, and then running through the queue at a controlled speed.

Are you absolutely certain it is the rapidness of the action causing the problem? Does it stack the behavior properly at a more casual pace?

What is the behavior, and how do you know that it does not complete properly?




Nov 28 2010, 1:32 pm payne Post #5

:payne:

http://www.staredit.net/starcraft2maps/47-Swarmed-Heroes

You can just download this, and in the triggers, look into for: Store -> Purchase -> Buy
Also, I am not 100% sure the trigger doesn't work, it's Lial that reported this bug saying he bought 4 upgrades, but only received 1. :/



None.

Nov 28 2010, 2:08 pm Ahli Post #6

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Does he know that the upgrade is added onto a random unit he controls?




Nov 28 2010, 6:37 pm payne Post #7

:payne:

Quote from Ahli
Does he know that the upgrade is added onto a random unit he controls?
But players control only one unit, in the case it's a Full House. :/



None.

Nov 28 2010, 7:23 pm aalleecc248 Post #8



He was a tank and probably had those little photon cannon projectiles on him. :P



None.

Nov 28 2010, 9:13 pm Temp Post #9



Lol payne, way to go making assumptions :P Just put the selected hero into a variable when chosen and always use that.



None.

Nov 28 2010, 11:36 pm payne Post #10

:payne:

Temp, the Charges are player-owned? :O



None.

Nov 28 2010, 11:39 pm Temp Post #11



Yes they are, I never saw a reason they shouldn't be.



None.

Nov 28 2010, 11:57 pm payne Post #12

:payne:

Should be fixed. :3
I haven't tested it though.
I changed "Unit matching condition" to "Unit from Unit Group matching condition", and the unit group contains only the Heroes. >:D



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:13 pm]
No-Name-Needed-II -- Zoan you mentioned making kotk maps.. I've got a 110% fully polished up terrain I've been sitting on since 2019.. I'm more a painter than a poet, I've got no storyline to do it justice so if you or anyone else want to check it out MSG me.. If no takers than I'll probably just upload it to terrain genre in a few days.. SCBW is running outa lifespan so i'm at that point where little gems I've got will never see the light of day otherwise ;(
[12:24 pm]
Ultraviolet -- Zoan
Zoan shouted: TheHappy115 Oh, I mentioned in a thread but not the shoutbox, but it does work if you run SC in 32bit as suggested by Butch.
I found 64-bit SC broke all sorts of stuff, I never liked it
[12:21 pm]
No-Name-Needed-II -- Zoan Could it have something to do with the turn rate? I found recently the hard way that when I have too many unit orders triggered at once with hyper triggers on "I think it was Dynamic" It caused a crash similar to an EUD crash on non-eud maps.. -Also when does the map crash?? does it crash after briefing at start of game??? or does it crash when you use a spell???
[07:35 am]
MINT_H -- Map Upload
[02:42 am]
Zoan -- TheHappy115
TheHappy115 shouted: I had played spellsword on Remastered roughly 3 - 4 years and it worked fine so not sure why it doesn't work now. Big Rips. I know there is some form of trigger that detects whether its online or not but I imagine it has something to due with latency
Oh, I mentioned in a thread but not the shoutbox, but it does work if you run SC in 32bit as suggested by Butch.
[08:53 pm]
TheHappy115 -- such as things like Center View work differently on online play (instant on online while single moves the screen slowly and pauses)
[08:52 pm]
TheHappy115 -- I had played spellsword on Remastered roughly 3 - 4 years and it worked fine so not sure why it doesn't work now. Big Rips. I know there is some form of trigger that detects whether its online or not but I imagine it has something to due with latency
[2022-5-23. : 10:53 pm]
Butch -- prob some weird character on a string somewhere or something dumb like that
[2022-5-23. : 9:50 pm]
Ultraviolet -- It's weird indeed, not really sure what is so special about Spellsword that causes it to react differently on Remastered, usually EUDs are the cause of things like that
[2022-5-23. : 5:35 pm]
Zoan -- I haven't played in like 2 years so maybe something changed I don't know about
Please log in to shout.


Members Online: No-Name-Needed-II, Roy, putvingbore22, manlebudkuhb55