Using warnings?

Status
Not open for further replies.
Level 3
Joined
May 11, 2009
Messages
42
So, iv'e got alot of custom restrictions in my map, and i know you can modify and use the regular warcraft messages like "Must hanut gold mine first" or "Cannot target Mechanical units"... Is there any way of triggering there for custom situations?
 
sry man, good try but unfortunately it wasn't really what i was looking for... i know how to change them, but i don't know how to trigger them for the restrictions in my map...

EDIT: so using dummies is the way to go... ok, thanks ^^
 
reason_3 you're not understanding exactly what he means I guess...

What gurra wants is making the custom changed messages appear when something is done, like: you press a button and a popup appears with an error.

But why don't you use normal Game Messages instead of trying too complex things?
 
He's trying to improve interface. Warning messages are better, 'cause they don't push up (or look anything like) chat messages.

Then again, if I imagine it correctly, it won't be all that complex by using some dummies. Depend on the restrictions that trigger your warnings.

Let's say we have a restriction that is: Players cannot build CoolBuilding within 1500 of another CoolBuilding. So, the detection is straightfoward, but then to call our custom warning, we must make something, that is unallowed by default, happen through dummies, such as ordering triggering player's dummy worker unit to build a farm on our dummy unbuildable tile, which will ofcourse trigger the inbuilt warning, which can be customized to: "Another CoolBuilding is too close".

All one needs is to find out which action triggers which customizable warning, and figure out how to make that happen through triggers, without any player noticing.

Actually, it's rather simple when you think about it. And it may even be worth the effort, if you're picky about details.
 
well, will probably do this sometime ^^
it's a bit more work than i thought as you need to examine the vanilla game (who knows what u could find there?)
+rep, thanks for the info
 
Status
Not open for further replies.
Back
Top