Change Cleric Domain?

Discussion in 'The Temple of Elemental Evil' started by t0lkien, Oct 15, 2010.

Remove all ads!
  1. t0lkien

    t0lkien Member

    Joined:
    Oct 7, 2010
    Messages:
    13
    Likes Received:
    0
    Can anyone confirm that you can/cannot change a Cleric's domain via the console? I found a list of console * commands, and there are these two:

    stat_domain_1
    stat_domain_2

    So I've been trying variations of the following syntax in the console without luck:

    game.party[0].stat_base_set(stat_domain_#, good)

    I'm guessing the domains each have a numeric designator, but nothing I've used seems to work. Any ideas?
     
  2. t0lkien

    t0lkien Member

    Joined:
    Oct 7, 2010
    Messages:
    13
    Likes Received:
    0
    To bring it up to date, the following both are accepted by the parser, return 0 in the console, but don't change anything in the character:

    game.party[x].stat_base_set(stat_domain_1, 4)
    game.party[x].stat_base_set(stat_domain_2, 4)

    Note: 4 is "Good" in domain_good (which is what I'm trying to gain so I can get access to Holy Smite).
     
  3. wizgeorge

    wizgeorge Prophet of Wizardy

    Joined:
    Feb 19, 2005
    Messages:
    1,715
    Likes Received:
    2
    I believe domain for pc clerics are set hardcoded in the game engine once selected. Npc's can be changed in protos but not sure if it will take effect, unless you start a new game. Or, if at all. I'll test it with Ronald.
    Changed Ronald's domains to good and sun in protos and it worked. He got endure elements but no greater turning. He should get Holy Smite when he levels up that far. Not 100% positive here, but he does have good domain.
    Changed diety to Pelor and used the console to levelup and everything is cool. He has all the right spells, greater turning, etc. Sun is not a native domain for St.Cuthbert, but it still worked somewhat. I just like greater turning.
    Ronald's a decent cleric but I made him much better. So, if you want a good cleric with Holy Smite, Ronald will work.
     
    Last edited: Oct 15, 2010
  4. General Ghoul

    General Ghoul Established Member

    Joined:
    Dec 18, 2008
    Messages:
    953
    Likes Received:
    6
    What are his domains to start with?
     
  5. wizgeorge

    wizgeorge Prophet of Wizardy

    Joined:
    Feb 19, 2005
    Messages:
    1,715
    Likes Received:
    2
    Law and Strength.
     
  6. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    You can change it, but it will only take effect after you level up.

    The relevant command is:

    game.party[x].obj_set_int(obj_f_critter_domain_1, #)
    game.party[x].obj_set_int(obj_f_critter_domain_2, #)

    Also, it will not erase the spells gained from the previous domain.
    Furthermore, you won't be able to memorize spells from opposite alignments, even though they'll appear on the memorizable list (they'll just be greyed out).
     
  7. wizgeorge

    wizgeorge Prophet of Wizardy

    Joined:
    Feb 19, 2005
    Messages:
    1,715
    Likes Received:
    2
    Printed a copy of this one. It's either the console or protos, or something. You can never get exactly what you want without 'complications'. But, that's ToEE for ya.
     
  8. t0lkien

    t0lkien Member

    Joined:
    Oct 7, 2010
    Messages:
    13
    Likes Received:
    0
    Thank-you Sitra, that's awesome. By the way, where did you get the knowledge of those commands? I looked everywhere, and could only find what I posted above.
     
  9. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    I don't really remember anymore. Probably from the Toolset Documentation or General Modding forums, or Ted's modding guide.

    I also keep a file with my modding notes, IIRC it's posted on the Gen Mod forum.
     
    Last edited: Oct 16, 2010
  10. Grimslade

    Grimslade Member

    Joined:
    Sep 22, 2010
    Messages:
    50
    Likes Received:
    0
    Is there a list somewhere that matches Domains w/ their #?
     
  11. krokyk

    krokyk Member

    Joined:
    Feb 12, 2006
    Messages:
    11
    Likes Received:
    0
    Found one, in spell_enum.mes. Do not use the whole numbers, though, just the last 1 or 2 digits:

    {10500}{domain_none}
    {10501}{domain_air}
    {10502}{domain_animal}
    {10503}{domain_chaos}
    {10504}{domain_death}
    {10505}{domain_destruction}
    {10506}{domain_earth}
    {10507}{domain_evil}
    {10508}{domain_fire}
    {10509}{domain_good}
    {10510}{domain_healing}
    {10511}{domain_knowledge}
    {10512}{domain_law}
    {10513}{domain_luck}
    {10514}{domain_magic}
    {10515}{domain_plant}
    {10516}{domain_protection}
    {10517}{domain_strength}
    {10518}{domain_sun}
    {10519}{domain_travel}
    {10520}{domain_trickery}
    {10521}{domain_war}
    {10522}{domain_water}
    {10523}{domain_special}

    So to change the first domain to let's say Destruction in console you'll type

    game.party[x].obj_set_int(obj_f_critter_domain_1, 5)

    To change the second to Strength:

    game.party[x].obj_set_int(obj_f_critter_domain_2, 17)

    As it was mentioned, you'll retain all spells from the previous domains (you will receive new just for your current domains).
     
Our Host!