TOEE console is a Python interpreter - or, how to cheat really easily

Discussion in 'The Temple of Elemental Evil' started by duggelz, Jul 26, 2004.

Remove all ads!
Thread Status:
Not open for further replies.
  1. duggelz

    duggelz Member

    Joined:
    Jul 18, 2004
    Messages:
    7
    Likes Received:
    0
    I'm not sure if this is widely known or not. The console, accessed by pressing [shift]-[~], is actually the Python interpreter. You can execute arbitrary Python code, like:

    game.party[0].stat_base_set(stat_strength, 30)

    In this example, setting the first character's strength value to 30.

    The following stat_* variables are:

    stat_ac
    stat_age
    stat_alignment
    stat_alignment_choice
    stat_attack_bonus
    stat_carried_weight
    stat_caster_level
    stat_caster_level_barbarian
    stat_caster_level_bard
    stat_caster_level_cleric
    stat_caster_level_druid
    stat_caster_level_fighter
    stat_caster_level_monk
    stat_caster_level_paladin
    stat_caster_level_ranger
    stat_caster_level_rogue
    stat_caster_level_sorcerer
    stat_caster_level_wizard
    stat_category
    stat_cha_mod
    stat_charisma
    stat_con_mod
    stat_constitution
    stat_damage_bonus
    stat_deity
    stat_dex_mod
    stat_dexterity
    stat_domain_1
    stat_domain_2
    stat_experience
    stat_favored_enemies
    stat_gender
    stat_height
    stat_hp_current
    stat_hp_max
    stat_initiative_bonus
    stat_int_mod
    stat_intelligence
    stat_known_spells
    stat_level
    stat_level_barbarian
    stat_level_bard
    stat_level_cleric
    stat_level_druid
    stat_level_fighter
    stat_level_monk
    stat_level_paladin
    stat_level_prestige_start
    stat_level_ranger
    stat_level_rogue
    stat_level_sorcerer
    stat_level_wizard
    stat_load
    stat_melee_attack_bonus
    stat_memorized_spells
    stat_money
    stat_money_cp
    stat_money_ep
    stat_money_gp
    stat_money_pp
    stat_money_sp
    stat_movement_speed
    stat_race
    stat_ranged_attack_bonus
    stat_run_speed
    stat_save_fortitude
    stat_save_reflexes
    stat_save_willpower
    stat_school_prohibited
    stat_school_specialization
    stat_size
    stat_spells_per_day
    stat_str_mod
    stat_strength
    stat_subdual_damage
    stat_subrace
    stat_weight
    stat_wis_mod
    stat_wisdom
     
  2. ordinaryjones

    ordinaryjones Established Member

    Joined:
    Apr 27, 2004
    Messages:
    122
    Likes Received:
    1
    Wow,very cool.Thanks.
     
  3. Orrin Oakenshield

    Orrin Oakenshield Member

    Joined:
    Sep 27, 2004
    Messages:
    37
    Likes Received:
    0
    Ach! I jes don' get it!

    Please explain at what point & where you can gain access to the console? So far, nothing happens when I press (shift) + (~).
    Sometimes, you big paladine types gotta yank this ol' dwarf by the beard to get him to see what you see at your level!
     
  4. Darksabre

    Darksabre Member

    Joined:
    Jun 23, 2004
    Messages:
    23
    Likes Received:
    0
    Is there a way to change feats using the console? I don't want to get more, just to undo some poor decisions.
     
  5. Nomad_Wanderer

    Nomad_Wanderer Established Member Veteran

    Joined:
    Sep 25, 2003
    Messages:
    305
    Likes Received:
    0
    You may be able to decrease your level, and then increase your level..

    I.e. if you set your experience back to prior the level up, and then increase it to where it is now, I think you would be able to re-level up, and choose your feats again.
     
  6. Nomad_Wanderer

    Nomad_Wanderer Established Member Veteran

    Joined:
    Sep 25, 2003
    Messages:
    305
    Likes Received:
    0

    Is this documented anywhere more thoroughly? What other functions are on the Party[0] object? How can I find out?
     
  7. Darksabre

    Darksabre Member

    Joined:
    Jun 23, 2004
    Messages:
    23
    Likes Received:
    0
    Oooh! Clever. I hadn't thought of that. Thanks!
     
  8. JoBu

    JoBu Member

    Joined:
    Oct 6, 2004
    Messages:
    2
    Likes Received:
    0
    Please help

    i am in the same boat as Orrin, for some strange reason i can not get the console to come up with [shift]+[~]. any ideas as to what i may be doing wrong?
     
  9. Morpheus

    Morpheus Mindflayer Veteran

    Joined:
    Nov 11, 2003
    Messages:
    539
    Likes Received:
    1
    Did you install the official patches? I think you need to have Patch 2.0 installed, otherwise the console won't show up.
     
  10. Iain

    Iain Member

    Joined:
    Sep 12, 2004
    Messages:
    26
    Likes Received:
    0
    I think it's something to do with the country configuration of the keyboard. I use the UK layout, and in game the ~ key is actually the key above TAB. Also, you need to keep the keys pressed for a second - the game seems sluggish in recognising key presses.
     
  11. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,740
    Likes Received:
    374
    Hey thanks for this, mighty useful! I have tried it, changed various stats to see it could be done (strength, XP etc) and had no problems with that but whenever i try to change my levels it just responds by telling me what level I am and not what i want to be. I have tried this with stat_level and stat_level_bard, moving them up as i want and moving them down to go back and try again, and changing my XP to match - nothing. I have also tried setting my XP back and going over the level mark again by earning XP (Jaroo's box is handy, init? ;) ) but nothing happens. I don't wanna cheat (I have a meat cleaver that does 8d12 for moments when the game needs to be taught who's boss :D) i just want to fix a stuff-up - I accidently leveled up my bard as a rogue :roll: Any help would be appreciated!!!
     
  12. Martinius

    Martinius Member

    Joined:
    Oct 22, 2004
    Messages:
    51
    Likes Received:
    0
    Nice work. I didn't know I could make use of this. Unfortunately, trying to use it for NPCs that have as stats "-" deeply disturbs me. That's one thing I dislike about TOEE.

    When a character joins you what's the reason not to have him/her as a standard PC, with clearly displayed stats like in NWN?

    I like the interface and graphics of TOEE much better than NWN, but there are some shortcomings for sure!
     
  13. akbar

    akbar Member

    Joined:
    Oct 7, 2004
    Messages:
    8
    Likes Received:
    0
    Hello everybody, I hate to sound like an idiot but I tried to change my characters stregth to a deseant 18, but for some reason its not working. I type

    game.party[0].stat_base_set(stat_stregth, 18)

    than I hit enter and I get

    traceback (most recent call last):
    file "<string>", line 1, in ?

    If anybody can help me out I sure would appreciate it.
     
    Last edited: Nov 13, 2004
  14. Darksabre

    Darksabre Member

    Joined:
    Jun 23, 2004
    Messages:
    23
    Likes Received:
    0
    Umm... it's a spelling problem. "Strength".
     
  15. akbar

    akbar Member

    Joined:
    Oct 7, 2004
    Messages:
    8
    Likes Received:
    0
    Actually, I made a mistake in spelling it here on the forums but in the game I did spell it correctly and still not working will try it again once I get off work but I'm sure I spelled it correctly.




    Thank you.
     
Thread Status:
Not open for further replies.
Our Host!