The following trigger is working very strangely. It's kind of an AI trig meant to make marines auto stim when they attack a unit, on the conditions the owner is controlled by a computer player OR the owner has left the game, so long the units aren't already stimmed.
EVENTS
Unit - Any Unit starts attacking
CONDITIONS
Or
Conditions
(Controller of player (Owner of (Triggering unit))) != User OR (Owner of (Triggering unit)) == Left The Game
Unit type of (Triggering unit)) == Marine
((Triggering unit) has Marine - Stimpack) != true
ACTIONS
Unit - Order (Triggering unit) to (Marine - Stimpack) (Replace Existing Orders)
I'm pretty sure it used to work fine, until I added the OR owner has Left The Game. I can't figure out whats wrong it seems very basic and straight forward.
Basically very very rarely every few games every so often, a player's units will start auto stimming even thou he's a player and in the game.
(Controller of player (Owner of (Triggering unit))) != User
(Owner of (Triggering unit)) == Left The Game
Unit type of (Triggering unit)) == Marine
((Triggering unit) has Marine - Stimpack) == true
The problem with your actual conditions seems to be that if the unit is a marine, it is enough to validate the conditions check. And same goes for the "has stimpack" check. Adding an AND operator just makes sure ALL the conditions are met, instead of assuming they will be. I think that's why the current trigger does not work everytime.
By the way, your condition:
((Triggering unit) has Marine - Stimpack) != true
...is wrong. It should be:
((Triggering unit) has Marine - Stimpack) == true
What about make the auto-stim in data and activate autocast, when a player leaves or is a computer? This way players in-game would have the choice to use auto-stim themselves; its not a bug, its a feature! :D
Lol, well I don't want players to be able to autocast :)
Any other ideas guy? I can't see anything wrong with the trigger at all,
by all accounts it should work flawlessly.
You can use a Trigger to set the "auto cast (data flags)" just for the computer controlled players with a "set catalog field value" specifying the appropriate players....
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
You can replace marine's weapon effect to effect (set) that will do damage and issue order to use stimpack. But you need lots of validators for the issue order effect.
I did more detailed post but post failed and cba rewriting, attached map so take a look if You want
The following trigger is working very strangely. It's kind of an AI trig meant to make marines auto stim when they attack a unit, on the conditions the owner is controlled by a computer player OR the owner has left the game, so long the units aren't already stimmed.
I'm pretty sure it used to work fine, until I added the OR owner has Left The Game. I can't figure out whats wrong it seems very basic and straight forward.
Basically very very rarely every few games every so often, a player's units will start auto stimming even thou he's a player and in the game.
Any ideas?
I'd rewrite the conditions as follows:
CONDITIONS
And (Conditions)
The problem with your actual conditions seems to be that if the unit is a marine, it is enough to validate the conditions check. And same goes for the "has stimpack" check. Adding an AND operator just makes sure ALL the conditions are met, instead of assuming they will be. I think that's why the current trigger does not work everytime.
By the way, your condition:
((Triggering unit) has Marine - Stimpack) != true
...is wrong. It should be:
((Triggering unit) has Marine - Stimpack) == true
What about make the auto-stim in data and activate autocast, when a player leaves or is a computer? This way players in-game would have the choice to use auto-stim themselves; its not a bug, its a feature! :D
@ZealNaga: Go
That's exactly how I had it sorry, I couldn't get it to type out like that on mapster thou.
I added the AND to group the Or's and others it still bug now and then.
The Stimback condition was to check the unit was not already stimmed, so it should actually be !=
@Kueken531: Go
Lol, well I don't want players to be able to autocast :)
Any other ideas guy? I can't see anything wrong with the trigger at all, by all accounts it should work flawlessly.
why dont you just ... set the auto cast flag on the ability.....
Pretty sure they will auto cast it when they start attacking
You can use a Trigger to set the "auto cast (data flags)" just for the computer controlled players with a "set catalog field value" specifying the appropriate players....
You can replace marine's weapon effect to effect (set) that will do damage and issue order to use stimpack. But you need lots of validators for the issue order effect.
I did more detailed post but post failed and cba rewriting, attached map so take a look if You want