Heroes of Might and Magic Community
please log in.! Register | Today's Posts | Search! | FAQ/Rules | AvatarList | MemberList | Profile

<a href="http://www.game-advertising-online.com/" target=_blank>Game Advertising Online</a><br> banner requires iframes

Heroes 1 (Heroes 2 (Heroes 3 (Heroes 4 (Heroes 5 ()

Login:     Username:     Password:    
Heroes Community > Heroes 5 - Modders Workshop > Thread: Tales of Karador
Thread: Tales of Karador [ This thread is 69 pages long: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 (60) 61 62 63 64 65 66 67 68 69 ]
Kronos1000
Kronos1000


Promising
Famous Hero
Fryslân Boppe
posted October 26, 2008 10:38 AM

Well it's a hidden reference to GotP, he blames the Unicorn Emire for making it impossible to establish the Red Order.
____________

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


Honorable
Undefeatable Hero
Elite Assassin
posted October 26, 2008 11:40 AM

There's a new interesting function in 3.1 (undocumented by Nival)

It allows you to create a complex message box with up to 5 options to choose from (and on top of that a ok/cancel button, or just an ok one). Maybe you'll find it useful for some quests and other things

This is the syntax:


TalkBoxForPlayers(playersFilter, iconRef, iconTooltipRef, textRef, addTextRef, callback, mode, titleTextRef, selectTextRef, defaultOption, optionTextRef1 [, optionTextRef2 [, optionTextRef3 [, optionTextRef4 [, optionTextRef5] ] ] ])


Parameters explained:

playersFilter - Whom the dialog will be shown to, use constants from advmap-startup.lua, like in MessageBoxForPlayers (this is useful for Multiplayer, as the box may show for multiple players at the same time)

These are those constants:
PLAYERFLT_1 = 1
PLAYERFLT_2 = 2
PLAYERFLT_3 = 4
PLAYERFLT_4 = 8
PLAYERFLT_5 = 16
PLAYERFLT_6 = 32
PLAYERFLT_7 = 64
PLAYERFLT_8 = 128
PLAYERFLT_ALL = 255

Alternatively you can use the GetPlayerFilter(player) function. The player parameter is the player ID (1, 2, 3, etc) and it will return the appropriate filter from above.

iconRef - a ref to xdb file pointing to a texture, Icon that will be shown in top left corner of dialog. If it's '' or nil, big white square will be shown.

iconTooltipRef - ref to txt file with text that will appear when hovering mouse above icon.

textRef - text that would be shown beside icon. HOWEVER, it does not show. A BUG, probably. You may as well leave it empty (nil or '').

addTextRef - text that is shown below the buttons with options

callback - name of a function that will be called when player hits OK/Cancel button.

mode - 0 = ok only; 1 = ok/cancel

titleTextRef - Caption text in the upper part of dialog (not mandatory)

selectTextRef - Text that will be shown above options (not mandatory)

defaultOption - 0 = no default; 1+ = Option ID (which one you want to be selected by default)

optionTextRef - text for options. You must enter separate parameter for each option, up to 5 options possible.


The callback function has two parameters, the first is the player ID (the one who pressed ok/cancel) and the second the choice ID. 1 for first option, 2 for second, etc. If player hits Cancel, the second parameter will be 0. If TalkBox timed out (in multiplayer only), it will be -1.


Here is an example from the script I wrote for Elvin's Duel Map:

path = GetMapDataPath()

function NecroGive(player_id, choice)
 local Heroes = GetPlayerHeroes(player_id)
 local creature = 40
 local amount = 4

     if choice == 1 then creature = 152; amount = 130
 elseif choice == 2 then creature = 154; amount = 30
 elseif choice == 3 then creature = 155; amount = 13
 elseif choice == 4 then creature = 156; amount = 6 end

 AddHeroCreatures(Heroes[0], creature, amount)
end


TalkBoxForPlayers(GetPlayerFilter(player), "/Textures/HeroScreen/Skills/Necromancy_4.xdb#xpointer(/Texture)", nil, nil, path.."NecroDefault.txt", "NecroGive", 0, path.."NecroTitle.txt", path.."NecroRaise.txt", 5, path.."NecroRaise1.txt", path.."NecroRaise2.txt", path.."NecroRaise3.txt", path.."NecroRaise4.txt", path.."NecroRaise5.txt")


In the above script the player will have 5 options to choose from, and each one will give the player different creatures in different numbers. It has no Cancel button.

In our case, the player will have the option to get 130 Skeleton Warriors, 30 Poltergeists, 13 Vampire Lords, 6 Lich Masters OR 4 Wraiths.
____________
A deadly duo with Mytical.

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


Promising
Famous Hero
NCF Blacksmith
posted October 26, 2008 11:41 AM

Awesome... Continue

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


Supreme Hero
fallen artist
posted October 26, 2008 02:30 PM
Edited by Warmonger at 15:04, 26 Oct 2008.

Finally! Complex dialog scripts in one box It will find it's use in all singleplayer maps.

But I'm afraid you have already too many QPs, Asheera

EDIT: Added this post to heroes Wiki, it would be nice to reanimate that project.

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


Honorable
Undefeatable Hero
Elite Assassin
posted October 27, 2008 08:21 AM

If you're confused about some things about TalkBoxForPlayers feel free to ask.
____________
A deadly duo with Mytical.

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


Promising
Supreme Hero
Staright out of line
posted October 28, 2008 12:43 PM
Edited by DarkCrystal at 12:44, 28 Oct 2008.

Kronos, if you want your boss creatures not to die from harm touch or vorpal sword give them a crystal scales ability

 Send Instant Message | Send E-Mail | View Profile | Quote Reply
Kronos1000
Kronos1000


Promising
Famous Hero
Fryslân Boppe
posted October 28, 2008 02:40 PM
Edited by Kronos1000 at 16:43, 31 Oct 2008.

Thanks

@Asheera: Wow that's cool, I've always wanted to create a bank building in Heroes 5 this combobox will help me

@DarkCrystal: Well in the only map where you get to use the Celestial Dragonyou'll fight lots of Pit Lords and some Wraiths so in tht way I wanted to give that part of the Map some kind of difficulty.

-----------------------------------------------------------------------------

Edit: All right, the extra for Map 2 is a redesign, the layout is still the same only details are changed, empty areas have been filled up and the ambient has been changed once again:

Before:



After:



Before:



After:



And another good looking screenshot:



As you can see I wanted to make the map scarier and more exiting , I also gave Heresh a swampy feel. (I love swamp rock music )
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply
TSoD
TSoD


Promising
Famous Hero
NCF Blacksmith
posted November 01, 2008 11:26 AM

Your mapping talent is incredible ! I love your screens and what they show
____________
NCFBank,
the complete and homogen NCF
library.

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


Promising
Famous Hero
Fryslân Boppe
posted November 05, 2008 05:14 AM

Thanks

I'm sorry that the screenshots for Map 5 have been delayed, I hope I'll finish the event today (maybe tomorrow).
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply
Kronos1000
Kronos1000


Promising
Famous Hero
Fryslân Boppe
posted November 07, 2008 11:01 AM

Well here I am with screenshots of the last bonus event:

Map 5's event involves Temkhan's three trials if you fail you'll have to do a "strange" battle.

In the first Combat you'll have to destroy a huge Arcane Crystal with your catapult:


In the second one you'll have to reach the other side of the arena:



In the third one you'll have to drain Temkhan's mana by destroying his creatures, if he destroys one of your stacks he'll gain 10 mana.

(No creenshot)

Then you can reach Temkhan who gives you an Essence of Light this is an alternate way of finishing the map:




____________

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


Supreme Hero
fallen artist
posted November 07, 2008 11:08 AM

Hah, now that's somewhat interesting Especially the one with crossing the battlefield, how did you script it?

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


Supreme Hero
Bright angel
posted November 07, 2008 11:09 AM

I'm happy that you didn't abandoned this project. The new battles seem awesome
____________
Lol

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


Honorable
Undefeatable Hero
Elite Assassin
posted November 07, 2008 11:09 AM

How did you make that Catapult thing? It's great!
____________
A deadly duo with Mytical.

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


Supreme Hero
fallen artist
posted November 07, 2008 11:16 AM

I guess he copied the script from H5 final map Originally it was one of the most miserable features in entire game

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


Responsible
Legendary Hero
KAAAAAAAAAAAAATSZ!
posted November 07, 2008 11:41 AM

Kronos... I am so very thankful that you do not abandon this. I know you hear a lot of "You're great" "That's awesome" but I simply don't know how else to but it. Honestly that is some great work.

Thank you.
____________
Crusing through the OSM with Dagoth after midnight is awesome!!

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


Promising
Famous Hero
Fryslân Boppe
posted November 07, 2008 02:14 PM

quote:
Hah, now that's somewhat interesting Especially the one with crossing the battlefield, how did you script it?


I just put a position checker in a while loop so it constantly checks if one of your stacks is on the other side.

quote:
I'm happy that you didn't abandoned this project. The new battles seem awesome


Thank you!

quote:
How did you make that Catapult thing? It's great!


quote:
I guess he copied the script from H5 final map Originally it was one of the most miserable features in entire game


Well I didn't copy and paste it, because the Catapult apears automaticly if the is an Arena building wich I added in the Arena file. The rest has to to be set in a function called DefenderBuildingDeath.

quote:
Kronos... I am so very thankful that you do not abandon this. I know you hear a lot of "You're great" "That's awesome" but I simply don't know how else to but it. Honestly that is some great work.

Thank you.


Mainly, my motivation has returned now that I get some replies when people stopped posting I didn't feel like working on it anymore, now that I can get replies I enjoy it a lot more so thank you!
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply
Kronos1000
Kronos1000


Promising
Famous Hero
Fryslân Boppe
posted November 19, 2008 07:50 AM

It's time for some screenshots of the map I'm currently working on which by the way is Map 8:







Though these screenshots don't show it well, you can see that my mapping skills have improved greatly, if I say so myself.
____________

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


Honorable
Undefeatable Hero
Elite Assassin
posted November 19, 2008 07:57 AM

Beautiful screenshots
____________
A deadly duo with Mytical.

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


Promising
Famous Hero
NCF Blacksmith
posted November 19, 2008 01:20 PM

Nice
I find the volcano very good
____________
NCFBank,
the complete and homogen NCF
library.

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


Promising
Famous Hero
Fryslân Boppe
posted December 07, 2008 11:38 AM

Well Map 8 is visually finished so I'll show you some pictures:

Escape from the Underworld



Ygg-Chall's Border:

(Refused to upload

The grand canyon:



A Necro Quest Guard:




____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply
[ This thread is 69 pages long: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 (60) 61 62 63 64 65 66 67 68 69 ] < Prev Thread . . . Next Thread >
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.2534 seconds