![]() |
![]() |
|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
is there a way to make a message pop up to advance the plot?
is this just the region command? and if so, would fighting in the region trigger it at the after/pre battle |
|||
|
For single player maps you have scripting available so you can do all these things you say. For multi player scripting is blocked for some reason at the moment and you cannot do anything like that. For single player - look up the documentation you got with the patch (from start menu find HOMM5 menu and the documentation there) The documentation is in the form of .pdf files so you need adobe acrobat or something equivalent to read them. Look up the documentation of the function Trigger() to see what you can do. For example you can have a trigger that fires on day 3 of week 2 month 1 (day 10) like this:
function NewDayTrigger()
if GetDay() == 10 then
-- do something on day 3 week 2 month 1.
end
end
Trigger(NEW_DAY_TRIGGER,"NewDayTrigger")
Of course, if that day 10 trigger is the only trigger you have or the last trigger you can also call Trigger(NEW_DAY_TRIGGER,nil) inside the code for that trigger so that the new day trigger stop firing and do nothing for the rest of the game. You have triggers, for new day, for when a hero enter a specific region (make a region in the map editor and give it a name and then have a trigger to trigger on the hero entering or passing through the region). when a hero visit a specific object (again, give the object a name in the map editor and assign a trigger to it), when a hero levels up, when a hero enters battle or when a hero wins or lose a battle. Xamar |
||||
|
Great Googly Moogly...What is with all this scripting? I looks like Greek to me, especially since the HMMIII Map Editor was so easy to work with.
|
||||
|
k i was just wondering where i write the message that will pop up when a hero enters that region. (this stuff is hard)
for example, from myythryyn's "fury of the elements" map: function airstronghold (heroname) if GetCurrentPlayer () == PLAYER_3 then MessageBox("Maps/SingleMissions/Fury of the Elements/airtouch1.txt"); Trigger(OBJECT_TOUCH_TRIGGER, "airconflux", nil ); end; end; Trigger (OBJECT_TOUCH_TRIGGER, "airconflux", "airstronghold" ); |
||||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|

