Results 1 to 9 of 9

Thread: New food for the hungry: Titles sneak peek

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: New food for the hungry: Titles sneak peek

    Quote Originally Posted by BozosLiveHere
    How did...what the....how???!?!?

    The best I could come up with to explain how you're assigning this "designated to rule" trait is a trigger with the CharacterSelected event and I_EventCounter condition. Am I too far?

    Fantastic job, by the way. It's great to see people being innovative in this area.
    No, I use "console_command give_trait this Florence_Province_Rule 1"
    That's why you have to select a character in the first place *cough*

    It's easy and reliable (and comfortable for the player).

  2. #2

    Default Re: New food for the hungry: Titles sneak peek

    Alpaca, geez, that's amazing, grats on a job well done, another great script idea.

  3. #3
    EB Traitor Member BozosLiveHere's Avatar
    Join Date
    Jan 2006
    Location
    Uqbar, Tlön
    Posts
    3,662

    Default Re: New food for the hungry: Titles sneak peek

    Quote Originally Posted by alpaca
    No, I use "console_command give_trait this Florence_Province_Rule 1"
    That's why you have to select a character in the first place *cough*

    It's easy and reliable (and comfortable for the player).
    Holy crap....I never knew we could do that. That opens up a lot of possibilities. I have to see if it works in RTW now.

  4. #4
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: New food for the hungry: Titles sneak peek

    Quote Originally Posted by BozosLiveHere
    Holy crap....I never knew we could do that. That opens up a lot of possibilities. I have to see if it works in RTW now.
    Afaik that only works in M2TW.

    You could also do a trigger combined with an event counter setting though, it'd work equally well. In fact, I could directly trigger the normal ruler trait that way but I thought it'd make sense if the ruler isn't directly appointed both historically and from a gameplay point of view (so you can change your mind without penalty for example).

    Edit: By the way, another nifty thing for modders that's related to this is my advisor cycle. I often have multiple advisors pending on events like SettlementSelected for example. So what I did is script an advisor cycle that cycles through the available messages when you select the settlement. So every time you click on it, you get the next message (if there are more than one). It's an easy way to overcome the problem of searching for a new interface for each interaction (because I'm also implementing things like Bishop titles and other offices).
    Here's the code for it if you're interested (so far, only two possible states but more will be added):
    Code:
    declare_counter advisor_cycle_pos_select
    declare_counter skip_monitor
    
    monitor_event SettlementSelected SettlementName Florence
    	
    	; Position 0: no character present
    	if I_CompareCounter advisor_cycle_pos_select == 0
    		if I_CompareCounter advisor_cycle_character_present 1
    			advance_advice_thread No_Character_Present_Thread
    			set_counter skip_monitor 1
    		end_if
    		inc_counter advisor_cycle_pos_select 1
    	end_if
    	
    	; Position 1: Province title/Cancel province title
    	if I_CompareCounter advisor_cycle_pos_select == 1
    		and I_CompareCounter skip_monitor == 0
    		
    		if I_EventCounter Florence_Title == 0
    			advance_advice_thread New_Ruler_Thread
    			set_counter skip_monitor 1
    		end_if
    		if I_EventCounter Florence_Title == 3
    			advance_advice_thread Cancel_New_Ruler_Thread
    			set_counter skip_monitor 1
    		end_if
    		;inc_counter advisor_cycle_pos_select 1
    		set_counter advisor_cycle_pos_select 0
    	end_if
    	
    	set_counter skip_monitor 0
    end_monitor
    Edit2: The above code also contains my implementation of an Else if statement (the skip_monitor thing)
    Last edited by alpaca; 08-22-2007 at 21:59.

  5. #5
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: New food for the hungry: Titles sneak peek

    Here's a quick look at the first office title I implemented:



    This one is available for each settlement, but linked to a special building called the Episcopal Palace which can be constructed in the larger cities (but it requires a cathedral). The title can be upgraded with the building to that of an archbishop.
    The bonuses are WIP of course.
    We'll probably also link some random event to this, guess what it is

  6. #6

    Default Re: New food for the hungry: Titles sneak peek

    Electing a new pope?
    - Tellos Athenaios
    CUF tool - XIDX - PACK tool - SD tool - EVT tool - EB Install Guide - How to track down loading CTD's - EB 1.1 Maps thread


    ὁ δ᾽ ἠλίθιος ὣσπερ πρόβατον βῆ βῆ λέγων βαδίζει” – Kratinos in Dionysalexandros.

  7. #7
    Harbinger of... saliva Member alpaca's Avatar
    Join Date
    Aug 2003
    Location
    Germany
    Posts
    2,767

    Default Re: New food for the hungry: Titles sneak peek

    No, the pope is still elected by cardinals who are drawn from amongst the priests.
    The bishop title is for named characters (aka generals).
    Note that I have been convinced to remove the command bonus, the title works now slightly differently.

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