TOEEWB help plz

Discussion in 'General Modification' started by khalamar, Aug 8, 2005.

Remove all ads!
  1. khalamar

    khalamar Member

    Joined:
    Jun 28, 2004
    Messages:
    34
    Likes Received:
    0
    O.K got everything to work thru # 24 :D now i might be getting ahead
    of myself but....... how would i trigger a random encounter to telaport in my
    mod, like the assasin (spelling) after you sell Lareth gear.

    Thanks for any help Khalamar
     
  2. Shiningted

    Shiningted I want my goat back Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,655
    Likes Received:
    352
    Get something to trigger a flag when you want the random encounter to happen - for instance, if it is after killing such-n-such an NPC, give them a san_dying script that triggers flag 801 (for instance).

    Then put that flag in data/scr/random_encounter.py in the bit for predetermined encounters, according to the equation it describes.

    I forgot to put the random_encounter.py in my mod, no wonder it hasn't been happening :yawn:
     
  3. khalamar

    khalamar Member

    Joined:
    Jun 28, 2004
    Messages:
    34
    Likes Received:
    0
    O.K i'am on step 50 testing my work .... everything works but the part where you are to level up as you enter the map :blegh:

    now my question is where do you put the data.tutorial ??? i put in in the
    data folder and it overwrites whats in there but still nothing ?????
    just so you know i'am using the lawful evil intro map not the neutral map
    i changed the x,y to 492/489

    Thanks Khalamar


    ps i can put other objects into the map like a chest , zaxis ect........ maybe it
    my script ?
     
    Last edited: Aug 12, 2005
  4. khalamar

    khalamar Member

    Joined:
    Jun 28, 2004
    Messages:
    34
    Likes Received:
    0
    Agetian, could i e-mail you my module maybe you could tell me why
    my triggers are not working everything else is going great....

    I know be more specific the level up at start and the .dlg script

    Thanks
     
  5. Agetian

    Agetian Attorney General Administrator

    Joined:
    Aug 14, 2004
    Messages:
    2,526
    Likes Received:
    0
    Sure, lay it on me, Khalamar! My bug-report e-mail is in the installation docs.
    Make sure that the e-mail subject is "ToEE World Builder" (otherwise it may be deleted without warning).
    I'll try to help if I can.

    - Agetian
     
  6. Agetian

    Agetian Attorney General Administrator

    Joined:
    Aug 14, 2004
    Messages:
    2,526
    Likes Received:
    0
    Well, I looked through the files (not in very much detail yet, but still), and I can say that:

    1) The dialog doesn't work since there is no script associated with the NPC that's supposed to talk using dialog #401 (remember, there's got to be a script called py00401<something>.py that will initiate the dialog).

    Assuming that you did everything else right, the 3rd level script doesn't work because of the bad indentation in the file. You have:

    Code:
    def san_heartbeat( attachee, triggerer ):
    for obj in game.obj_list_vicinity(attachee.location,OLC_PC):
    	obj.award_experience(3000)
    attachee.destroy()
    return RUN_DEFAULT
    
    and it's not correct because the script function must have indentation. So, this would be correct:

    Code:
    def san_heartbeat( attachee, triggerer ):
            for obj in game.obj_list_vicinity(attachee.location,OLC_PC):
                    obj.award_experience(3000)
            attachee.destroy()
            return RUN_DEFAULT
    
    In conclusion I'd like to say that I saw that you haven't been following the tutorial closely but you were trying to alter it on the fly (which is not a bad thing, of course - creativity is always welcome!), but since you're new to ToEE modding I would seriously recommend you to try and follow the tutorial letter by letter at least once, trying to understand every step, so that you can be sure that you got everything right. Once you've mastered all the stuff in the tutorial, you may want to go to changing things. But that's my personal recommendation, feel free to accept/ignore it.

    I hope that made sense.
    - Agetian
     
    Last edited: Aug 14, 2005
  7. Cerulean the Blue

    Cerulean the Blue Blue Meanie Veteran

    Joined:
    Apr 23, 2005
    Messages:
    1,962
    Likes Received:
    0
    The bad code is what you have in your tutorial. I have been struggling with this myself. You might want to update it.
     
  8. Agetian

    Agetian Attorney General Administrator

    Joined:
    Aug 14, 2004
    Messages:
    2,526
    Likes Received:
    0
    Yeah right, seems that MS Word messed up the indentation in the tutorial file after I saved (which it likes to do sometimes). I'll try to update it the next time I make an update to ToEEWB.

    EDIT: Updated the tutorial (please redownload the v1.5 package).

    - Agetian
     
    Last edited: Aug 14, 2005
  9. khalamar

    khalamar Member

    Joined:
    Jun 28, 2004
    Messages:
    34
    Likes Received:
    0
    Agetian thanks for your feedback yes you are right about changing things
    on the fly i figured as i was learning i would work on my mod at the same
    time (two birds with one stone theory) any way maps are linked !! now to
    figure out the indentations........ so i was following your tutorial ;)

    again thanks for all of your support Khalamar
     
Our Host!