![]() |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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") 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) Any idea ??
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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 ? |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
OK thanks
I'll try and I tell you if I can make it. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|