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 5 - Modders Workshop > Thread: Adding Console Scripts
Thread: Adding Console Scripts
cruser42
cruser42

Tavern Dweller
posted April 26, 2007 11:02 PM

Adding Console Scripts

Hi First Post!

  I've been trying to insert a script into the game that i could run  from within the main campaign using the console and i haven't been having much luck .

The idea is that it executes a larger number of cheat commands than i care to type over and over and over.....

I've tried creating the script and inserting it as both a .txt and a .lua file into the data.pak so far but that doesn't seem to be working.

I was wondering if anyone here knows how to do this, or if its even possible.

Thanks

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


Promising
Famous Hero
that wants your brainz...
posted April 26, 2007 11:12 PM

Yes, it IS possible

First look in the scripts folder in data.pak; you should find several script files. Can't remember which one is the main one but see if you can figure that out. In that file you should include the .lua file you created with the functions (cheats) you want, or simply add the functions directly to that file. Then in game just type @function_name(parameters) and your function will execute

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

Tavern Dweller
posted April 27, 2007 01:50 AM

I just gave it a shot and inserted the script into advmap-common.lua and  it worked!!!!

thanks so much!!!!

now for some *ahem* modifications *ahem*
____________

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