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: How to make my own script
Thread: How to make my own script
Orc
Orc


Famous Hero
posted August 26, 2016 04:16 AM

How to make my own script


Hello

So, I have reach a point where I could roughly understand many of wog scripts (wog 1.58f)

I did like many of the changes wog scripts did (particularly script 37 and scrpit 39 rebalanced hero abilities and specialty boost)

however there are still some changes I did not like in script 37. I also want to add some changes inspired by script 37 (E.g. make neela start with 3 armor, and make Torosar with archery specialty and fiur with offence specialty)

So, I was thinking of making my own script, implementing collection of changes from many scripts and creating few more. I already put some scripts in some maps, but it takes lot of time to do that in each map, so I want to out it all in one script and make it work for all maps. How can I do this? if this is not possible, or very tedious, maybe I can have the script in particular file  (OrcScript.erm), and then write a code in each map saying (run OrcScript.erm) is that possible?


I had the solution below in mind, what do you think of it? is it applicable with no problems?

lets say I have script73.erm and I never use it. Is it possible to delete that script, or give it another name, and then write my own script and naming it script73.erm (i.e. change the whole thing in that script). can that work with no problems? I am thinking that the only problem that I will face will be just that that text will be for the old script but the actual thing that will run will all be my changes only. Is that true? or you think something else can pop up?


I am not sure if anything else is needed, but if you think there is something in this regard that I am ignorant about, feel free to put it here too

Thanks!

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


Admirable
Omnipresent Hero
Wog refugee
posted August 26, 2016 08:42 AM

I see you are not familiar with Era. Mods support. Which means you modify any erm original script, you place it in your mod, activate your mod and now the modified erm file will have priority over the one from WoG mod.

Check structure of wog revised mod, to understand the pattern. All Era mods available at wakeofgods.org/mods.

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


Famous Hero
posted August 26, 2016 11:44 AM

yea... I actually have no idea of this mod :|

is it different than that era II ? I tried installing era 2 but it didnt work

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


Admirable
Omnipresent Hero
Wog refugee
posted August 26, 2016 12:07 PM

How that it didn't work? Have troubles double clicking on an executable?

Press twice.

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


Famous Hero
posted August 26, 2016 09:43 PM

It gives me error as soon as I click new game single player

It can only run load games

message saying [attempt to read inaccessable data at 0x000000] (i dont know how many zeroes)

and then it showed me the latest executed erm reciever (long code)


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

Hero of Order
Part of the furniture
posted August 27, 2016 01:47 AM

Could it be an issue of not having enough rights to run the exe? Did you try running it as a user with admin rights on your PC?

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


Admirable
Omnipresent Hero
Wog refugee
posted August 27, 2016 05:39 AM

Also make sure the install goes right. You need Heroes complete, install Era 2 over it(specify the exact game path), then open mod manager -an icon is now available on your desktop-, make sure only wog mod is activated before first use, then should work well.

For win 7 and more, the game should not be installed in the path by default,which is Program Files. This was for XP only.

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