|
|
Arhaeus
Tavern Dweller
|
posted January 30, 2008 03:56 AM |
|
|
It doesn't work. I placed the file in D:/H5/maps/3W/ambush01.txt. And the script is:
function Fambush01( heroname )
if GetObjectOwner( heroname ) == PLAYER_2 then
MessageBox(GetMapDataPath().."ambush01.txt");
StartCombat( heroname, nil , 3, 113, 1, 113, 1, 113, 1, nil);
Trigger( REGION_ENTER_AND_STOP_TRIGGER, "ambush01", nil);
end;
end;
Trigger( REGION_ENTER_AND_STOP_TRIGGER, "ambush01", "Fambush01");
What is wrong?
|
|
sfidanza
Promising
Supreme Hero
|
posted January 30, 2008 10:24 AM |
|
|
D:/H5/maps/3W/ambush01.txt can not be your map folder. Your map folder is where your map files are located, inside the .h5m archive. Alternatively, when you edit your map with the editor, you can place your file in:
Editor\H5MMods\YOURMAP\Maps\SingleMissions\YOURMAP\
You should find your map-tag.xdb and map.xdb files there, along with all the automatically generated text files. When you close your map in the editor, it will pack this folder again into the .h5m.
|
|
Arhaeus
Tavern Dweller
|
posted January 30, 2008 01:03 PM |
|
|
I've d tried that, and it didn't worked. I have put ambush01.txt in /Editor/H5MMods/2/Maps/Multiplayer/2/ , and I verified in 2.h5m and ambush01.txt is in /Maps/Multiplayer/2/.
I've d tried this scripts:
function Fambush01( heroname )
if GetObjectOwner( heroname ) == PLAYER_2 then
MessageBox(GetMapDataPath().."ambush01.txt");
StartCombat( heroname, nil , 3, 113, 1, 113, 1, 113, 1, nil);
Trigger( REGION_ENTER_AND_STOP_TRIGGER, "ambush01", nil);
end;
end;
Trigger( REGION_ENTER_AND_STOP_TRIGGER, "ambush01", "Fambush01");
and
function Fambush01( heroname )
if GetObjectOwner( heroname ) == PLAYER_2 then
MessageBox("/Maps/Multiplayer/2/ambush01.txt");
StartCombat( heroname, nil , 3, 113, 1, 113, 1, 113, 1, nil);
Trigger( REGION_ENTER_AND_STOP_TRIGGER, "ambush01", nil);
end;
end;
Trigger( REGION_ENTER_AND_STOP_TRIGGER, "ambush01", "Fambush01");
and
function Fambush01( heroname )
if GetObjectOwner( heroname ) == PLAYER_2 then
MessageBox("Maps/Multiplayer/2/ambush01.txt");
StartCombat( heroname, nil , 3, 113, 1, 113, 1, 113, 1, nil);
Trigger( REGION_ENTER_AND_STOP_TRIGGER, "ambush01", nil);
end;
end;
Trigger( REGION_ENTER_AND_STOP_TRIGGER, "ambush01", "Fambush01");
What should I do?
|
|
sfidanza
Promising
Supreme Hero
|
posted January 30, 2008 04:48 PM |
|
Edited by sfidanza at 20:54, 30 Jan 2008.
|
Send me the map: stephane.fidanza (at) gmail.com
I'm sure it's nothing big. Maybe your text file encoding (should be UTF-16LE)...
Edit: as I suspected, it was simply a text encoding issue. The text was windows-1252. Changing the encoding to UTF-16LE fixed the problem.
|
|
InfernoX880
Promising
Famous Hero
|
posted January 30, 2008 11:47 PM |
|
|
I don't know if any of you here are interested in the Gods Faction thread, but I was wondering if it was possible to make creatures recruitable in the Tear of Asha building?
|
|
Cepheus
Honorable
Legendary Hero
Far-flung Keeper
|
posted January 30, 2008 11:52 PM |
|
|
It seems so: Kronos1000 and VokialBG attempted to make level 8 creatures recruitable from the Tear of Asha back when GotP was still alive. However I don't know how to do it myself, so this post's usefulness is limited
|
|
lord_Evil
Famous Hero
Evil lolcat
|
posted February 01, 2008 12:20 PM |
|
|
Why cant i do any MODs? i do it by the instrutions.
data.pakarchiveextract to. But when i extract it, it just coming out as one file. Tell me what is wrong? maybe its because i downloaded the game from the Emule.
____________
|
|
VokialBG
Honorable
Legendary Hero
First in line
|
posted February 01, 2008 12:56 PM |
|
Edited by VokialBG at 12:57, 01 Feb 2008.
|
What you exactly mean with "it just coming out as one file"?
Try to update your WinRar if its version is old.
____________
|
|
Lord_Evil
Famous Hero
Evil lolcat
|
posted February 01, 2008 01:19 PM |
|
|
Its like insted of all of those files (towns,monsters and all the other stuff) it comes out just one data.pak file.
____________
|
|
VokialBG
Honorable
Legendary Hero
First in line
|
posted February 01, 2008 01:52 PM |
|
|
hmmm if you want to extract all the files and folders just open data.pak with WinRaR (latest version, check here for it). Mark all folders and files in data.pak (Ctrl + A) and extract them.
____________
|
|
Bloodly
Hired Hero
|
posted February 01, 2008 07:20 PM |
|
Edited by Bloodly at 19:50, 01 Feb 2008.
|
...Very basic 'modder' here, with an odd question.
Poking around the files, I notice that the majority of the buildings in 'Game Mechanics/TownBuildingsSharedStats' have the line, <Creature>CREATURE_UNKNOWN</Creature>.
The implication is that any building can have a creature(Any creature?) assigned to it for hiring, especially given the Dwellings have actual creature names in that area.
I tried with this, changing 'CREATURE_UNKNOWN' in the Preserve Town Hall xdb file to 'CREATURE_WOLF'. That's all-nothing else. Thankfully, no problems in-game(No sudden crashing or anything), but no wolves for hiring when I built the Town Hall-an apparent failure(Though I'll admit, I didn't bother advancing to Tier 4, and the Wolf IS a Tier 4 creature...Nope. Just checked with a loaded game. Nothing new.).
Maybe some of you have experimented with adding creatures in a similar way and know what the problem might be?
Of course, there's always the danger that having the new creature will push off another creature from the town hiring list...I'll worry about that after this works, if at all possible.
Thank you for your time.
____________
|
|
fiur
Promising
Supreme Hero
Map Creator
|
posted February 01, 2008 08:24 PM |
|
|
Quote: Why cant i do any MODs? i do it by the instrutions.
data.pakarchiveextract to. But when i extract it, it just coming out as one file. Tell me what is wrong? maybe its because i downloaded the game from the Emule.
no comment needed... !!
____________
|
|
shinyhalo
|
posted February 02, 2008 12:40 AM |
|
|
Questions
1. In the default game HoMM5, 1 sprite casting Wasp Swarm does the exact same damage as 4 sprites casting Wasp Swarm.
I would like for spell damage to increase depending on the number of units like regular melee/shooter damage so that 4 sprites casting Wasp Swarm do 4x as much damage as 1 sprite casting Wasp Swarm.
Please tell me how, if it's possible. Thanks.
2. Do randomly spawned units of the same race offer to Join your army more frequently than other races? If this can be changed, what file is it located in?
Thanks
____________
|
|
Hellburn
Famous Hero
The efreet
|
posted February 02, 2008 11:59 AM |
|
|
Two short questions:
1. How to change basic level of Sorrow to advanced or expert level in Sorrow Strike?
2. How to change resource produced by resource silo?
____________
|
|
magnomagus
Admirable
Legendary Hero
modding wizard
|
posted February 02, 2008 12:30 PM |
|
|
@Shiny:
1.Impossible because creature amount is connected with spellpower, even if every creature would mean +1 extra spellpower, the calculation of the damage will prevent it from working that way. If you read the fanmanual you will understand the system better.
2.Creatures from the same race are set to join earlier, specialization creatures even more.
@Hellburn:
1. Almost sure it is impossible
2. In data.pak: GameMechanics\Reftables\TownTypesInfo.xdb
____________
MMH5.5 Downloads | MMH5.5 Translations | MMH5.5 FAQ
|
|
InfernoX880
Promising
Famous Hero
|
posted February 02, 2008 05:27 PM |
|
|
Would it be possible to get a building like the Memory Mentor in your city? Or maybe add a Memoery Mentor function to your Marketplace?
I ask because I really hate the hero development on maps with no memory mentors.
|
|
Cepheus
Honorable
Legendary Hero
Far-flung Keeper
|
posted February 02, 2008 05:32 PM |
|
|
I'm afraid that is most likely impossible.
|
|
InfernoX880
Promising
Famous Hero
|
posted February 02, 2008 05:34 PM |
|
|
Is there any way you can think of to integrate Memory Mentor functions into a common object found on all or most maps?
|
|
Cepheus
Honorable
Legendary Hero
Far-flung Keeper
|
posted February 02, 2008 05:39 PM |
|
|
From what I can see here every building has an ID tag which determines its specific function. So I think you can only replace one building's functions with those of others, but you can't integrate them together.
|
|
Arhaeus
Tavern Dweller
|
posted February 02, 2008 09:17 PM |
|
|
How can I get the effect of "Spring of Eldritch Renewal"? this script sets doubles current mana but only equal to hero's maximum mana, not equal with his double maximum mana.
function geweas_mana(heroname)
if heroname == GEWEA then
MessageBox(GetMapDataPath().."gh.txt");
hero_mana_double = 2*GetHeroStat(heroname, STAT_MANA_POINTS);
ChangeHeroStat(heroname, STAT_MANA_POINTS, hero_mana_double);
end;
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "gewea's_mana" , "geweas_mana");
|
|
|