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: Quest Gate
Thread: Quest Gate
Invictus7
Invictus7


Adventuring Hero
Lurking About...
posted April 12, 2011 01:28 PM

Quest Gate

I've posted this a few times before, but no success.

Due to my almost complete noobism with ERM I was hoping someone would be willing to script a map object for me and general use. I've already created the image but have no idea as how to go about scripting it.

I don't know if it's possible, but I'm looking for an object that acts like a border gate except with quests i.e. each player or hero has to complete a quest in order to pass through, however, unlike the quest tower, stays there so that other players also have to complete that quest in order to pass, not just wait for someone else to do and then just walk through.

Any help/interest would be greatly appreciated.

____________
Question Convention

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


Promising
Legendary Hero
fallen artist
posted April 12, 2011 02:24 PM

I had this idea in mind since H4, but unfortunatelly it's going to be a hell of code making it with ERM from scratch. Still, wish you luck.
Also, please show the graphics.
____________
The future of Heroes 3 is here!

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


Admirable
Omnipresent Hero
Wog refugee
posted April 12, 2011 02:57 PM

What's so hard? Make the gate red and don't place any red keymaster's tent on the map. When the quest is done, assign to the current player the red tent using !!OW:K.

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


Adventuring Hero
Lurking About...
posted April 12, 2011 03:27 PM

Okay here's the image:

It's nothing special.

I would've also thought that it would be hard to script seeing as the the quest tower doesn't have an existing script; but as Salamandre has shown, it may not be so difficult. I can see that in order to use ERM you have to think rather laterally. In any case, even with your advise, I would have no idea where to begin.

I have tried making *.wog files but they never worked. It's been hard even doing the simplest things, like getting the .def into the mapmaker.

Although now that I have an idea of what may be involved I will research more. Again, any help would be appreciated  
____________
Question Convention

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


Admirable
Omnipresent Hero
Wog refugee
posted April 12, 2011 04:20 PM

Let's say you have an object at 10/10/0.

!?OB10/10/0; quest
!!OW:C?y1; which player visited it?
!!OW:Ky1/2/1; red border is free from now for only that player

To change the aspect of the red gate use the enhanced editor, GrayFace patch.

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


Responsible
Supreme Hero
posted April 13, 2011 06:29 PM

Learning ERM

The way to learn ERM (the way I learned, anyway) is to read all the tutorials in the ERM Help HTML file, then read everything else:  all the receivers, all the triggers, all the stuff about variables and flags, etc.  That way, when want to script something, you may remember commands which could be useful for that script - not exactly, but well enough to find them again and reread them.  Then it's practice, practice, practice.  And reading the WoG scripts in Data/s which might do something similar to what you want to do.

Unfortunately, there are a few errors and typos in the ERM Help, but it is 99% accurate.

For the subject project, you should re-read the turorial on adding a scripted object to the map.  Basically, it is not enough to just add a yellow square to the map.  In order to script it, it must have a hard-coded yellow square so that the program will interact with it.  If it is one of the new WoG objects which has a yellow square but does not have a hard-coded Heroes function, then you just need to write a script for it, e.g., the WoG Emerald Tower script was written for that object.

If it is a Heroes object, such as a quest gate, you have to disable its normal function - see the !!OB receiver in the ERM Help.

That's enough for a start.  It would be easy to write the script for you, given exact details of the quests and so on, but it would be more fun and interesting to write it yourself.

 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.0419 seconds