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 > MapHaven Guild > Thread: Heroes 5 Map Editor Help and Tips...
Thread: Heroes 5 Map Editor Help and Tips... This thread is 43 pages long: 1 ... 7 8 9 10 11 ... 20 30 40 43 · «PREV / NEXT»
Warmonger
Warmonger


Promising
Legendary Hero
fallen artist
posted August 05, 2008 09:20 PM

Could you please first specify WHAT does "train Dead Knights" mean?

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


Known hero
posted August 05, 2008 09:26 PM

when u enter that mausoleum, u will be able to buy any knights.

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


Promising
Legendary Hero
fallen artist
posted August 05, 2008 09:30 PM
Edited by Warmonger at 21:34, 05 Aug 2008.

To create the dwelling you need to modify the object and its references. You can create new one via editor, but getting it to work is beyond my understanding so far
Anyway, here's are the steps:

-Place any dwelling on a map
-Use [...] button in references option to create new exported object.
-Choose model and configure its physical parameters (mostly copying them from standard ones)
-Choose guards and avaliable creatures.
Export object. And pray.

BTW, both Tapani and Idan used custom Death Knights dwelling in their RMGs, so it's a good way to get them. Just contact Idan and he may help you.

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


Known hero
posted August 05, 2008 09:33 PM

i have tapanis RMG 1.05 but always, when i want to create map with other settings than are default settings it crash

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


Known Hero
Wyld Mapper
posted August 06, 2008 06:38 PM
Edited by rdeford at 20:01, 06 Aug 2008.

@ Misokiller--

I still don't think you have realized the difficulty of what you ask. Here is the functions I used in my map King's Quest map to sell Succubus "slaves" to the player. If you read the guide, and spend a little time with learning H5 scripting, you should be able to understand what is going on in these functions so you can adapt them to sell Death Knights instead of Succubus's. I am reluctant to do more than this for  you.


-------------------------------------------
-- slave trader offers slaves to player
-------------------------------------------
function sellSlaves()

slaverSlaves = random(10) + 3; -- number of slaves in slave trader
local player = GetCurrentPlayer();
local playerGold = GetPlayerResource(PLAYER_1, GOLD);
local slaveCost = (slaverSlaves * 300); -- calculate the cost to buy the set of slaves
local currentWeek = GetDate(WEEK);

-- set up the control switch ---
switch = 0 -- by default, player is not player_1

if(player == PLAYER_1) then -- ok, it's player_1
switch = 1
end;

if(switch == 1 and currentWeek == weekBought) then -- oops, no slaves to sell until next week
switch = 2
end;

if(switch == 1 and playerGold < slaveCost) then switch = 3 end; -- oops, not enough gold to buy

if(switch == 1) then switch = 4 end; -- ok, we have P1 & slaves & gold, so let's do business

-- do the work ---
if(switch == 2) then  -- sorry, no slaves
MessageBox(path.."noSlaves.txt");
end;

if(switch == 3) then -- sorry, not enough gold
MessageBox(path.."noGold.txt");
end;

if(switch == 4) then -- want to buy Y/N?
QuestionBox({path.."sellSlaves.txt"; numSlaves = slaverSlaves, gold = slaveCost}, "slaveBuyYes", "slaveBuyNo");
end;
end;
 Trigger(OBJECT_TOUCH_TRIGGER, "slaveTrader_1", "sellSlaves");
-------------------------------------------
-- player buys slaves
-------------------------------------------
function slaveBuyYes() -- player wishes to buy slaves

local playerGold = GetPlayerResource(PLAYER_1, GOLD);
local slaveCost = (slaverSlaves * 300);

playerGold = playerGold - slaveCost; -- calculate player's gold less the cost of the slaves

SetPlayerResource(PLAYER_1, GOLD, playerGold); -- take the money from the player

heroesInRegion = GetObjectsInRegion("slaver1", OBJECT_HERO); -- returns a Lua table with "names" of all heros in region
heroName = heroesInRegion[0]; -- get the first "name" in the table (NOTE: It is the only name in the table.)

MessageBox(path.."slaveBuyYes.txt");
AddHeroCreatures(heroName, 22, slaverSlaves); -- give slaves to hero
ChangeHeroStat(heroName, STAT_MORALE, 3); -- give morale boost to hero
ShowFlyingSign(path.."getMoral.txt", "slaveTrader_1", PLAYER_1, 6);
weekBought = GetDate(WEEK); -- set weekBought to current week to prevent multiple buys in one week
end;
---------------------------------------
-- player does not buy slaves
---------------------------------------
function slaveBuyNo()
MessageBox(path.."slaveBuyNo.txt");
end;

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


Honorable
Undefeatable Hero
Elite Assassin
posted August 06, 2008 06:40 PM
Edited by Asheera at 18:41, 06 Aug 2008.

When posting code, place it inside [courier]code[/font] tags

It'll look much better

Example:

function f()
  sleep(100)

  if(a > 10) then
    a = 10
  end
end

____________

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


Known hero
posted August 06, 2008 09:14 PM

but how can i give script on my map?
____________
Sorry for my English. I am young and i am not from country where i need to speak english

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


Promising
Legendary Hero
fallen artist
posted August 06, 2008 09:20 PM

Ignorance is a miss.

Quote:
Download The Basics of Heroes V Scripting ver. 2.0 for H5, HOF, & ToTE from here: http://www.celestialheavens.com/viewpage.php?id=567

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


Known hero
posted August 06, 2008 09:22 PM
Edited by misokiller at 22:24, 06 Aug 2008.

i have that, but im so lazy, i dont read it ^,^

Edit: ok, i gonna read it now. T,T cos i dont know anything about scripting

what the hell, it have 29 pages

i tried something but it dont work something like this is in scripting guide 2.0:
StartDialogScene ()
MessageBox ("lol.txt") ;
end;
____________
Sorry for my English. I am young and i am not from country where i need to speak english

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


Known Hero
Wyld Mapper
posted August 06, 2008 11:09 PM
Edited by rdeford at 23:13, 06 Aug 2008.

Quote:
i have that, but im so lazy, i dont read it ^,^

Edit: ok, i gonna read it now. T,T cos i dont know anything about scripting

what the hell, it have 29 pages

i tried something but it dont work something like this is in scripting guide 2.0:
StartDialogScene ()
MessageBox ("lol.txt") ;
end;


The Guide is not all that long. The last section of the Guide is a list of codes. Don't read it until you need a code for your script.

That script you tried to use is a code fragment from one of the example screenshots that was explaining script layout. As such, it won't work the way you did it.

You cannot just type code fragments into the script and expect them to do anything. Everything you put in the script must consist of complete, legal commands, that are correctly related to other elements in the script where required, and correctly related to objects and events on the map where required.

Be patient. Read the Guide. Enable the console as it says. Then, look at the scripts for other maps. For example, play my map the Virgin of Ponce, Episode 1. It has a good, but simple script. Watch all custom or unique events that happen as you move around the map and play the game. Then look at the script and figure out how they were done. Refer to the Guide when you get stuck. Once you have done all these tasks, try to write your first simple script code.

As questions here on this forum about your first scripting work, and about enabling the console if you need it. We will help.



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


Known hero
posted August 07, 2008 07:21 AM
Edited by misokiller at 09:33, 07 Aug 2008.

i have standard version, and where can i download it?

i learned many command on other games by waching created maps, but in h5 i dont see any new map

i found your map at maps4heroes.com

map editor foun any error ?!
Cant load C:\programfiles\ubisoft\heroes5\maps\thevirginepisode-1.h5m file (the file may be corrupted, file versions unsupported or youu are trying to load map from outside the [game installation folder]\maps folder)
now i saw its version : hammers of fate. damn i have just standard
____________
Sorry for my English. I am young and i am not from country where i need to speak english

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


Known Hero
Wyld Mapper
posted August 07, 2008 04:30 PM

Quote:
i have standard version, and where can i download it?

i learned many command on other games by waching created maps, but in h5 i dont see any new map

i found your map at maps4heroes.com

map editor foun any error ?!
Cant load C:\programfiles\ubisoft\heroes5\maps\thevirginepisode-1.h5m file (the file may be corrupted, file versions unsupported or youu are trying to load map from outside the [game installation folder]\maps folder)
now i saw its version : hammers of fate. damn i have just standard


Don't worry about any errors found by the map editor. They are meaningless. The only errors you need worry about are errors that appear on the console that can be enabled and viewed while playing the game it self.

Yes, you do need HOF to play my map. Sorry. As I recall, Seize the Throne by Grumpy Old Wizard, is a standard H5 map that has some simple scripting that is quite interesting.

If you are serious about H5 and scripting, I would skip the HOF expansion and get Tribes of the East. It is a stand alone game so you don't need any of the earlier H5 games. It will run maps for all previous versions of the game, and you get the best editor, the most, advanced scripting features, and all the new factions.

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


Known hero
posted August 07, 2008 04:31 PM
Edited by misokiller at 16:35, 07 Aug 2008.

i see console but there is nothing: just startup items and hero start without army, nothng other

im tryng that map seize the throne

EDIT: i will have both expansions in week i think, but it will this month
____________
Sorry for my English. I am young and i am not from country where i need to speak english

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


Known Hero
Wyld Mapper
posted August 07, 2008 04:50 PM

If you don't see any errors on the console, that's GOOD. That's the way it is supposed to look when you play a map in the game.

Sounds like you are off to a good start. Good luck!

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


Known hero
posted August 07, 2008 04:55 PM
Edited by misokiller at 17:21, 07 Aug 2008.

there isnt errors but, nothnig happend

where can i see scripts on that map seize the throne
____________
Sorry for my English. I am young and i am not from country where i need to speak english

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


Known Hero
Wyld Mapper
posted August 07, 2008 08:10 PM

Quote:
there isnt errors but, nothnig happend

where can i see scripts on that map seize the throne


Not all script actions show up immediately. Most are triggered by specific events that happen in the map as the player does things. So, you are going to have to play this map and take notes as you go along.

To see the script:

 1. Open the map in the Editor. View/Map Properties to display the screen.

 2. Click on the Script tab.

 3. Click the Edit Script button.

Grumpy Old Wizard, the author of the map, did a good job of placing comments in the map. So, if you've read the scripting guide and the functions PDF, you should be able to figure out what's doing what and when it is doing it.





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


Known hero
posted August 07, 2008 08:20 PM

i opened edit script, but it was empty, i hate my editor

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


Known Hero
Wyld Mapper
posted August 08, 2008 02:26 AM

Quote:
i opened edit script, but it was empty, i hate my editor


You must open the Seize the Throne map with the editor. I did it myself and the script is not empty. You must have inadvertently started a new map instead of opening the Seize the Throne map.

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


Known hero
posted August 08, 2008 06:33 AM
Edited by misokiller at 08:02, 08 Aug 2008.

not, i opened that map, press M like map properties, script tab, under button edit script, was something writen and i press edit script and empty box was there

i know this is wrong topic, but i dont know where i should post this:
whats this?? and this??
____________
Sorry for my English. I am young and i am not from country where i need to speak english

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


Known Hero
Wyld Mapper
posted August 08, 2008 02:54 PM

Regarding empty script: The process you describe works for me. I am running Windows XP. If you are running Vista, that might be the problem, but I cannot be sure of it. Maybe you should reinstall the game and the patches. Start with patch 4, and do not install 1, 2, and 3.

Regarding screenshots: I don't understand your question. The screenshots show the H5 hire screen. You can hire these creatures for the castle garrison. Then you can put them into the army of a visiting hero. This is so basic to playing H5 that it is hard for me to believe I am understanding your question correctly. You might need to read the game manual that came with the game in order to learn how to play it.

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 43 pages long: 1 ... 7 8 9 10 11 ... 20 30 40 43 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1452 seconds