Dialog/Python Commands

Discussion in 'Tech Guides and Help Threads' started by Phalzyr, Oct 7, 2003.

Remove all ads!
  1. Stohrm Knightforger

    Stohrm Knightforger Dwarven Cleric

    Joined:
    Dec 8, 2008
    Messages:
    50
    Likes Received:
    0
    I'm still in the process of learning Python, so bear with me... However, I am curious about the second use of "triggerer.begin_dialog( attachee, 1 )" after the if/else statements. Why does it need to be there and/or when does it come into play?

    Stohrm

    BTW, thanks; as this should help me in my attempt to rescue the Jayfie dialogue without attempting to base it on his location (since his location should correspond to whether it's day or night).
     
  2. Shiningted

    Shiningted I want my goat back Global Moderator

    Joined:
    Oct 23, 2004
    Messages:
    11,786
    Likes Received:
    35
    I can't see any need for it.
     
  3. Basil the Timid

    Basil the Timid Dont Mention the War

    Joined:
    May 19, 2008
    Messages:
    1,052
    Likes Received:
    0
    Let's take Kella as Hill Giant dlg as an example. How does the game know where to begin the dialog when she is first met? My Neutral party with Meleny caused the dialog to begin at the beginning. However, my LG party with no druid began the dialog much further down. There is nothing in the dialog file that I can see that indicates how it determines where to begin the routine.
     
  4. Shiningted

    Shiningted I want my goat back Global Moderator

    Joined:
    Oct 23, 2004
    Messages:
    11,786
    Likes Received:
    35
    Thats run from the corresponding .py file in the data/scr folder, which in Kella's case (as a hill giant) may not have been modded and may still be being read frmo the .dats.
     
  5. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    2,694
    Likes Received:
    78
    So, digging through the DLL, I just found a couple of commands that can be used to do great evil:

    Code:
    game.savegame('slot0001', 'ha-ha')
    game.loadgame('slot0001')
    I would never write such a script of course, certainly not one that fired when the player got his characters killed / disintegrated ;)

    Another neat thing -
    game.selected - returns a python tuple of all selected characters
    game.hovered - returns a handle on a character currently mouse overed (makes you want to write a 'Hey, that tickles!' script, doesn't it?)
     
Our Host!