Author Topic: Comments on Developer Diary  (Read 4449 times)

0 Members and 1 Guest are viewing this topic.

Offline berelinde

  • Global Moderator
  • Level 3
  • *****
  • Posts: 1011
  • Karma: +102/-31
    • View Profile
Comments on Developer Diary
« on: November 23, 2007, 10:13:02 AM »
If you're going to allow the PC to influence Shy's appearance only if his or her charisma is high, you'll have to learn to write conditional PC responses, and you'll probably have to learn to increment a global variable to track the degree that the PC has influenced her. That's not hard, and I'll show you how right now.

Suppose that this state comes up during the course of a dialogue between Shy and the PC.

Code: [Select]
IF ~~ MTS#SomethingWrong
SAY ~Are you saying there's something wrong with me?~
++ ~No, Shy, you're beautiful just as you are.~ + MTS#YouAreSweet
++ ~You wear too much makeup.~ + MTS#WhoAskedYou
++ ~I wouldn't say that there's anything wrong with your appearance, but you might be more comfortable with a more... streamlined silhouette.~ + MTS#YouGotNerve
END

Here's how you'd do it with conditional responses and variable tracking.
Code: [Select]
IF ~~ MTS#SomethingWrong
SAY ~Are you saying there's something wrong with me?~
++ ~No, Shy, you're beautiful just as you are.~ + MTS#YouAreSweet
+ ~CheckStatLT(Player1,16,CHA)~ + ~You wear too much makeup.~ + MTS#WhoAskedYou
+ ~!CheckStatLT(Player1,16,CHA)~ + ~You wear too much makeup.~ DO ~IncrementGlobal("MTS#PCInfluence","GLOBAL",1)~ + MTS#YouThinkSo
+ ~CheckStatLT(Player1,16,CHA)~ + ~I wouldn't say that there's anything wrong with your appearance, but you might be more comfortable with a more... streamlined silhouette.~ + MTS#YouGotNerve
+ ~!CheckStatLT(Player1,16,CHA)~ + ~I wouldn't say that there's anything wrong with your appearance, but you might be more comfortable with a more... streamlined silhouette.~ DO ~IncrementGlobal("MTS#PCInfluence","GLOBAL",1)~ + MTS#YouThinkSo
END

Eventually, you could include a script block to make the change.

Code: [Select]
IF
InParty(Myself)
GlobalGT("MTS#PCInfluence","GLOBAL",15)
Global("MTS#Transform","LOCALS",0)
THEN
RESPONSE #100
//Do whatever you'd do to change her appearance
SetGlobal("MTS#Transform","LOCALS",1)
END


Offline berelinde

  • Global Moderator
  • Level 3
  • *****
  • Posts: 1011
  • Karma: +102/-31
    • View Profile
Re: Comments on Developer Diary
« Reply #1 on: November 23, 2007, 10:21:17 AM »
As for banters with the BioWare bunch, everyone has their own interpretation on how they should sound, true, but most players respect the modder's right to give them whatever dialogue they want. I'd just go ahead and write it. You're never going to make everyone happy, so you might as well make one person very satisfied: yourself.

It isn't like you're writing this mod for Tutu. Nobody is going to complain if you don't make Edwin sound the same way Laufey does, and you don't have to get Laufey's permission to write a banter for Edwin using the InParty("edwin") checks.

Offline MajorTomSawyer

  • Retired
  • Moderator
  • Level 2
  • *****
  • Posts: 506
  • Karma: +1/-0
  • Gender: Male
    • View Profile
    • Gaming Nerds Я Us
Re: Comments on Developer Diary
« Reply #2 on: November 23, 2007, 09:32:32 PM »
Sometimes you make me wish that I had about 25 passes, just to give you karma.

Thank you for the help/support.

I just cannot say it enough.

As for the Bioware bunch, I am more worried about my banters not living up to my standards.

The huddled masses will always complain.
"A good pipe and tobacco will allow you to endure fools, boobs, nitwits, most bosses, angry spouses, (well, maybe not angry spouses), incompetents, slings and arrows, broadsides and people who cut in front of you after you've waited 15 minutes in highway construction zones, and most of life's little problems." - Ted's Pipe Shop

Webmaster of Gaming Nerds Я Us.

Offline berelinde

  • Global Moderator
  • Level 3
  • *****
  • Posts: 1011
  • Karma: +102/-31
    • View Profile
Re: Comments on Developer Diary
« Reply #3 on: December 01, 2007, 08:28:07 PM »
Quote from: MajorTomSawyer
Now with the fixes I made in the .d scripts, I cannot fix them or get them to install.

What's it doing? Maybe I can help.

Offline MajorTomSawyer

  • Retired
  • Moderator
  • Level 2
  • *****
  • Posts: 506
  • Karma: +1/-0
  • Gender: Male
    • View Profile
    • Gaming Nerds Я Us
Re: Comments on Developer Diary
« Reply #4 on: December 01, 2007, 11:21:44 PM »
Quote from: MajorTomSawyer
Now with the fixes I made in the .d scripts, I cannot fix them or get them to install.

What's it doing? Maybe I can help.

Right now I do not even remember, heh.

I am currently working on the items right now. Blood Raven is correct, Items are rather simple.

More importantly, they are a little fun to make!  ;D
"A good pipe and tobacco will allow you to endure fools, boobs, nitwits, most bosses, angry spouses, (well, maybe not angry spouses), incompetents, slings and arrows, broadsides and people who cut in front of you after you've waited 15 minutes in highway construction zones, and most of life's little problems." - Ted's Pipe Shop

Webmaster of Gaming Nerds Я Us.

Offline Leomar

  • Newbie
  • *
  • Posts: 76
  • Karma: +2/-0
  • Gender: Male
    • View Profile
Re: Comments on Developer Diary
« Reply #5 on: May 31, 2009, 09:16:13 PM »
Quote
I have not decided how many to add, but the reward path will be simple:
(This is for example purposes only, I have not figured out how many I want to use)

There are ten items in total.

Once you have brought him three total, he will give you a minor reward.
Once you bring him six total, you will get a slightly better reward.
Once you bring him nine, you get a nice reward.
Once you bring him the final item, you will be given the 'grand prize'.

I thought it would be a fun little diversion, and a fun way for me to sneak some of mine and SS's favorite poetry into the game.
Nice idea.  :)

Greetings Leomar

Offline MajorTomSawyer

  • Retired
  • Moderator
  • Level 2
  • *****
  • Posts: 506
  • Karma: +1/-0
  • Gender: Male
    • View Profile
    • Gaming Nerds Я Us
Re: Comments on Developer Diary
« Reply #6 on: June 20, 2009, 05:33:59 PM »
Thank you, glad you like it.
"A good pipe and tobacco will allow you to endure fools, boobs, nitwits, most bosses, angry spouses, (well, maybe not angry spouses), incompetents, slings and arrows, broadsides and people who cut in front of you after you've waited 15 minutes in highway construction zones, and most of life's little problems." - Ted's Pipe Shop

Webmaster of Gaming Nerds Я Us.