Weldo Fix and Upgrade

Discussion in 'Modding and Scripting Support' started by jfkoski, Nov 2, 2007.

Remove all ads!
Support Terra-Arcanum:

GOG.com

PayPal - The safer, easier way to pay online!
  1. jfkoski

    jfkoski New Member

    Messages:
    242
    Likes Received:
    0
    Joined:
    Aug 28, 2007
    Here's the full script for Weldo's fix and upgrade which attaches a scheme and after you give him the sprocket he makes something (I think it's funny). The eliminated lines test whether PC has persuasion or is a halfling (lf2) but was not used in the dialog.
    Arcanum/data/scr/01077Weldo.scr

    0. IF npc Attachee is a follower of pc Triggerer
    THEN dialog 290
    ELSE goto line 2
    1. return and SKIP default
    2. dialog 1
    3. IF Local 5=1
    THEN return and SKIP default
    ELSE Local 5=1
    4. autolevel scheme for Attachee: change to 104 (or 1 or 107 see below)
    5. return and SKIP default
    6. destroy item named 5605 in inventory of Attachee
    7. float line 560 above Attachee
    8. play sound 8829
    9. call script 1077 at line 11 with triggerer Triggerer and attachee Attachee in 4 seconds
    10. return and SKIP default
    11. create object with basic prototype 27391 near Attachee
    12. IF npc attachee is a follower of PC Triggerer
    THEN do nothing
    ELSE dialog 80
    13. return and SKIP default

    ============
    LEVEL SCHEME
    (NAME IT IN NEW FILE)
    Arcanum/data/mes/userlevelname.mes
    // you can name 49 user defined advancement schemes, numbered 1 to 49
    {1}{Weldo Rubin}

    (OR ADD TO EXISTING)
    Arcanum/data/mes/gamelevelname.mes {107}{Weldo}

    (DEFINE IT IN NEW OR ADD TO EXISTING FILE)
    Arcanum/data/rules/userlevel.mes
    {1}{st 7, picklock 20, st 8, throwing 20, st 9, dodge 20, st 10, prowling 20, st 11, spottrap 20, st 12, firearms 20, maxhps 100, maxfatigue 100, maxhps 125, mechanical 3, maxhps 200}//Weldo Rubin

    Arcanum/data/rules/gamelevel.mes
    {107}{st 7, picklock 20, st 8, throwing 20, st 9, dodge 20, st 10, prowling 20, st 11, spottrap 20, st 12, firearms 20, maxhps 100, maxfatigue 100, maxhps 125, mechanical 3, maxhps 200}//Weldo

    (CALL FROM SCRIPT LINE 4)
    104 -Tollo Underhill's (you don't have to make a new scheme)
    1 - Weldo Rubin's (New 1 line file)
    107 - Weldo's (Add line 107 to existing file)
    ======
    In order for the script to work properly, you also need to add at least one line of dialog, or make line 7. do nothing
    Arcanum/data/dlg/01077Weldo.dlg
    {560}{[He's putting the parts together.]}{[He's putting the parts together.]}{}{}{}{}

    Looking at the dialog, I didn't think it needed many corrections, but testing showed it did to make sense. I didn't see the point in advising you to remove the few lines that will never show up. I left my remarks for those interested - they won't cause a problem if cut and pasted. What follows is a full list of new lines and ones to delete for
    Arcanum/data/dlg/01077Weldo.dlg
     
  2. jfkoski

    jfkoski New Member

    Messages:
    242
    Likes Received:
    0
    Joined:
    Aug 28, 2007
    {4}{Please, excuse my presence, sir. I mean no offense.}{}{5}{re-40, ch-9}{390}{}//REMOVED RESULT
    {5}{Speak to me like that again and you will seriously regret it.}{}{5}{re-40, sk2 12}{400}{}//REMOVED RESULT

    {12}{You want spank, boy?}{}{-4}{re-40, sk2 12}{390}{}//CHANGED LINE
    {13}{S:}{}{-4}{re-40, ch10}{390}{re41}//NEW LINE

    {33}{About the city in the desert...}{}{5}{lf10 1}{50}{}//REMOVED MAP TEST

    {36}{I need find old city in desert!}{}{-4}{qa1027 1, ni 5616, qu1047 0}{410}{lf10 1}//FIXED TESTS
    {37}{I need find old city in desert!}{}{-4}{qu1027 0, ni 5616, qu1047 0}{410}{lf10 1}//FIXED TESTS

    {39}{Where in Vendigroth did you find ruins?}{}{5}{lf3 1, ar -73}{500}{}//NEW LINE

    {41}{Have you found anything of interest in your travels?}{}{5}{lf3 0}{130}{lf3 1}//ADDED TEST

    {43}{What kind of monsters have you seen in the desert?}{}{5}{}{210}{lf0 1}//ADDED MISSING WORD
    {44}{Tell me more about the device you found.}{}{5}{lf3 1, lf4 0}{520}{}//NEW LINE

    {82}{You wanna go with me?}{}{-4}{}{0}{fl 70}//NEW LINE

    {94}{What if I pay you?}{}{5}{re 40}{270}{}//ADDED TEST
    {95}{What if I pay you?}{}{5}{re-39}{110}{}//NEW LINE

    {114}{What if I pay you?}{}{5}{re 40}{270}{}//ADDED TEST

    {140}{Yes. The ruins were made of a metal of a sort I've never encountered before. There was all manner of junk around and inside them. I found this device while rummaging through it.}{Yes. The ruins were made of a metal of a sort I've never encountered before. There was all manner of junk around and inside them. I found this device while rummaging through it.}{}{}{}{}//SPELLING

    {251}{Here it is.}{}{5}{}{-6}{qu 1047 4, in 5605, lf4 1}//ADDED FLAG, SCRIPT CALL
    {252}{Here it be!}{}{-4}{}{-6}{qu 1047 4, in 5605, lf4 1}//ADDED FLAG, SCRIPT CALL

    {292}{I'm in need of your skill...}{}{5}{wa 0}{320}{}//CHANGED LINE
    {293}{K:}{}{5}{wa 0}{329}{}//CHANGED GOTO

    {295}{Let's Go.}{}{5}{wa 1}{297}{uw 0 310}//CHANGED RESULT
    {296}{I dunno.}{}{1}{}{0}{}//CHANGED FOR DRUNK IDIOT

    //DELETE 298-302

    {305}{Move away.}{}{5}{}{0}{so, fl 310}//FIXED EXIT
    {306}{Move closer.}{}{5}{}{0}{sc, fl 310}//FIXED EXIT
    {307}{Wait here.}{}{5}{wa 0}{0}{wa, fl 310}//FIXED EXIT
    {308}{Disband.}{}{5}{}{0}{lv, fl 310}//FIXED EXIT

    //RENUMBER 311 AS 329

    //NEW LINES 320-325
    {320}{Which skill do you need?}{Which Skill do you need?}{}{}{}{}
    {321}{U: 12}{}{5}{}{}{}
    {323}{What can you make for me, Weldo?}{}{5}{}{}{su}
    {324}{Do you need this sprocket?}{}{5}{in 5605, lf4 0}{530}{}
    {325}{Never Mind.}{}{5}{}{0}{}

    {329}{What do you need to know?}{What do you need to know?}{}{}{}{}//MOVED FROM 311
    {330}{What can you tell me about the ruins of Vendigroth?}{}{5}{ar-73, ss18}{500}{}//CHANGED GOTO, TEST
    {331}{What can you tell me about the Vendigroth device?}{}{5}{lf3 1, lf4 0, gf2027 0}{520}{}//NEW LINE
    {332}{What should we do now?}{}{5}{lf4 0, ss18, ss-18, ar-22}{540}{}//NEW LINE
    {333}{What should we do now?}{}{5}{lf4 1, ss18, ss-18, ar-22}{550}{}//NEW LINE
    {334}{I'd like to know more about you, Weldo.}{}{5}{}{0}{ce}//NEW LINE
    {335}{What can you make for me?}{}{5}{}{}{su}//NEW LINE
    {336}{What can you tell me about Tulla, city of mages?}{}{5}{QU1138 2}{344}{}//NEW LINE
    //DELETE 339

    {342}{K:}{}{5}{}{329}{}//CHANGED GOTO

    {344}{Not much, I am afraid. I just know about the city in the wastes.}{Not much, I am afraid. I just know about the city in the wastes.}{}{}{}{}//CHANGED TEXT, REMOVED RESULT
    {345}{What was it like?}{}{5}{}{510}{}//CHANGED TEXT, GOTO

    {353}{What kind of monsters have you seen in the desert?}{}{5}{}{210}{lf0 1}//ADDED MISSING WORD

    {391}{W:}{}{5}{lf1 0}{20}{lf1 1}//CHANGED IN
    {392}{K:}{}{1}{lf1 1}{30}{}//CHANGED GOTO

    {394}{W:}{}{-4}{lf1 0}{260}{lf1 1}//NEW LINE

    {402}{K:}{}{1}{lf1 1}{30}{}//CHANGED GOTO

    {431}{Huh?}{}{-4}{}{440}{lf3 1}//ADDED FLAG
    {432}{De-vise kill mage-in-shell?}{}{-4}{lf3 0}{520}{}//NEW LINE

    {463}{Where in Vendigroth did you find ruins?}{}{5}{lf3 1, ar-73}{500}{}

    {471}{I'm listening.}{}{5}{}{90}{lf3 1}//ADDED FLAG

    //START NEW LINES
    {500}{Here is the location of the ruins that I found. [He marks your map.] Watch out for the lizards.}{Here is the location of the ruins that I found. [He marks your map.] Watch out for the lizards.}{}{}{}{mm73}
    {501}{K:}{}{5}{fo 0}{30}{}
    {502}{A:}{}{1}{}{0}{}

    {510}{A city in the desert with no obvious entrance. Everyone was wearing robes and acting very polite.}{A city in the desert with no obvious entrance. Everyone was wearing robes and acting very polite}{}{}{}{}
    {511}{K:}{}{5}{}{329}{}
    {512}{A:}{}{1}{}{0}{}

    {520}{The device I found is broken. I'm not sure what it does, but it needs a sprocket.}{The device I found is broken. I'm not sure what it does, but it needs a sprocket.}{}{}{}{}
    {521}{Would this help? [show him the part.]}{}{5}{in5605, lf4 0}{530}{}
    {522}{K:}{}{5}{fo 0}{30}{}
    {523}{A:}{}{1}{lf3 1}{0}{}
    {524}{Yes! Yes! I look for vice in roons, too!}{}{-4}{lf3 0}{440}{lf3 1}

    {530}{Great! Hand it over.}{Great! Hand it over.}{}{}{}{}
    {531}{Here it is.}{}{5}{qu 1047 0}{-6}{in 5605, lf4 1}
    {532}{Here it is.}{}{5}{qa 1047 1, qb1047 3}{-6}{in 5605, lf4 1, qu1047 4}

    {540}{Perhaps those ruins I found hold your answers.}{Perhaps those ruins I found hold your answers.}{}{}{}{}
    {541}{K:}{}{5}{}{329}{}
    {542}{A:}{}{1}{}{0}{}

    {550}{Perhaps someone in that city knows the wastes well.}{Perhaps someone in that city knows the wastes well.}{}{}{}{}
    {551}{K:}{}{5}{}{329}{}
    {552}{E:}{}{1}{}{0}{}

    {560}{[He's putting the parts together.]}{[He's putting the parts together.]}{}{}{}{}


    //FLAGS:
    //lf0 tells about adventures, lf1 He is Weldo Rubin, lf2 deleted from script,
    //lf3 he found part of device in ruins, lf4 gave him sprocket, lf5 attached level scheme,
    //lf10 seen any cities?, lf25 marked city on map
     
Our Host!