Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: Some help, please?Anybody?I'm desperate!!!
Thread: Some help, please?Anybody?I'm desperate!!!
mitzah
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 |

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
mitzah
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 |

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Sir_Stiven
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

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
fnord
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)


____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
mitzah
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 |

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
fnord
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.


____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
mitzah
mitzah


Promising
Supreme Hero
of the Horadrim
posted July 03, 2004 09:17 PM

So, instead of "!!IF1" it's "!!IF two dots and a P then 1 ?
____________
| The HoMM Channel |

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
mitzah
mitzah


Promising
Supreme Hero
of the Horadrim
posted July 03, 2004 09:23 PM

Hey!! It works!! 10x very much. I owe you a lot...
____________
| The HoMM Channel |

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
fnord
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...  
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0370 seconds