|
Thread: Curio's Cheating Guide is online | This thread is pages long: 1 10 ... 19 20 21 22 23 ... 27 · «PREV / NEXT» |
|
Darkshadow
Legendary Hero
Cerise Princess
|
posted April 24, 2009 02:11 PM |
|
|
Maybe it's just Sovereign?
____________
|
|
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...
____________
|
|
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
|
|
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
____________
|
|
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!
|
|
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
____________
|
|
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'!
|
|
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.
|
|
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?
|
|
Warmonger
Promising
Legendary Hero
fallen artist
|
posted April 26, 2009 09:12 AM |
|
|
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.
|
|
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?
|
|
Warmonger
Promising
Legendary Hero
fallen artist
|
posted April 26, 2009 09:24 AM |
|
|
How about map script?
Mind the semicolons I added.
|
|
phantom
Tavern Dweller
|
posted April 26, 2009 09:44 AM |
|
|
*types all these commands into console manually*
|
|
Warmonger
Promising
Legendary Hero
fallen artist
|
posted April 26, 2009 09:47 AM |
|
|
The scripts were created to make things easier and automatic. Just try to use them
|
|
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...
|
|
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.
____________
|
|
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?
|
|
Warmonger
Promising
Legendary Hero
fallen artist
|
posted April 27, 2009 02:17 PM |
|
|
It is an archive, just with different extension. All programs that unpack typical archives will deal with it as well.
|
|
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
|
|
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)
____________
|
|
|