Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > King's Bounty > King's Bounty: The Legend > Mods

Mods Everything about mods

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2009, 12:41 PM
The Shadow of Death The Shadow of Death is offline
Registered Member
 
Join Date: Jul 2009
Posts: 6
Default MOD for How many creatures will die ?

Hi
I was asking myself if we could add an information in the battles, when we want to attack a unit. You all know that when you damage an enemy unit during a battle, damages points are displayed. But could we also display how many creatures will die ?
Do you know which file I should edit (LUA ? txt ?) ?
Thanks from advance !

Last edited by The Shadow of Death; 07-23-2009 at 12:56 PM.
Reply With Quote
  #2  
Old 07-23-2009, 03:48 PM
Keneth Keneth is offline
Approved Member
 
Join Date: Nov 2008
Location: here and there
Posts: 378
Default

You mean like this?

Reply With Quote
  #3  
Old 07-23-2009, 03:53 PM
The Shadow of Death The Shadow of Death is offline
Registered Member
 
Join Date: Jul 2009
Posts: 6
Default

Hum not really :s I was thinking at the number that run to the top of the screen after having attacked a unit. The moving number that have a red star-background when the strike is critical.
I watch everywhere in the KFS but I've never found where it was configured.
Reply With Quote
  #4  
Old 07-23-2009, 05:10 PM
Keneth Keneth is offline
Approved Member
 
Join Date: Nov 2008
Location: here and there
Posts: 378
Default

Oh, you wanna change the floating text. Why on earth would you want to do that when you have all the info in the popup and combat log?

I don't know, go check arena.lua or maybe combat_log.lua but to be honest, I've never noticed that particular part of the script.
Reply With Quote
  #5  
Old 07-24-2009, 02:05 PM
The Shadow of Death The Shadow of Death is offline
Registered Member
 
Join Date: Jul 2009
Posts: 6
Unhappy

I'm really beginning in MODding King's Bounty. I have already made MODs and maps in LUA with Heroes of Might and Magic V, but I don't know the functions and methods called by the game. Like :
Code:
Attack.atom_spawn(0, 1, "effect_rampage")
What does the "atom_spawn(0, 1, "effect_rampage")" method do ? And the "Attack" class, is it a class regrouping all informations and methods of the attacker unit ?
According to you, what type of method should be called in the LUA files to display this floatting text ? I found a txt file where they fix the floating texts font, color etc. But nowhere I can find the method that call it... It should be like this, no ? Am I wrong ?
Code:
Game.ShowFlyer(damage)
(where "damage" is a string argument that could be changed to "killed", local variable having as value the number of killed creatures).

Any idea ??
Reply With Quote
  #6  
Old 07-24-2009, 06:27 PM
Keneth Keneth is offline
Approved Member
 
Join Date: Nov 2008
Location: here and there
Posts: 378
Default

atom_spawn() function does what it says, it spawns an atom (in your case effect_rampage.atom, first two numbers are target and delay), these are usually animations, effects, or creatures. Unfortunately there is no comprehensive reference (not in english anyway) for the functions, so the best you can do is learn by example.

If I were to guess, I'd suggest that you try Attack.arena_text(string). It's as good a place as any to start. Here is a reasonably well detailed reference of the functions in russian if you're feeling brave enough to read it. Other than that, you'll just have to scour the LUA files.
Reply With Quote
  #7  
Old 07-25-2009, 09:26 AM
The Shadow of Death The Shadow of Death is offline
Registered Member
 
Join Date: Jul 2009
Posts: 6
Default

Attack.arena_text(string) is the method used by the game to display the current round (On the top of the screen, the label "Round X" that fade in then fade out). I don't think it is the right one.
I found an interessant link thanks to yours :
http://kingsbounty.ru/docs/scripting
Yes its in russian, but with google translator, it is useful for modders. But it is not complete (i didn't find Attack.arena_text(string) method for example).

According to you, if I wanted to display an additional label with Attack.arena_text(string), where and in which file should I place this method ? At the end of the file ?
Reply With Quote
  #8  
Old 07-25-2009, 11:31 AM
Keneth Keneth is offline
Approved Member
 
Join Date: Nov 2008
Location: here and there
Posts: 378
Default

I'm not sure that arena_text() can display labels and you place the function where you want it to display, I don't really see what you're asking of me. If you want the function to display right after round counter, just place it after round counter. In any case, I don't have the game, so I can't help you with specific questions.
Reply With Quote
  #9  
Old 07-25-2009, 02:58 PM
The Shadow of Death The Shadow of Death is offline
Registered Member
 
Join Date: Jul 2009
Posts: 6
Default

OK thanks
I'll try and I tell you if I can make it.
Reply With Quote
  #10  
Old 04-30-2011, 11:12 AM
introitus introitus is offline
Registered Member
 
Join Date: Apr 2011
Posts: 2
Question

Quote:
Originally Posted by Keneth View Post
You mean like this?

Sorry for bringing old post back, but I would like to have mod like that in your picture, mod that will show how many creatures will die.
Please point me to right direction.
Thank you in advance.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:38 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.