View Full Version : Monster message
Dibuk
10-18-2006, 04:34 AM
There is a option in the monster properties, witch is called "Message" this generates a message box After the monster is killed...
Anyone have a idea how to make that message (or a scripted one) appere before you kill the monster, at the moment you attack.
Like this:
-Find monster
-Click to attack
-Hero gets to the monster
-Messagebox "zomg hero tying to kill me pew pew"
-Battle/join/flee
Thank you for your time.
EDIT: this is mainly for a multiplayer map, but do post ideas for single maps too.
Euphistopheles
10-18-2006, 01:52 PM
Dibuk,
Temporary answer (I'm still struggling to build my first nonexperimental map): you could define a Region for the tile on the approach to the mob, and put the MessageBox call in the region's entrance trigger.
Then the message would appear when the hero steps onto the "red" tile when he is committed to the fight, or you could put it on a "yellow" tile one step away so the hero can decide if he wants to fight ("My name is Ozymandias, and I have **seven**, count 'em **seven**, imps!!")
yoof
Dibuk
10-18-2006, 01:57 PM
Ah, nifty.
Didn't even think of that. Gotta try it out right away.
Thanks Euphistopheles!
Edit: Ah, right isn't these kind of trigger turned off in muntiplayer maps? And after fumbling around i quite fast figure out that I need some base script to work form, the one in the manual wont do http://forums.ubi.com/groupee_common/emoticons/icon_frown.gif
More suggestions are welcome tho http://forums.ubi.com/images/smilies/heart.gif
DeejMaster1
10-18-2006, 09:08 PM
Makes me wonder how much work I have to look forward to, especially since I am creating a Cooperative Multiplayer Quest-based Map with an indepth story line.
myythryyn
10-18-2006, 09:27 PM
Originally posted by DeejMaster1:
Makes me wonder how much work I have to look forward to, especially since I am creating a Cooperative Multiplayer Quest-based Map with an indepth story line.
if when you created your map, and you selected "multiplayer" then you will not be able to script it at all.
scripts, events, seer quest huts, messageboxes(youll have to use signposts instead), everything is disabled for multiplayer maps.
you can only have scripts for single player made maps.
DeejMaster1
10-18-2006, 09:36 PM
Oh great...Well, I guess my map will have to be single-player then. I can change it to single player if I have not finished it yet, eh?
By the way, your map Battle for Adrona looks interesting. Can't wait to see what it looks like when it is opened up.
myythryyn
10-18-2006, 10:53 PM
http://www.celestialheavens.com/forums/viewtopic.php?t=4191
this post explains how to change maps from multi to single and vice versa.
if you want to look at a map with some very basic scripting, (my scripting isnt in good form, but works) you can look at
fury of the elements, it will give you an idea of what scripts are like. there are lots of examples of region triggered messageboxes for monster messages. though they happen before you fight the monster...
http://elrath.com/mapvaultresults.php?mapdid=935&D1=Her...=Descending&D6=1&p=1 (http://elrath.com/mapvaultresults.php?mapdid=935&D1=Heroes+V&D2=None&D3=Normal&D4=Downloads&D5=Descending&D6=1&p=1)
Dibuk
10-19-2006, 01:42 AM
Originally posted by myythryyn:
though they happen before you fight the monster...
That was the whole point, http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif
Well yes, scripting is off for multiplayer, but you can still see a message after the battle you've won.. prehaps there is some setting that can make that message show up before the fight? just a thought.
But is it your thought, myythryyn, that you cant make message like this in multiplayer? (asking you sense you seem to have a idea of how it works http://forums.ubi.com/groupee_common/emoticons/icon_wink.gif )
EDIT: Btw, I've checked your map, cleared out much about scripting in HOMM5 for me. Nice map too I bet you've put quite the effort in it
myythryyn
10-19-2006, 06:48 AM
no messages at all in multiplayer map. not even the built in message box in the monster script box appear. even in single player maps, you cant quite have a message appear right before you fight a monster, or at least as far i know.
i wasnt very clear when i said the messages with region triggered messageboxes appear before the monster. what i meant is that the player steps on the region, gets the message, then steps again to attack. which isnt the best solution but the only one.
if you put the region on the same square as the monster, what happens is you attack the monster it doenst count as you moving into the region. so you get the message after you killed the monster and then step into the region.
it only counts as you entering the region after you defeat the monster, so you attack the monster, then next step enter the region then read the message after. which isnt that great if the monster is supposed to tell you something, hard to talk when your dead http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif unless you undead....
but anyways, hopefully you understand what i mean. its limiting, but the only thing i could do was have messages appear before you attack then the player manually moves his hero to attack.
Dibuk
10-20-2006, 09:16 AM
Originally posted by myythryyn:
if you put the region on the same square as the monster, what happens is you attack the monster it doenst count as you moving into the region. so you get the message after you killed the monster and then step into the region.
it only counts as you entering the region after you defeat the monster, so you attack the monster, then next step enter the region then read the message after. which isnt that great if the monster is supposed to tell you something, hard to talk when your dead http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif unless you undead....
but anyways, hopefully you understand what i mean. its limiting, but the only thing i could do was have messages appear before you attack then the player manually moves his hero to attack.
Hmm.. There is a very much easier way to do that, make the dead monster give you a message, in monster properties you have /Message/ and that message show after kill, Don't help much.
Thanks for the intrest tho http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif I dont think it will work now with this editor and with script tured off in multi (sucky sucky).