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 ]
New Server | HOMM1: info forum | HOMM2: info forum | HOMM3: info forum | HOMM4: info forum | HOMM5: info forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 5 - Modders Workshop > Thread: Tales of Karador
Thread: Tales of Karador This thread is 69 pages long: 1 10 20 30 40 50 ... 58 59 60 61 62 ... 69 · «PREV / NEXT»
Kronos1000
Kronos1000


Promising
Supreme Hero
Frysln Boppe
posted October 26, 2008 03:38 PM

Well it's a hidden reference to GotP, he blames the Unicorn Emire for making it impossible to establish the Red Order.
____________
Hwr cwom mearg? Hwr cwom mago?
Hwr cwom maumgyfa? - 'The Wanderer'

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


Honorable
Undefeatable Hero
Elite Assassin
posted October 26, 2008 04:40 PM

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.
____________

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


Promising
Famous Hero
NCF Blacksmith
posted October 26, 2008 04:41 PM

Awesome... Continue

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


Promising
Legendary Hero
fallen artist
posted October 26, 2008 07:30 PM
Edited by Warmonger at 20: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 | Quote Reply | Link
Asheera
Asheera


Honorable
Undefeatable Hero
Elite Assassin
posted October 27, 2008 01:21 PM

If you're confused about some things about TalkBoxForPlayers feel free to ask.
____________

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


Promising
Supreme Hero
Staright out of line
posted October 28, 2008 05:43 PM
Edited by DarkCrystal at 17: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 | Link
Kronos1000
Kronos1000


Promising
Supreme Hero
Frysln Boppe
posted October 28, 2008 07:40 PM
Edited by Kronos1000 at 21: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 )
____________
Hwr cwom mearg? Hwr cwom mago?
Hwr cwom maumgyfa? - 'The Wanderer'

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


Promising
Famous Hero
NCF Blacksmith
posted November 01, 2008 04:26 PM

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 | Link
Kronos1000
Kronos1000


Promising
Supreme Hero
Frysln Boppe
posted November 05, 2008 11: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).
____________
Hwr cwom mearg? Hwr cwom mago?
Hwr cwom maumgyfa? - 'The Wanderer'

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


Promising
Supreme Hero
Frysln Boppe
posted November 07, 2008 05:01 PM

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:




____________
Hwr cwom mearg? Hwr cwom mago?
Hwr cwom maumgyfa? - 'The Wanderer'

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


Promising
Legendary Hero
fallen artist
posted November 07, 2008 05:08 PM

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 | Quote Reply | Link
Guarder
Guarder


Supreme Hero
posted November 07, 2008 05:09 PM

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

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


Honorable
Undefeatable Hero
Elite Assassin
posted November 07, 2008 05:09 PM

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

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


Promising
Legendary Hero
fallen artist
posted November 07, 2008 05:16 PM

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 | Quote Reply | Link
Azagal
Azagal


Honorable
Undefeatable Hero
Smooth Snake
posted November 07, 2008 05:41 PM

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.
____________
"The superior man is modest in
his speech but exceeds in his
actions." Confucius

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


Promising
Supreme Hero
Frysln Boppe
posted November 07, 2008 08: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!
____________
Hwr cwom mearg? Hwr cwom mago?
Hwr cwom maumgyfa? - 'The Wanderer'

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


Promising
Supreme Hero
Frysln Boppe
posted November 19, 2008 01:50 PM

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.
____________
Hwr cwom mearg? Hwr cwom mago?
Hwr cwom maumgyfa? - 'The Wanderer'

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


Honorable
Undefeatable Hero
Elite Assassin
posted November 19, 2008 01:57 PM

Beautiful screenshots
____________

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


Promising
Famous Hero
NCF Blacksmith
posted November 19, 2008 07: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 | Link
Kronos1000
Kronos1000


Promising
Supreme Hero
Frysln Boppe
posted December 07, 2008 05:38 PM

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:




____________
Hwr cwom mearg? Hwr cwom mago?
Hwr cwom maumgyfa? - 'The Wanderer'

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 69 pages long: 1 10 20 30 40 50 ... 58 59 60 61 62 ... 69 · «PREV / NEXT»
Post New Poll Post New Topic Post New Reply

Page compiled in 0.0635 seconds