|
Amnon Newbie
Joined: 13 Nov 2003 Posts: 3 Location: Israel
|
Posted: Thu Nov 13, 2003 1:21 pm
MXP Hint in the <send> tag |
Hey,
I've had an MXP tag in my game for a while now, that lets people see the name and owner of a building when they place the mouse cursor over it on the map. I was using the Hint option in the <send> mxp tag to do it.
Problem is, it doesn't seem to work in Zmud 6.62. I know it worked in older versions, so was there a change in the mxp format or something, or is it something fixable in the definitions? |
|
|
|
Rorso Wizard
Joined: 14 Oct 2000 Posts: 1368
|
Posted: Sat Nov 15, 2003 12:06 am |
quote: Originally posted by Amnon
Hey,
Hello!
quote:
I've had an MXP tag in my game for a while now, that lets people see the name and owner of a building when they place the mouse cursor over it on the map. I was using the Hint option in the <send> mxp tag to do it.
I assume something like <send href="smile" hint="This is a test">press me!</send> then.
quote:
Problem is, it doesn't seem to work in Zmud 6.62. I know it worked in older versions, so was there a change in the mxp format or something, or is it something fixable in the definitions?
Be sure that you follow the format fully. A <send> needs the </send> to work for example. I have written down a summary of (some) parts of mxp that you might find useful:
http://www.silverbridge.org/~varmel/mxp.php
It should show mostly the correct syntax. The easiest way to spot possible errors is if you post what you send to the clients. |
|
|
|
Amnon Newbie
Joined: 13 Nov 2003 Posts: 3 Location: Israel
|
Posted: Sat Nov 15, 2003 10:15 pm |
Nah, it wasn't a syntax error, or else it wouldn't have worked on older versions. Also, I don't use the full <send> tag, I make an element when the player connects. Now, I redid the element to add some new features, but it still doesn't show the hint on mouse-over:
!ELEMENT Bl "<send 'Blast &x; &y;|computer connect &x; &y;|help &name;|Info &x; &y;'
hint='&name; Owner: &owner; &x; &y;|Blast|Connect|Help|Info: &name; Owner: &owner; Loc: &x; &y;'>"
ATT='x y owner name'
It sends the info right, cause when I right-click it, everything works ok. But I'd still like to get some info when I put the mouse over the map, and that doesn't happen :P |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|