Results 1 to 30 of 217

Thread: Extended Offices Mod

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Xsaçapāvan é Skudra Member Atraphoenix's Avatar
    Join Date
    Jul 2008
    Location
    İstanbul, Turkey
    Posts
    1,402

    Default Re: Extended Offices Mod

    V.T. Marvin wrote:
    Dear Atraphoenix, I have just come accross this site, which you may find useful for your offices mod: here.
    Thanks really helpful

    It would be nice to give those ancillaries - of course ony if "FactionwideAncillaryExists" <1 - to faction leader (highly centralized administration) at the beginning and let the player decide, whether he/she would want to confer these titles to other generals as a reward and/or to allow the King to focus his attention on other things (commanding the army, for instance).
    It is possible to code according to it, at the moment Pahlavan faction Leader and heir can be satrap in the 8 lesser kingdom, but because of province limit hardcoded by CA I included half.
    the other title for example Eran Spahbod, (chief commander) can be obtain by any general not heir or leader but to change it is very easy. I exclude many offices for faction leader and heir because of the fact that Parthian empire was a decentralized kingdom but we do not have to make the same mistakes as they did, do we?

    I am not sure whether you can check for ancillaries in the EBBS, but if yes, it might be nice to intoduce a script, giving the faction, say, 500 mnai if the HAMÂRAKARA/DIOIKETES is both unselfish and loyal, whereby if he is selfish and disloyal those money would be taken away (as he is keeping the amenities of his position for himself - that would force the player to choose his top officers carefully)
    I tried code EBBS but it was beyond my capacity, namely scripting. I am an alone volunteer trait and ancillary modder, also as many traits causes CTD, I decided to mod ancillaries.
    maybe if I can find anyone to improve my mod with scripting, will be good, but not at the moment sorry



    My Submods for EB
    Spoiler Alert, click show to read: 
    My AAR/Guides How to assault cities with Horse Archers? RISE OF ARSACIDS! (A Pahlava AAR) - finished
    History is written by the victor." Winston Churchill

  2. #2
    EBII Bricklayer Member V.T. Marvin's Avatar
    Join Date
    Aug 2007
    Location
    Directing the defence of Boiotergion
    Posts
    3,361

    Default Re: Extended Offices Mod

    Quote Originally Posted by Atraphoenix View Post
    I tried code EBBS but it was beyond my capacity, namely scripting. I am an alone volunteer trait and ancillary modder, also as many traits causes CTD, I decided to mod ancillaries.
    maybe if I can find anyone to improve my mod with scripting, will be good, but not at the moment sorry
    Well, it is pretty easy to script such things as giving a faction some money based on traits of certain FMs - I have done so in my micromod Spoils of Victory. Here is an example of such code:
    Code:
    monitor_event CharacterTurnEnd FactionType romans_julii
    and Trait EnemyCampCaptured = 1
    
    console_command add_money romans_julii, 1000
    
    end_monitor
    Therefore I have run a test in my current Baktrian campaign, just to verify, whether the script recognizes ancillaries. So I have put this code into EBBS:
    Code:
    monitor_event CharacterTurnEnd FactionType romans_brutii
    and Ancillary Armourer = 1
    and Ancillary Chirurgeon = 1
    
    console_command add_money romans_brutii, 10000
    
    end_monitor
    I have two FMs who have BOTH Armourer AND Chirurgeon, I have four more FM who have EITHER Armourer OR Chirurgeon. My expectation was that I should gain 20.000 mnai.

    Well the test shown two things:
    1.- The script was executable and did something
    2.- The script did something different then supposed: I have gained 450.000 mnai from it... I really do not know why

    I have no idea what could be wrong in my test code Anybody could help???

  3. #3
    Xsaçapāvan é Skudra Member Atraphoenix's Avatar
    Join Date
    Jul 2008
    Location
    İstanbul, Turkey
    Posts
    1,402

    Default Re: Extended Offices Mod

    Can the campaign difficulty affect the codes that gives money?
    just a speculation, my scripting past was worse



    My Submods for EB
    Spoiler Alert, click show to read: 
    My AAR/Guides How to assault cities with Horse Archers? RISE OF ARSACIDS! (A Pahlava AAR) - finished
    History is written by the victor." Winston Churchill

  4. #4
    Whatever Member konny's Avatar
    Join Date
    Oct 2007
    Location
    Germania Inferior
    Posts
    1,787

    Default Re: Extended Offices Mod

    Quote Originally Posted by V.T. Marvin View Post
    Code:
    monitor_event CharacterTurnEnd FactionType romans_brutii
    and Ancillary Armourer = 1
    and Ancillary Chirurgeon = 1
    
    console_command add_money romans_brutii, 10000
    
    end_monitor
    I have two FMs who have BOTH Armourer AND Chirurgeon, I have four more FM who have EITHER Armourer OR Chirurgeon. My expectation was that I should gain 20.000 mnai.

    Well the test shown two things:
    1.- The script was executable and did something
    2.- The script did something different then supposed: I have gained 450.000 mnai from it... I really do not know why

    I have no idea what could be wrong in my test code Anybody could help???
    I am pretty sure that "Ancillary Armourer = 1" is not a valid condition so the game read:

    Code:
    monitor_event CharacterTurnEnd FactionType romans_brutii
    
    console_command add_money romans_brutii, 10000
    
    end_monitor
    When you got 450.000 mne out of it, I guess, you have 45 FMs.

    Disclaimer: my posts are to be considered my private opinion and not offical statements by the EB Team

  5. #5
    Xsaçapāvan é Skudra Member Atraphoenix's Avatar
    Join Date
    Jul 2008
    Location
    İstanbul, Turkey
    Posts
    1,402

    Default Re: Extended Offices Mod

    does the vanilla ancillaries will be same or worths trying konny?



    My Submods for EB
    Spoiler Alert, click show to read: 
    My AAR/Guides How to assault cities with Horse Archers? RISE OF ARSACIDS! (A Pahlava AAR) - finished
    History is written by the victor." Winston Churchill

  6. #6
    Whatever Member konny's Avatar
    Join Date
    Oct 2007
    Location
    Germania Inferior
    Posts
    1,787

    Default Re: Extended Offices Mod

    In M2TW it would be "HasAncType" (please note that "AncType" is not the same as "Anc"), I can't recall if that string already exsits in RTW, but it's worth trying. You could also give a corresponding trait with the ancillary and check for that.

    Disclaimer: my posts are to be considered my private opinion and not offical statements by the EB Team

  7. #7
    Xsaçapāvan é Skudra Member Atraphoenix's Avatar
    Join Date
    Jul 2008
    Location
    İstanbul, Turkey
    Posts
    1,402

    Default Re: Extended Offices Mod

    scripting is like mine sweeping
    I know the conditions for traits and ancillaries are they same with the scripting conditions? or scripting has a separate conditions?
    Pardon me for my ignorance I tried scripting once, but could not manage to work it. So I turned my main struggle for traits and ancillaries. I just coded ancillaries for the infamy of trait bugs
    Last edited by Atraphoenix; 03-17-2009 at 22:28.



    My Submods for EB
    Spoiler Alert, click show to read: 
    My AAR/Guides How to assault cities with Horse Archers? RISE OF ARSACIDS! (A Pahlava AAR) - finished
    History is written by the victor." Winston Churchill

  8. #8
    Whatever Member konny's Avatar
    Join Date
    Oct 2007
    Location
    Germania Inferior
    Posts
    1,787

    Default Re: Extended Offices Mod

    Quote Originally Posted by Atraphoenix View Post
    I know the conditions for traits and ancillaries are they same with the scripting conditions? or scripting has a separate conditions?
    No, not that way. The script can only make the programm execute commands that had been hardcoded to have the engine (the exe) "looking" for them in the script. These might be the same as in other files, but must not. The same goes for all other files. For example, "Affects [Traitname] 1 Chance 100" works in EDCT and in EDA, but the command for the script would be "give_trait". "AcquireAncillary [Ancname] 1 Chance 100" only works in EDA but nowhere else.

    Disclaimer: my posts are to be considered my private opinion and not offical statements by the EB Team

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO