HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Right-Click order

02-15-2005, 03:10 AM#1
Tooolbox
Yo guys, I had a question. To handle not being able to fire (based on ammo (gold)) I can make it so that if a variable isn't toggled then if the guy's current order is "attack" it is turned into "stop". But what is the "right-click" order? For instance, if I hit "a" and then target the enemy, my guy doesn't move (i have 0 gold). But when I right-click, he does move, and often kills my opponent. And he keeps on firing (when given a chance). So what is the right-click order string? I saw in there some order called "smart"--is this it?
02-15-2005, 04:09 AM#2
Quickshok
As I do not have world edit currently to access, I cannot tell you, but I would make a trigger with an action Issue an order targeting a unit, then choose right-click, and convert the trigger to custom script. That should tell you.
02-15-2005, 04:17 AM#3
sc_freek
Quote:
Originally Posted by Tooolbox
I saw in there some order called "smart"--is this it?
Yes.
02-16-2005, 03:33 AM#4
BBDino
Yes "smart"is the order given for ALL right clicks, its extremely useful to know about this - it should be in every budding mappers bag of tricks.
02-16-2005, 05:16 AM#5
Panto
If a unit has its "Attack" ability removed (ability id: 'Aatk'), its "smart" action will be to move to enemy units instead of attacking them. If that's desirable or acceptable, then just making a couple of triggers that remove 'Aatk' when the player is out of gold and re-add it when they get some gold back would be a bit more professional and fail-safe of a method to carry this out.
02-16-2005, 05:20 AM#6
Quickshok
Quote:
Originally Posted by Panto
If a unit has its "Attack" ability removed (ability id: 'Aatk'), its "smart" action will be to move to enemy units instead of attacking them. If that's desirable or acceptable, then just making a couple of triggers that remove 'Aatk' when the player is out of gold and re-add it when they get some gold back would be a bit more professional and fail-safe of a method to carry this out.
But the problem with that would be that if the player wasn't paying good attention they might think they still have ammo and send their unit straight into the enemies.
02-16-2005, 04:52 PM#7
Hyarion
Check the trigger tutorials. I did one on it that tells you all the triggers you need.