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
Town Guardians
Author Message
majaczek 

Age: 28
Joined: 12 Jun 2008
Posts: 474
Posted: 2016-06-14, 17:39   Town Guardians

Please add a way to add to Each Town-Type a godly creature, which would be summoned on siege if city is capital (has built capital). Of course there should be switch on/off for the feature. Idea taken from Disciples II, and already incorporated in my ERA based mod.

If you incorporate this as an option, you may also add summonning-on-siege for other building and other creatures.

Note: Creature count should be based on day-of-game. I used for my mod those math:
((day/28)+2)^2/2
but later it should allow any math based on "day" variable
 
     
Warmonger 
VCMI programmer


Age: 28
Joined: 07 Jun 2008
Posts: 1545
Location: Warsaw, Poland
Posted: 2016-06-14, 19:44   

So we have this modding suggestions thread, which is sticked.

Any creature summoning and configuration needs to be planned carefully. We want to allow as much flexibility as possible. Though advanced maths most probably requires scripts.
_________________
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!
 
 
     
majaczek 

Age: 28
Joined: 12 Jun 2008
Posts: 474
Posted: 2016-06-18, 11:41   

Hmm not necessary requires scripts. I saw math and binary conditions and even interactions done in pure xml (it was in mod to civ4 called caveman2cosmos). they have done it because they preffered to do more things in xml to use python less.

since we have JSON we can have similair thing. I don't know JSON enough but in xml this can be for example

Code:

<divide> <power> <add>
<divide> <variable>day</variable> <constant> 28  </constant> </divide>
<constant>2 </constant> </add>  <constant>2 </constant> </power>
<constant>2 </constant> </divide>
 
     
Warmonger 
VCMI programmer


Age: 28
Joined: 07 Jun 2008
Posts: 1545
Location: Warsaw, Poland
Posted: 2016-06-18, 12:15   

But this all needs to be parsed and interpreted in game. No one is going to write a code that supports that some theoretical-but-not-real features used in arbitrary places.
_________________
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!
 
 
     
majaczek 

Age: 28
Joined: 12 Jun 2008
Posts: 474
Posted: 2016-06-18, 19:52   

it should be not in arbitrary places, but in any where it makes sense.
I think it could work similair to limiters or something IDK.
 
     
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

Hosting provided by DigitalOcean
Page generated in 0.01 second. SQL queries: 12