Custom Error Messages

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
First, let me say what I mean by a "Custom Error message". When you try to cast a spell on a unit that is immune to magic, it will say 'Unit is immune to magic' or if you try to build a building, but do not have enough gold, it will say 'Not enough gold'.

I want to be able to modify what that message is, for example, making 'Unit is immune to magic' be 'Your an idiot, trying to cast magic on a unit that is immune to magic' (Just an example). Ive seen it done in a few maps, but none of my searches turn up anything. It isn't R.E.A.L important, but if anyone knows how, please post.

Thanks!

PS: :banghead:
 
i think you can use triggers to cheak if the spell can be cast on that unit and display a text message but of corse all your abiltys would become trigger-and-dummy if you did that..on the bright side if you have lots of dummy abiltys anyway it wont matter :D

"OmFg UbEr NoOb ItS iNvUnArAbLe YoU mOrAn!!!"
"noob its INVUNARBLE"
 
Using triggers, you can have the game display messages using actions such as "Game - Text Message" or "Quest - Quest Message". For the exact question you're asking, you can use the following trigger:

E:
A unit begins casting an ability
C:
Target unit of ability being cast is Magic Immune Equal to True
A:
Game - Display to (Owner of (Casting unit)), at offset (0.00, 0.00) for 10.00 seconds the text: Your an idiot, tryi...

^ This is untested, I'm not sure if the trigger will work because casting on a magic immune unit may not count as "casting an ability" but I'm sure there's a way around it if you look around.

dArKz
 
Look under the Advanced menu. Below gameplay constants there should be another button. Click on that and look for the error messages. You can edit them there. You can also change what icons the gui uses.
 
Nice, you've enlightened me Jazradel, I didn't know you could do that in Gameplay Interface. Thanks.

dArKz
 
Thanks alot, Jazradel. Thats exacly what I wanted, plus a bunch of other things I was curious how other maps did it. I was thinking along the lines of importing a text file, and setting it's custom path to overwrite the MPQ. Guess not =}. Thanks to everyone else, to, for posting kludges :D

From now on, I'm gonna post all my problems here, instead of wasting hours trying to find out myself :rolleyes:
 
thanks dude lol i never acn find good solutions... lol

here to learn or teach? gotta wonder
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content
  • The Helper The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top