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: Curio's Cheating Guide is online
Thread: Curio's Cheating Guide is online This thread is 27 pages long: 1 10 ... 19 20 21 22 23 ... 27 · «PREV / NEXT»
Darkshadow
Darkshadow


Legendary Hero
Cerise Princess
posted April 24, 2009 02:11 PM

Maybe it's just Sovereign?
____________

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

Tavern Dweller
posted April 24, 2009 03:57 PM

Quote:
Maybe it's just Sovereign?


Nope, tried it and it says Hero "Sovereign" not exist...
____________

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


Promising
Supreme Hero
posted April 24, 2009 07:30 PM

Quote:
Quote:
Maybe it's just Sovereign?


Nope, tried it and it says Hero "Sovereign" not exist...



Try to open data/texts.pak

and look for:

/Text/Game/Heroes/Persons/Inferno/Sovereign/Name.txt



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


Honorable
Undefeatable Hero
Elite Assassin
posted April 24, 2009 07:48 PM

The internal name is Kha-Beleth, checked the MapObjects\Inferno\Sovereign.(AdvMapHeroShared).xdb file
____________

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


Promising
Supreme Hero
posted April 24, 2009 07:50 PM

Quote:
The internal name is Kha-Beleth, checked the MapObjects\Inferno\Sovereign.(AdvMapHeroShared).xdb file


ah!

« internal » .... ooh!


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

Tavern Dweller
posted April 24, 2009 09:31 PM

Quote:
The internal name is Kha-Beleth, checked the MapObjects\Inferno\Sovereign.(AdvMapHeroShared).xdb file


It works!  Thanks
____________

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

Tavern Dweller
posted April 25, 2009 08:12 PM
Edited by phantom at 20:25, 25 Apr 2009.

I've made all the file edits (GAMEFOLDER\profiles\autoexec.cfg & My Documents\My Games\Heroes of Might and Magic V\Profiles\MYPROFILE\input.cfg) and the console doesn't want to show up! (Of course, I load a saved game before pressing `) I tried to edit GAMEFOLDER\profiles\default_profile\input.cfg but still no luck! I've tried to bind F12 rather than ` (in both files) and it still doesn't work!

It all is about original game (not HoF, not ToE), main menu say that the version is 1.50 Help!

EDIT: Somehow it works. I've just moved bind show_console '`' from the end to after bind confirm_action 'NUM_ENTER'!

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

Tavern Dweller
posted April 25, 2009 11:47 PM

Opposite for GiveHeroSkill?

Is there a way to remove a hero's skill or ability?  I have a campaign hero that started off with a skill I don't want and I'd like to give him something different.

I'm using 1.60 US Limited Edition if that makes a difference.  Thanks.

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

Tavern Dweller
posted April 26, 2009 08:23 AM

Another question: is there a way to make a script which runs a set of cheats? Like

@MakeHeroAllmighty("Isabell", 2, 1, 4, 1, 6, 1, 8, 1, 10, 1, 12, 1, 14, 1, 100)

would give Isabel 100 creatures of type 2, 1 ... 14, 1 then give her all spells and set all resources to 10000. Is there a way to simplify this?

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


Promising
Legendary Hero
fallen artist
posted April 26, 2009 09:12 AM
Edited by Warmonger at 09:21, 26 Apr 2009.


function MakeHeroAllmighty
(
  hero,
  creature1,
  creature2,
  creature3,
  creature4,
  creature5,
  creature6,
  creature7,
  creaturesnumber,
  player
)

  for i = 1, 7 do
     AddHeroCreatures (hero, creaturesnumber, creature..i);
  end;
  for i = 1, 51 do
     TeachHeroSpell (hero, i);
  end;
  for i = 1, 7 do
     SetPlayerResources (player, i, 10000);
  end;
end;


Did not test it, but it should go like this. Lua is not demanding in such tasks.

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

Tavern Dweller
posted April 26, 2009 09:22 AM

Quote:

function MakeHeroAllmighty
(
  hero,
  creature1,
  creature2,
  creature3,
  creature4,
  creature5,
  creature6,
  creature7,
  creaturesnumber,
  player
)

  for i = 1, 7 do
     AddHeroCreatures (hero, creaturesnumber, creature..i)
  end
  for i = 1, 51 do
     TeachHeroSpell (hero, i)
  end
  for i = 1, 7 do
     SetPlayerResources (player, i, 10000);
  end
end;


Did not test it, but it should go like this. Lua is not demanding in such tasks.


Okay, and where to put it?

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


Promising
Legendary Hero
fallen artist
posted April 26, 2009 09:24 AM
Edited by Warmonger at 09:24, 26 Apr 2009.

How about map script?

Mind the semicolons I added.

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

Tavern Dweller
posted April 26, 2009 09:44 AM

*types all these commands into console manually*

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


Promising
Legendary Hero
fallen artist
posted April 26, 2009 09:47 AM
Edited by Warmonger at 09:47, 26 Apr 2009.

The scripts were created to make things easier and automatic. Just try to use them

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

Tavern Dweller
posted April 26, 2009 09:52 AM

Quote:
The scripts were created to make things easier and automatic. Just try to use them

I suppose that I have to put the function you provided into a file, but I cannot understand what file is that. If I were making a map, I could put it into the map script. But now...

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


Honorable
Undefeatable Hero
Elite Assassin
posted April 27, 2009 03:29 AM

One way is to add that function to the "scripts\common.lua" file in data.pak, but do NOT modify data.pak. Simply extract this file in the data folder with the same path. So you should have a H5 DIR\data\scripts\common.lua file.

Then simply edit this file and add that function and it will work when calling it with the console in game.
____________

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

Tavern Dweller
posted April 27, 2009 12:23 PM

Quote:
One way is to add that function to the "scripts\common.lua" file in data.pak, but do NOT modify data.pak. Simply extract this file in the data folder with the same path. So you should have a H5 DIR\data\scripts\common.lua file.

Then simply edit this file and add that function and it will work when calling it with the console in game.


Sorry for making so much trouble, but how do I "extract" the file, it it's not an archive?

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


Promising
Legendary Hero
fallen artist
posted April 27, 2009 02:17 PM
Edited by Warmonger at 14:18, 27 Apr 2009.

It is an archive, just with different extension. All programs that unpack typical archives will deal with it as well.

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

Tavern Dweller
posted April 27, 2009 02:24 PM
Edited by phantom at 16:50, 27 Apr 2009.

Ah, I see. As soon as I renamed it to data.zip, WinRAR became able to extract it.

EDIT: When I edited the file and launched the game, it couldn't detect the new functions

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


Honorable
Undefeatable Hero
Elite Assassin
posted April 27, 2009 08:39 PM

Was there any error reported in the console? I mean when opening it, before typing your function? Maybe there was a syntax error in Warmonger's function.

Also, if not, when entering the function in the console, did you get any error? And did you try to type with both "@" and without? (I'm not sure about custom made functions, how they're supposed to be written)
____________

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 27 pages long: 1 10 ... 19 20 21 22 23 ... 27 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0806 seconds