Forum index VCMI Project - Heroes 3: WoG recreated
Forum of the project aiming to recreate best turn-based strategy ever!

FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  StatisticsStatistics
RegisterRegister  Log inLog in  AlbumAlbum  DownloadDownload

Previous topic :: Next topic
Modding FAQ
Author Message
Kantor 

Age: 22
Joined: 28 Dec 2013
Posts: 89
Location: Poland
Posted: 2016-05-17, 14:44   

Do VCMI rmg templates support "density" option for mines, neutral and player towns?
IIRC "density" allows to set maximum amount of sth to be generated in zone if fixed amount isn't specified.
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 155
Posted: 2016-05-17, 17:52   

AVS wrote:
ALWAYS_MINIMUM_DAMAGE bonus is basically Curse spell and does not make sense as creature ability.

zmudziak22 wrote:
Isn't work like range penalty?

I've thought that this ability causes always minimum damage to the creature who attack my creature with this ability.
 
     
Warmonger 
VCMI programmer


Age: 27
Joined: 07 Jun 2008
Posts: 1530
Location: Warsaw, Poland
Posted: 2016-05-17, 19:57   

ALWAYS_MINIMUM_DAMAGE is the effect of Curse, which is opposite of ALWAYS_MAXIMUM_DAMAGE (Bless).
_________________
Think twice if you really need to send me private message. Use public forum for general questions.
DJ Warmonger blog
beegee wrote:
Warmonger, you are the best!
 
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 155
Posted: 2016-06-09, 22:09   

I want to give my creature 'shackles of war' ability. Having these neutral creatures in army, battle prevents hero to escape. So I wrote:
Code:
"enemyCantEscape" :
            {
                "type" : "ENEMY_CANT_ESCAPE",
                "propagator" : "BATTLE_WIDE"
            }

or
Code:
"enemyCantEscape" :
            {
                "type" : "ENEMY_CANT_ESCAPE",
                "propagator" : "HERO"
            }


console says that: Error: invalid ability type ENEMY_CANT_ESCAPE

Is any trick to do give creature this artifact's ability?
 
     
Warmonger 
VCMI programmer


Age: 27
Joined: 07 Jun 2008
Posts: 1530
Location: Warsaw, Poland
Posted: 2016-06-09, 22:34   

The bonus for Shackles Of War is called BATTLE_NO_FLEEING. Will fix Wiki.
_________________
Think twice if you really need to send me private message. Use public forum for general questions.
DJ Warmonger blog
beegee wrote:
Warmonger, you are the best!
 
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 155
Posted: 2016-06-09, 23:16   

Oh, man. It works like hell with propagator BATTLE_WIDE (icon retreat is inactive)!

So one more question. Is any way to show such exotic abillities in creature window? In creature format there's no info about code to add new pcx and new infos...
 
     
Warmonger 
VCMI programmer


Age: 27
Joined: 07 Jun 2008
Posts: 1530
Location: Warsaw, Poland
Posted: 2016-06-10, 18:06   

Quote:
Is any way to show such exotic abillities in creature window?

Not really. Some info can be added via config\bonuses_texts.json, but images are more complicated.

Also keep in mind that orginal hero / artifacts bonuses would look odd on creatures.
_________________
Think twice if you really need to send me private message. Use public forum for general questions.
DJ Warmonger blog
beegee wrote:
Warmonger, you are the best!
Last edited by Warmonger on 2016-06-11, 07:25; edited 1 time in total  
 
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 155
Posted: 2016-06-10, 20:40   

I keep in mind. But giving neutral creatures such odd abilities I want to make battles with them more interesting/challenging and worth considering to hire them to the army. Some results you'll see for few weeks, I hope:)
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 155
Posted: 2016-08-29, 18:14   

Command "dice" - in what purposes I can use it? I can't see any 'manual' for it...
 
     
Warmonger 
VCMI programmer


Age: 27
Joined: 07 Jun 2008
Posts: 1530
Location: Warsaw, Poland
Posted: 2016-08-29, 19:33   

misiokles wrote:
Command "dice" - in what purposes I can use it? I can't see any 'manual' for it...

In what context?
_________________
Think twice if you really need to send me private message. Use public forum for general questions.
DJ Warmonger blog
beegee wrote:
Warmonger, you are the best!
 
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 155
Posted: 2016-08-29, 21:08   

Er... my english :(
I ask in which contexts dice can be used and how this formula works.
 
     
SXX 

Age: 25
Joined: 04 Jul 2014
Posts: 291
Posted: 2016-08-29, 22:24   

It's only used here, but I not exactly understand if this code actually doing anything:
https://github.com/vcmi/vcmi/blob/develop/lib/mapObjects/CRewardableConstructor.cpp#L51
 
     
AVS 

Joined: 25 Feb 2011
Posts: 545
Location: Russia
Posted: 2016-08-30, 00:53   

misiokles wrote:
Er... my english :(
I ask in which contexts dice can be used and how this formula works.


1) Two rewards with same "dice" have same random value. This allows to create mutually exclusive and independent rewards.
2) It is not used in any objects configuration yet.
3) for now it actually may be used in mods _only_ for _new_ map objects for vcmi map format.
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 155
Posted: 2016-09-01, 23:11   

Ok, another question. I want to modify standard H3 creature banks. For example, I want to place in shipwrecks some Abyss creatures than Wights. I tried various ways, but I failed...
Like this:
Code:
{
    "core:creatureBank" : {
        "types" : {

            "core:shipwreck" : {
                "levels": [
                    {
                        "chance": 25,
                        "guards": [
                            { "amount": 5, "type": "abyssSandCrab" },
                            { "amount": 5, "type": "abyssAbyssalCrab" },
                            { "amount": 5, "type": "abyssAbyssalCrab" },
                            { "amount": 5, "type": "abyssSandCrab" },
                            { "amount": 5, "type": "abyssAbyssalCrab" }
                        ],
                        "combat_value": 31,
                        "reward" : {
                            "value": 2000,
                            "resources":
                            {
                                "gold" : 2000
                            }
                        }
                    },


Or this:
Code:
{
    "core:creatureBank" : {
        "types" : {

            "shipwreck" : {
                "levels": [
                    {
                        "chance": 25,
                        "guards": [
                            { "amount": 5, "type": "abyssSandCrab" },
                            { "amount": 5, "type": "abyssAbyssalCrab" },
                            { "amount": 5, "type": "abyssAbyssalCrab" },
                            { "amount": 5, "type": "abyssSandCrab" },
                            { "amount": 5, "type": "abyssAbyssalCrab" }
                        ],
                        "combat_value": 31,
                        "reward" : {
                            "value": 2000,
                            "resources":
                            {
                                "gold" : 2000
                            }
                        }
                    },


Or this:

Code:
{
    "creatureBank" : {
        "types" : {

            "core:shipwreck" : {
                "levels": [
                    {
                        "chance": 25,
                        "guards": [
                            { "amount": 5, "type": "abyssSandCrab" },
                            { "amount": 5, "type": "abyssAbyssalCrab" },
                            { "amount": 5, "type": "abyssAbyssalCrab" },
                            { "amount": 5, "type": "abyssSandCrab" },
                            { "amount": 5, "type": "abyssAbyssalCrab" }
                        ],
                        "combat_value": 31,
                        "reward" : {
                            "value": 2000,
                            "resources":
                            {
                                "gold" : 2000
                            }
                        }
                    },

I'm lack of ideas...
 
     
Macron1 

Joined: 02 Apr 2013
Posts: 576
Posted: 2016-09-01, 23:48   

Strange...
I made test json for dwarven treasury:
Code:
{
    "core:creatureBank": {
        "types": {


            "dwarvenTreasury": {

                "levels": [{
                    "chance": 40,
                    "guards": [{
                        "amount": 50,
                        "type": "peasant"
                    }, {
                        "amount": 50,
                        "type": "peasant"
                    }, {
                        "amount": 50,
                        "type": "peasant"
                    }, {
                        "amount": 50,
                        "type": "peasant"
                    }, {
                        "amount": 50,
                        "type": "peasant"
                    }],
                    "combat_value": 300,
                    "reward": {
                        "resources": {

                            "gold": 15000
                        },
                        "artefacts": [{
                            "class": "TREASURE"
                        }, {
                            "class": "MINOR"
                        }, {
                            "class": "TREASURE"
                        }, {
                            "class": "MINOR"
                        }],
                        "value": 17000
                    }
                }, {
                    "chance": 40,
                    "guards": [{
                        "amount": 60,
                        "type": "peasant"
                    }, {
                        "amount": 60,
                        "type": "peasant"
                    }, {
                        "amount": 60,
                        "type": "peasant"
                    }, {
                        "amount": 60,
                        "type": "peasant"
                    }, {
                        "amount": 60,
                        "type": "peasant"
                    }],
                    "combat_value": 350,
                    "reward": {
                        "value": 20000,
                        "resources": {

                            "gold": 17000
                        },
                        "artefacts": [{
                            "class": "MAJOR"
                        }, {
                            "class": "MINOR"
                        }, {
                            "class": "MINOR"
                        }, {
                            "class": "MINOR"
                        }]

                    }
                }, {
                    "chance": 20,
                    "guards": [{
                            "amount": 60,
                            "type": "peasant"
                        }, {
                            "amount": 60,
                            "type": "peasant"
                        }, {
                            "amount": 60,
                            "type": "peasant"
                        },

                        {
                            "amount": 60,
                            "type": "peasant"
                        }, {
                            "amount": 60,
                            "type": "peasant"
                        }
                    ],
                    "combat_value": 450,
                    "reward": {
                        "value": 26000,
                        "resources": {

                            "gold": 20000
                        },
                        "artefacts": [{
                            "class": "MAJOR"
                        }, {
                            "class": "MINOR"
                        }, {
                            "class": "MINOR"
                        }, {
                            "class": "MAJOR"
                        }]

                    }
                }]
            },
}

And it works, on visiting dwarven treasury I see peasants, many of them
_________________
I'm not a member of VCMI developer group and my posts are not official. I'm just a fan.
 
     
Display posts from previous:   
Reply to topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Add this topic to your bookmarks
Printable version

Jump to:  

Powered by phpBB modified by Przemo © 2003 phpBB Group
Template Chronicles modified by Nasedo modified by Tow.
© VCMI Team
Page generated in 0.42 second. SQL queries: 12