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: Need to mod one problem out of the game.
Thread: Need to mod one problem out of the game. This thread is 2 pages long: 1 2 · «PREV
master_learn
master_learn


Legendary Hero
walking to the library
posted July 21, 2012 10:24 AM

OrganizedChaos,looking into ERM Help or the thread ERM Help and discussion would be good for you to learn about scripting the artefacts.

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


Admirable
Omnipresent Hero
Wog refugee
posted July 21, 2012 10:33 AM

No way, what he asks is impossible with ERM and also not suitable for game balance.

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


Hired Hero
posted July 21, 2012 11:59 AM
Edited by OrganizedChaos at 12:09, 21 Jul 2012.

DO NOT be confused I am not asking to write this stuff for me, I am asking if its possible to do, so I dont go wasting my time learning ERM to find out im screwed anyway. I appreciate the stuff people already wrote for me and I cannot and want not ask for more.

While it being impossible may be a valid point, the one about the game balance is completely off base. Who cares what I do to my own game, not like wog has many balanced features to begin with.

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


Honorable
Supreme Hero
posted July 21, 2012 12:39 PM

Quote:
Power of the dragon father - gives immunity to spells level 1-4. All is cool but can it be made so I can cast spells on my creatures, and the immunity be applied to when enemy tries to cast malicious stuff including dispell?

It seems that it's !?MR2 dwarf style resistance. You can obtain target and percentage of resistance (will be 100 with artifact, afair). Then you drop it to 0 if friendly stack and friendly spell. There will be some problems of course, because you don't know the nature of this resistance. One could try removing the artifact from hero, then use H3 function to calculate natural resistance, than add artifact. Quite messy emulation, but probably will work.

Quote:
Orb of Vulnerability - I want it to brake natural immunities of the creatures but in smarter manner: make gold dragons susceptible to beneficial spells cast by self while keeping the immunity to malicious enemy casts?

The same.

Quote:
About dispell - can it be smart and destroy enemy buffs while keeping the debuffs and vice versa with your own?

Yes.

Quote:
Spell Scroll - can you make hero automatically learn the spell on it if there is sufficient wisdom and a spell book owned when hero picks it up or receives it after battle or trades with another hero? Maybe same with books but I imagine that is too much hard work.

Yes.

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


Hired Hero
posted July 21, 2012 01:40 PM
Edited by OrganizedChaos at 13:50, 21 Jul 2012.

Thanks, gonna no life those guides and tutorials now ;D

Where can I learn what !?commands/actions there are? Pls point me to begginner stuff if you can.

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


Responsible
Supreme Hero
posted July 21, 2012 02:18 PM
Edited by JimV at 14:39, 21 Jul 2012.

Quote:
After some more testing I see that some random battles get me cursed grounds even when overlay is not present.


If you have a saved game which will reproduce these results, and can upload it somewhere where I can download it (or email it to me via the HC Profile tab), I will try to find out what is happening.  Otherwise I don't have enough information, since this has not happened in my (couple of hours of) testing.

General answer on ERM:  almost anything can be done, but it may take time to cover all the possible cases, for which this thread is living proof.  My approach to the immunities would be to use the EA:B experience-based immunities, which ignore the Orb of Vulnerablity and probably other artifact effects, but Bersy's approach is probably better.  Applying Anti-Magic (which does not remove beneficial spells) and then removing it might also work in some cases.  Try the Wizard's Tower WoG script for an example of learning spells from scrolls.

Now for my standard lecture on learning ERM:  RTFM (read the fracking manual).  It is the best computer manual I have ever used.  It explains the general mechanisms of an ERM script (triggers and receivers), explains what flags and variables are, contains beginner, advanced, and expert tutorials on script-writing, and a description of every command, often with examples.  I strongly recommend reading the whole manual before starting to script, just as a carpenter should learn all his tools before trying to make something.  Also, play some WoG maps and try the WoG objects, then look at the ERM scripts of the ones which interest you.  That is how I learned 95% of what I know about ERM.  The rest was practice and a few pointers from others here.

Master-learn's thread on ERM gives a list of FAQ and links to the latest updates of ERM Help.

P.S. For an example of a WoG map with lots of interesting scripts, try "The Dragon Slaughter" - see the thread here (on page 2 or so of this forum).  If after playing that you aren't impressed with the power of ERM, I won't know what to tell you (except that there are a lot more like it, by people such as Salamandre).  The link to the latest updates can be found near the end of thread (a Box.net address, if you search for it).

P.P.S. To Salamandre's point, some people don't like WoG because it is too powerful and disrupts the original balance of the game, which was arrived at by a team of programmers and testers over hundreds of maps.  A lot of people who use WoG think they are Shakespeare or Tolkien, creating epics - and a few are, but most ain't.

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


Admirable
Omnipresent Hero
Wog refugee
posted July 21, 2012 02:35 PM
Edited by Salamandre at 15:05, 21 Jul 2012.

Spell immunity can be given via basic script.

Example with Orrin at level 1:
!?BA0&1000;
!!HE0:O1; change to other color to avoid leveling process
!!HE0:S26/3; give resistance
!!HE0:X0/26; resistance specialty
!!HE0:Ed99999999;
!!HE0:Ed2047293140; 6024 level (20 would suffice I think, just not in mood for testing)
!!HE0:F99/99/99/99; set stats how you want
!!HE0:O0; change back to previous color.


My point was not a critic, but a warning. He started a thread being very picky about +1 speed in underground, which will spoil his perfect MP balanced map. Then he asks for orb, dragon father and dispel to act in a very unbalanced way, thus my remark. The idea was that all scripts are disabled except the underground fixes, so I don't see how it comes we talk now about WoG balance...

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


Hired Hero
posted July 21, 2012 08:08 PM

Salamandre, I got what I needed for that problem, but since I now got WoG, cant I experiment a little? If its epic bad I will rollback.

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


Responsible
Supreme Hero
posted July 21, 2012 08:34 PM

Light dawns (on how to get overlay battlefield scenes):

ZVSE

* TestUGbattle2, JHV, July 20,2012 - Random Search Method
* basic idea by Salamandre
* uses v982-v986, v995-v996, FU996

* SoD version setup:

!#UN:P5/0; [Map isn't wogified]
!#UN:P4/1; [Players can not demolish towns]
!#UN:J4/32768; standard SoD AI Thinking Radius
!#UN:P1/1; [(Arrow) Tower Experience: 0-WoG, 1-SoD]
!#UN:P3/1; [Commanders are not enabled]
!#UN:P900/0; [Stack experience is not enabled]
* Add HE:L and HE:X instructions for SoD Nagash here after reading  
* about them in ERM Help.

!#VRv984:T2048; initialize random seed for first battle

!?BA0&v1000=1; start of underground battle
!!VRy2:R1/v984; set random sequence (seed)
!!VRv984:T2048; set new random seed for next battle
!!VRv985:C0/0; set default surface location
!!UN:X?y3/?y4; get map size, no. of levels
!!VRy3:-1;
!!DO996/1/200/1:Py3; search for empty surface square randomly 200 times
!!TRv998/v999/1:T?v995/?v996/d/d/d/d/d/d; get terrain type & subtype (in case of shore)
!!TRv985/v986/0:T?v982/?v983/d/d/d/d/d/d; get surface terrain type
!!TRv985/v986/0:Tv995/v996/d/d/d/d/d/d; change surface terrain type temporarily
!!BA:Pv985/v986/0; reset battle position to surface
!!TRv998/v999/1:G?y5; get overlay
!!FU|y5=0/y5=225:E; exit if no overlay or winds
!!BA&y5=21:B22;         cursed
!!BA&y5=46:B9;          magic
!!BA&y5=227:B18;        holy
!!BA&y5=224:B20;        evil
!!BA&y5=222:B19;        clover
!!BA&y5=228:B17;        lucid
!!BA&y5=226:B14;        fiery
!!BA&y5=231:B15;        rocklands
!!BA&y5=229:B16;        clouds

!?FU996; x16= 1-200, x1=map size -1 (x,y=0 to x1)
!!VRy1:S0 Rx1; random x
!!VRy2:S0 Rx1; random y
!!UN:Ey1/y2/0; sets f1=1 if square occupied
!!FU&1:E; in which case we try again
!!TRy1/y2/0:G?y5; check for overlay
!!FU&y5<>0:E; try again if overlain
* found a place
!!VRv985:Cy1/y2;
!!VRx16:S999; end DO-loop

!?BF&1000/v1000=1; can't use BF for AI-AI battles
!!TRv998/v999/1:G?y5; get overlay
!!FU|y5=0/y5=225:E; exit if no overlay or winds
!!BU&y5=21:G2;         cursed
!!BU&y5=46:G1;         magic
!!BU&y5=227:G3;        holy
!!BU&y5=224:G4;        evil
!!BU&y5=222:G5;        clover
!!BU&y5=228:G6;        lucid
!!BU&y5=226:G7;        fiery
!!BU&y5=231:G8;        rocklands
!!BU&y5=229:G9;        clouds

!?BA1&v1000=1; end of UG battle
!!TRv985/v986/0:Tv982/v983/d/d/d/d/d/d; restore surface terrain type

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


Hired Hero
posted July 21, 2012 10:26 PM

Dude this is like a combo of terrain + overlays + nagash(from my complaint in another thread)? This is getting way too big for me to understand ;D

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

Tavern Dweller
posted March 28, 2013 11:13 AM

Hi, I just had the same problem about combat terrain.

My noob question:

I have a 2-level WoG map that I dont wogify (when it asks in start), so should I use JimV's last SoD setup? I just copy paste it all?

Now the big noob question, where do I copy paste this? Some ERM thing? erm_s, _se, _sm? I have no idea about these... \Heroes III\ ...?

Help please.

____________

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


Admirable
Omnipresent Hero
Wog refugee
posted March 28, 2013 11:17 AM

Well, it depends if you want your map wogified or not. It depends also if you use Era or wog 3.58. If you use era, I can compile this script for you in a mod which you enable for your map. If you use wog 3.58, then paste the script in a time event and set it to occur day 500 or higher (does not matter).
____________
Era II mods and utilities

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

Tavern Dweller
posted March 28, 2013 06:06 PM

Allright, thanks a million, it worked! I tested with some battles and they worked fine.

Now there are actual battles in the snow Beyond the Wall!

And if I would like to wogify the map I would just use the previous instructions in the 1. page? (before the SoD setup)

Thanks.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted March 28, 2013 06:09 PM
Edited by Salamandre at 18:09, 28 Mar 2013.

No, same script but remove all instructions (all the lines starting with !#), they prohibit map being wogified.

Except this one:

!#VRv984:T2048; initialize random seed for first battle

Leave it ok, it needs it.
____________
Era II mods and utilities

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 2 pages long: 1 2 · «PREV
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0537 seconds