|
Thread: Some help, please?Anybody?I'm desperate!!! | |
|
mitzah
Promising
Supreme Hero
of the Horadrim
|
posted June 29, 2004 09:16 PM |
|
|
Some help, please?Anybody?I'm desperate!!!
I have some problems, and if anybody can help me, please do!Problem no.1: How the hell can I change an object name?
I want to specify my own name.For example: I have a seer's hut, and instead of showing "Seer's hut" ,I want to show something else, like "Hut" or "House" WITHOUT CHANGING IT'S CHARACTERISTICS, I mean, so it still gives me the quest (But please, if you're going to help, give an example!) Problem no.2: When I go to an object, I want to display a certain picture. Fnord explained something to me, but it didn't work or I didn't understand.If I have, let's say, a portal with the coordinates x=2 y=2 ,on surface.How do I display an image "portal.jpg" when I go to
the portal?(and i repeat PLEASE give an example!)
____________
| The HoMM Channel |
|
|
mitzah
Promising
Supreme Hero
of the Horadrim
|
posted June 30, 2004 04:50 PM |
|
|
Anybody!?Please! Fnord are you there? Come on, there's gotta be someone to know this thing!
____________
| The HoMM Channel |
|
|
Sir_Stiven
Honorable
Legendary Hero
banned
|
posted June 30, 2004 05:38 PM |
|
|
cool, i thought this was a "kitten is looking for a date" thread at first
|
|
fnord
Promising
Famous Hero
|
posted June 30, 2004 07:48 PM |
|
|
Quote: I have some problems, and if anybody can help me, please do!Problem no.1: How the hell can I change an object name?
I want to specify my own name.For example: I have a seer's hut, and instead of showing "Seer's hut" ,I want to show something else, like "Hut" or "House" WITHOUT CHANGING IT'S CHARACTERISTICS, I mean, so it still gives me the quest (But please, if you're going to help, give an example!) Problem no.2: When I go to an object, I want to display a certain picture. Fnord explained something to me, but it didn't work or I didn't understand.If I have, let's say, a portal with the coordinates x=2 y=2 ,on surface.How do I display an image "portal.jpg" when I go to
the portal?(and i repeat PLEASE give an example!)
You can't exactly rename an object but you can change the hint text that appears if you move the mouse over it or right-click on it. To do that, choose an unused z variable and assign it the new text, and then use the OB:H command to set this.
For example, if you have a Seer's Hut at 12/14/0:
ZVSE
!#VRz100:S^Hut^;
!#OB12/14/0:H100;
If the contents of z100 ever changes, it will automatically change the hint text, so be careful not to accidentally change it.
You can also change hint text by object type for ALL objects of a specific type or subtype, using the HT receiver.
A Seer's Hut is type 83 (see Format OB for object type number) so you could use the following to change the hint text for ALL Seer's Huts on the map to "Hut":
ZVSE
!#VRz100:S^Hut^;
!#HT83/-1:T100;
To display a custom image, you have to use either the IF and IF:E or IF:B and IF commands, depending on the size of the image and if you want text with it or not. If the image is larger than 100x100 pixels and if just want it displayed alone (no text), you could use the following:
ZVSE
!?OB2/2/0;
!!VRz101:S^portal.jpg^; [Portal.jpg in Maps folder]
!!IF:B1/101/0; [Set up display of Portal.jpg in Dialogue 1]
!!IF1; [Display Dialogue 1 (Portal.jpg)]
(not tested but I think this will work)
____________
|
|
mitzah
Promising
Supreme Hero
of the Horadrim
|
posted July 02, 2004 08:49 PM |
|
|
The good thing is that it's tested(both things). The bad news is that the thing with the image DOESN'T WORK!!! Yo Fnord, do you hear!? It gives me some syntax error(wrong syntax, skipped) What could be the problem?
____________
| The HoMM Channel |
|
|
fnord
Promising
Famous Hero
|
posted July 02, 2004 10:41 PM |
|
|
Quote: The good thing is that it's tested(both things). The bad news is that the thing with the image DOESN'T WORK!!! Yo Fnord, do you hear!? It gives me some syntax error(wrong syntax, skipped) What could be the problem?
The code is correct (I just checked). The problem is the forum's auto-formatting. It automatically changes a colon followed by a capitol P to a smiley face (with tongue out) and if you try to copy and paste that, it doesn't copy it.
So go back and add a colon and capitol P to your script where the smiley is showing in the original message and all should work fine.
Or...reply to the original message with quoting and in the edit window, it should show up with the original colon and P -- copy and paste from *there* instead.
____________
|
|
mitzah
Promising
Supreme Hero
of the Horadrim
|
posted July 03, 2004 09:17 PM |
|
|
|
mitzah
Promising
Supreme Hero
of the Horadrim
|
posted July 03, 2004 09:23 PM |
|
|
|
fnord
Promising
Famous Hero
|
posted July 03, 2004 11:21 PM |
|
|
Quote: Hey!! It works!! 10x very much. I owe you a lot...
You're welcome.
Send all cheques to...
____________
|
|
|
|