Jump to content

Search the Community

Showing results for tags 'coding tips'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • G3 News and Announcements
    • Infinity Engine Modding News
    • General Mod Discussion
    • Fan Fiction
    • Noobermeet
  • Tools & Resources
    • DLTCEP
    • GemRB
    • The Gibberlings Three Debugging Suite for BG2
    • IESDP Updates and Info
    • Modding How-Tos and Tutorials
    • Modding Q&A
    • Multi-Install Tool
    • Widescreen Mod
  • Released Projects
    • Miscellaneous Released Mods
    • Ajantis
    • Alternatives
    • Amber
    • Angelo
    • Ascension
    • Auren Aseph
    • BG1 NPC Project
    • Baldur's Gate Mini Quests and Encounters
    • The Beaurin Legacy
    • BG2 Fixpack - General Discussion
    • Calin
    • The Calling
    • Cirerrek's AI Scripts
    • Coran's Friendship Mod
    • Crossmod Banter Pack
    • Divine Remix
    • Enhanced Edition Trilogy
    • Evandra
    • Full Plate & Packing Steel
    • Garrick's Infatuation
    • Gavin
    • The Gibberlings Three Anniversary Mod
    • Glam's NPC Pack
    • Icewind Dale Mod Roundup
    • Icewind Dale in Baldur's Gate II
    • Imoen 4 Ever
    • Item Randomiser
    • Item Revisions
    • IWD2 NPC Project
    • IWDification
    • Keeping Yoshimo
    • Kivan and Deheriana Companions for BG2
    • Level One NPCs
    • Mur'Neth
    • NPC Kitpack
    • NPC Strongholds
    • NPC Tweak for BG2
    • Oversight
    • Romantic Encounters (BG)
    • Romantic Encounters (BG2)
    • Sarah
    • Song and Silence
    • Spell Revisions
    • Sword and Fist
    • Sword Coast Stratagems
    • Tweaks Anthology Forum
    • Tyris Flare
    • Wheels of Prophecy
    • Yoshimo's Remorse
  • Unreleased Projects
    • Aklon
    • Baldur's Gate: Shadow Hand TC
    • Aran Whitehand
    • Delainy
    • IWD Tutu
    • Kit Revisions
    • Inactive Projects
  • NWN2 Modding
  • Mod Workrooms

Categories

  • NPCs
  • Quests and Others
  • Tweaks & Fixes
  • Items/Kits/Spells
  • Portrait Packs
  • Mini Mods
  • Tools
  • In Progress

Categories

  • Fixes
  • Items
  • Kits
  • NPCs
  • Quests
  • Spells
  • Tweaks
  • Other
  • Tools

Product Groups

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Discord


Website URL


Skype


AIM


MSN


ICQ


Yahoo


Jabber


Location


Interests


Mods Worked On

Found 1 result

  1. OK, because I am falling behind and delaying for a comprehensive list of non-canonical non-BioWare™ crossmod references for a full tutorialization of the various dialog files and their usages, a Monday posting of a Friend Talk that has been stewing for awhile. Since it is FT 8, it might need some sprucing up to allow for an active romance. If you are reading along for coding ideas, remember that the eventual order is BEGIN ~dialogfile~ all I_C_T[2,3,4] all APPEND s all CHAIN s This is not in that particular order yet, as it is easier for me to check dialog flow visually when it is in this order. Some coding things to think about: 1. the big reminds us that WeiDU line counting works best if you indent code and if you leave a carriage return at the end of the file. Windows folks sometimes forget those things. He has tried to compensate for it in later WeiDU versions, but since it is good practice anyways... 2. Usually friend talks are basic 1 - on - 1 banters between PC and NPC. I am choosing to see friendtalks as group discussions, but still - a little goes a long, long way. If everyone comments everywhere, ther can be troubles, especially as each group banter entry involves the modder making assumptions abut the characterization of the BioWare™ NPC. So while I want to digress into a side banter of Korgan and Aran trying to out-swear eachother, that realy belongs as a floater banter rather than sidelining a friendtalk. 3. The trend in many NPCs is to tackle a set of questions. I am running more topical/scenic on my attempts here, but this one realy does ave a question: Why do you swear so much, Aran? The coding challenge/author fun is figuring out how to tailor the response to accont for PC class and Aran's possible Cleric class. I am making the assumption that as a general non-kitted neutral good Cleric, Tymora will be Aran's choice. This means if someone makes him a Loremaster of Ogma, well - "conceptual incompatibility". Here, I am going to not go crazy over it. Perhaps later there will be a way of swapping in kitspecific stuff, but right now I will just make things as general as possible. /* BG2 FriendTalk 8 c-aranfriendbg2 = 15 */ /* "Bhallspawn, Shmallspawn. Meh.", or, Gods and Monsters. */ CHAIN IF ~Global("c-aranfriendbg2","GLOBAL",15)~ THEN ~C-ARANJ~ c-aranft8 ~[ARAN] Tempus' Shield, that tears it. That is the last time I get leatherwork cut rate. This blighted bootlace is parting. Anyone got a spare?~ DO ~SetGlobal("c-aranfriendbg2","GLOBAL",16) RealSetGlobalTimer("c-aranfriendtimer","GLOBAL",ARAN_ROM)~ == ~JAHEIRAJ~ IF ~InParty("Jaheira") InMyArea("Jaheira") !StateCheck("Jaheira",CD_STATE_NOTVALID)~ THEN ~[JAHEIRA] You should be better prepared. Think ahead next time, Aran.~ == ~AERIEJ~ IF ~InParty("Aerie") InMyArea("Aerie") !StateCheck("Aerie",CD_STATE_NOTVALID)~ THEN ~[AERIE] I - I'm sorry, I don't have anything extra.~ == ~KORGANJ~ IF ~InParty("Korgan") InMyArea("Korgan") !StateCheck("Korgan",CD_STATE_NOTVALID)~ THEN ~[KORGAN] It will cost you a trade bar.~ == ~EDWINJ~ IF ~InParty("Edwin") InMyArea("Edwin") !StateCheck("Edwin",CD_STATE_NOTVALID)~ THEN ~[EDWIN] (Idiot.) Perhaps we would move faster if you held still while I carved a new one from your hide.~ == ~MINSCJ~ IF ~InParty("Minsc") InMyArea("Minsc") !StateCheck("Minsc",CD_STATE_NOTVALID)~ THEN ~[MINSC] Here, Aran, I have a bootlace!~ == ~C-ARANJ~ IF ~InParty("Minsc") InMyArea("Minsc") !StateCheck("Minsc",CD_STATE_NOTVALID)~ THEN ~[ARAN] By the fire giant's gods, whomever they are... Minsc, you are a big, big boy. Thanks. I'll take a third o' that length.~ == ~CERNDJ~ IF ~InParty("Cernd") InMyArea("Cernd") !StateCheck("Cernd",CD_STATE_NOTVALID)~ THEN ~[CERND] You do not need leather to bind that. Nature provides many alternatives with similar strength, and the avoidance of killing an animal.~ == ~C-ARANJ~ IF ~InParty("Cernd") InMyArea("Cernd") !StateCheck("Cernd",CD_STATE_NOTVALID)~ THEN ~[ARAN] Mystra's Magnificent Mouth, Cernd... given the choice between my feet in battle an' the animal, I am considerin' the animal a distant second.~ END + ~!Class(Player1,CLERIC_ALL)~ + ~For the god's sake, slow down with the swearing, will you?~ EXTERN ~C-ARANJ~ c-aranft8general + ~OR(2) Class(Player1,PALADIN) Class(Player1,CLERIC_ALL) !Kit(Player1,GODTALOS) !Kit(Player1,GODHELM) !Kit(Player1,GODLATHANDER)~ EXTERN ~C-ARANJ~ ~Why are you blaspheming over something so minor, Aran?~ + c-aranft8specific + ~Class(Player1,CLERIC_ALL) Kit(Player1,GODHELM)~ + ~Here. But why are you blaspheming over something so minor, Aran?~ EXTERN ~C-ARANJ~ c-aranft8helm + ~Class(Player1,CLERIC_ALL) Kit(Player1,GODLATHANDER)~ + ~Here. But why are you blaspheming over something so minor, Aran?~ EXTERN ~C-ARANJ~ c-aranft8lathander + ~Class(Player1,CLERIC_ALL) Kit(Player1,GODTALOS)~ + ~Here. But why are you blaspheming over something so minor, Aran?~ EXTERN ~C-ARANJ~ c-aranft8talos + ~OR(2) Class(Player1,RANGER) Class(Player1,DRUID)~ + ~Here. But why are you blaspheming over something so minor, Aran?~ EXTERN ~C-ARANJ~ c-aranft8nature ++ ~You take every opportunity to swear, don't you, Aran.~ EXTERN ~C-ARANJ~ c-aranft8general + ~RandNum(5,1)~ + ~Alright, move along, everyone. The sellsword is having troubles again. Catch up fast, Aran.~ EXTERN ~C-ARANJ~ c-aranshutup1 + ~RandNum(5,2)~ + ~Alright, move along, everyone. The sellsword is having troubles again. Catch up fast, Aran.~ EXTERN ~C-ARANJ~ c-aranshutup2 + ~RandNum(5,3)~ + ~Alright, move along, everyone. The sellsword is having troubles again. Catch up fast, Aran.~ EXTERN ~C-ARANJ~ c-aranshutup3 + ~RandNum(5,4)~ + ~Alright, move along, everyone. The sellsword is having troubles again. Catch up fast, Aran.~ EXTERN ~C-ARANJ~ c-aranshutup4 + ~RandNum(5,5)~ + ~Alright, move along, everyone. The sellsword is having troubles again. Catch up fast, Aran.~ EXTERN ~C-ARANJ~ c-aranshutup5 /* Thought-Check: This chain will end up with 3 PC responses for non-clerics, druids, rangers; 4 for druids and rangers; 3 for clerics; 4 for paladins */ CHAIN ~C-ARANJ~ c-aranft8general ~[ARAN] Three things you shouldn't take from a man, <CHARNAME>... his swearin', his drink, and his weapon.~ == ~HAERDAJ~ IF ~InParty("HaerDalis") InMyArea("HaerDalis") !StateCheck("HaerDalis",CD_STATE_NOTVALID)~ THEN ~[HAERDALIS] Ah, fair fledgeling, I think you should simply say 'his voice'. And of course, no man or woman should ever lose that. ~ == ~KELDORJ~ IF ~InParty("Keldorn") InMyArea("Keldorn") !StateCheck("Keldorn",CD_STATE_NOTVALID)~ THEN ~[KELDORN] Invoking the gods is a natural stress release, Aran. But as you grow more powerful, the gods tend to listen more closely. They may take exception to having their name used so freely.~ == ~MAZZYJ~ IF ~InParty("Mazzy") InMyArea("Mazzy") !StateCheck("Mazzy",CD_STATE_NOTVALID)~ THEN ~[MAZZY] My mother often told me that swearing was not to be taken lightly, for it speaks to your soul as well as the gods.~ == ~NALIAJ~ IF ~InParty("Nalia") InMyArea("Nalia") !StateCheck("Nalia",CD_STATE_NOTVALID)~ THEN ~[NALIA] Swearing is both vulgar and common. A gentleman does not use such language.~ == ~C-ARANJ~ IF ~InParty("Nalia") InMyArea("Nalia") !StateCheck("Nalia",CD_STATE_NOTVALID)~ THEN ~[ARAN] I thought you were into helpin' th' 'common man', there, Nalia. I never claimed to be no gentleman.~ == ~NALIAJ~ IF ~InParty("Nalia") InMyArea("Nalia") !StateCheck("Nalia",CD_STATE_NOTVALID)~ THEN ~[NALIA] Teaching the commoners respect for the gods goes along with teaching respect for themselves, Aran.~ == ~VALYGARJ~ IF ~InParty("Valygar") InMyArea("Valygar") !StateCheck("Valygar",CD_STATE_NOTVALID)~ THEN ~[VALYGAR] Why risk the gods wrath?~ == ~VICONIJ~ IF ~InParty("Viconia") InMyArea("Viconia") !StateCheck("Viconia",CD_STATE_NOTVALID)~ THEN ~[VICONIA] Speak your words loudly, sellsword. I want to see your face just before an Avatar destroys you.~ == ~ANOMENJ~ IF ~InParty("Anomen") InMyArea("Anomen") !StateCheck("Anomen",CD_STATE_NOTVALID)~ THEN ~[ANOMEN] Your language offends me. Then again, your presence in general offends me.~ == ~C-ARANJ~ IF ~InParty("Anomen") InMyArea("Anomen") !StateCheck("Anomen",CD_STATE_NOTVALID)~ THEN ~[ARAN] Bugger off, jackass. Come talk wi' me when you got somethin' more than the foul smell o' breakin' wind from your mouth.~ == ~KORGANJ~ IF ~InParty("Korgan") InMyArea("Korgan") !StateCheck("Korgan",CD_STATE_NOTVALID)~ THEN ~[KORGAN] Let the sorry bastard say his piece.~ END ++ ~Don't you ever worry about the gods hearing your talk? Don't you ever expect help or advice or something to come of your call?~ EXTERN ~C-ARANJ~ c-aranft8attention ++ ~Hey, it is your business if you go around haphazardly calling random gods. But when one answers, you had better be prepared for the surprise.~ EXTERN ~C-ARANJ~ c-aranft8attention ++ ~Without faith, you are nothing. ~ EXTERN ~C-ARANJ~ c-aranft8attention + ~Class("c-aran",CLERIC_ALL)~ I thought you were a cleric, Aran. That should mean you only swear by your own god.~ EXTERN ~C-ARANJ~ c-aranft8arancleric ++ ~I didn't intend that to be a request. I don't want the attention drawn to us.~ EXTERN ~C-ARANJ~ c-aranft8attention ++ ~I am not taking any of those, Aran. Just settle down and choose one god or goddess, will you?~ EXTERN ~C-ARANJ~ c-aranft8attention APPEND ~C-ARANJ~ IF ~~ c-aranft8specific SAY ~[ARAN] I know you are faithful to your god, <CHARNAME>... but I figure a few words in the air won't hurt anythin'.~ ++ ~Don't you ever worry about the gods hearing your talk? Don't you ever expect help or advice or something to come of your call?~ + c-aranft8faith ++ ~Haphazardly calling random gods is dangerous to your soul. IF you do not call on one god, who will claim you from Kelemvor's judgement?~ + c-aranft8faith ++ ~Without faith, you are nothing. Literally. As in abandoned from the Great Wheel. IF you would like, we can pray together, and perhaps it will help you decide.~ + c-aranft8faith ++ ~I didn't intend that to be a request. I don't want the attention drawn to us.~ + c-aranft8faith END IF ~~ c-aranft8helm SAY ~[ARAN] Helm is a tough god, <CHARNAME>... a fine soldierin' one at that. But there's times where he doesn't quite cover it. I figure a few words in the air won't hurt anythin'. ~ ++ ~You should worry about the gods hearing your talk. Do you not expect help or advice or something to come of your call?~ + c-aranft8faith ++ ~Haphazardly calling random gods is dangerous to your soul. IF you do not call a just and fair god like Helm, who will claim you from Kelemvor's judgement?~ + c-aranft8faith ++ ~Without faith, you are nothing. Literally. As in abandoned from the Great Wheel. IF you would like, we can pray together, and perhaps Helm with bear you up on his shield.~ + c-aranft8faith ++ ~I didn't intend that to be a request, Aran. I don't want the attention drawn to us.~ + c-aranft8faith END IF ~~ c-aranft8lathander SAY ~[ARAN] Lathander is a gentle god, <CHARNAME>... a fine one for new beginnings. And the gods know I need some new beginnings. But there's times where he doesn't quite cover it. I figure a few words in the air won't hurt anythin'.~ ++ ~Don't you ever worry about the gods hearing your talk? Don't you ever expect help or advice or something to come of your call?~ + c-aranft8faith ++ ~Haphazardly calling random gods is dangerous to your soul. IF you do not call a gentle and strong god like Lathander, who will claim you from Kelemvor's judgement?~ + c-aranft8faith ++ ~Without faith, you are nothing. Literally. As in abandoned from the Great Wheel. If you would like, we can pray together, and perhaps Lathander will grant you a new beginning.~ + c-aranft8faith ++ ~I didn't intend that to be a request, Aran. I don't want the attention drawn to us.~ + c-aranft8faith END IF ~~ c-aranft8talos SAY ~[ARAN] Talos is a wild god, <CHARNAME>... one for power an' strength. Good to call on in battle. I figure a few words in the air won't hurt anythin'. ~ ++ ~You are a fool to chatter on so. The gods will hear your talk. ~ + c-aranft8faith ++ ~Haphazardly calling random gods is dangerous to your soul. IF you do not call a powerful god like Talos, no god will claim you from Kelemvor's judgement.~ + c-aranft8faith ++ ~Without faith, you are nothing. Literally. As in abandoned from the Great Wheel. Pray to Talos with me, sellsword. Perhaps you will weather this storm we call 'life.'~ + c-aranft8faith ++ ~I didn't intend that to be a request, sellsword. I don't want the attention drawn to us.~ + c-aranft8faith END IF ~~ c-aranft8nature SAY ~[ARAN] All you tree huggers do is talk about the balance and such. But you are good folks to watch a friend's back in battle that's for sure. I figure a few words in the air won't hurt the great balance, or whatever. ~ ++ ~Tree hugger, eh? Thanks alot. Don't you ever worry about the gods hearing your talk? Don't you ever expect help or advice or something to come of your call?~ + c-aranft8faith ++ ~True balance requires choice, Aran. Haphazardly calling random gods is dangerous to your soul. ~ + c-aranft8faith ++ ~Without faith in Nature and her balance, you are nothing. Literally. As in abandoned from the Great Wheel. If you would like, we can meditate together, and perhaps you will find some peace.~ + c-aranft8faith ++ ~I didn't intend that to be a request, sellsword. I don't want the attention drawn to us.~ + c-aranft8faith END IF ~~ c-aranft8faith SAY ~[ARAN] Look, I don't mean nothin'. I have faith in the gods. No offense, but I favor Tymora the most, an' I figure she would like the gamble. It's a soldier's perogative to swear, and I may take advantage a bit, but I don't mean you no harm. But I have to ask, why do you choose service your god? Seems like all they do is play with us mortals like toys. ~ ++ ~I serve my chosen deity as I have always done. My faith grants me the ability to help others see the true path...~ + c-aranft8help ++ ~I serve my chosen deity as I have always done. My faith grants me discipline and control over myself.~ + c-aranft8control ++ ~I serve my chosen deity as I have always done. My faith grants me dominion over others and glories in my eventual rise to master of all.~ + c-aranft8ascend ++ ~I serve my chosen deity as I have always done. My faith grants me great power.~ + c-aranft8power ++ ~I serve my chosen deity for now. My faith in myself will be enough someday, and perhaps I will become a god.~ + c-aranft8ascend ++ ~I am not sure if you are ready to hear about my faith.~ + c-aranft8nothear END IF ~~ c-aranft8arancleric SAY ~[ARAN] Look, I don't mean nothin'. No offense to you, but I favor Tymora the most, an' I figure she likes the gamble. She sends me down some powers, so she can't be that angry about it. It's a soldier's perogative to swear, and I may take advantage a bit, but I don't mean you no harm. By the way, you ever considered followin' Tymora?~ + ~ReputationLT(Player1,11)~ + ~I might be interested. What does Tymora offer me?~ + c-aranft8actionevil + ~ReputationGT(Player1,10) ReputationLT(Player1,15)~ + ~I might be interested. What does Tymora offer me?~ + c-aranft8actionneutral + ~ReputationGT(Player1,14)~ + ~I might be interested. What does Tymora offer me?~ + c-aranft8actiongood ++ ~Hey, that is getting a little personal. Do not try to sway my soul from its destined path, Aran. ~ + c-aranft8nosway ++ ~I serve my chosen deity for now. My faith in myself will be enough, and perhaps someday I will become a god myself.~ + c-aranft8ascend ++ ~I am not sure if you are ready to hear about my faith.~ + c-aranft8nothear END IF ~~ c-aranft8actionevil SAY ~[ARAN] You are playin' wi' me now, <CHARNAME>. Tymora might offer somethin', but she judges by actions. Right now, looks like you don't give decent odds on her investment. You'd have to clean up the way you are goin' and move more towards bright gold rather than deep shadow. But, if you ever do move in that direction, I'm right here to help out a bit.~ IF ~~ THEN GOTO c-aranft8final END IF ~~ c-aranft8actionneutral SAY ~[ARAN] Well, she can offer some decent odds on fair gambles, <CHARNAME>. IF you are really interested, then it might be a good move for you. She don't hold with extremes, except for takin' risks. You seem like th' sort to take a risk now an' then. Hey, you brought me along - that counts double!~ IF ~~ THEN GOTO c-aranft8final END IF ~~ c-aranft8actiongood SAY ~[ARAN] Well now, Tymora does like a good bet, an' you have the 'good' part down, at least as far as your actions are speakin'. She don't hold with extremes, though, except for takin' risks. So, come talk sometime.~ IF ~~ THEN GOTO c-aranft8final END IF ~~ c-aranft8nosway SAY ~[ARAN] Aye, I did jump too quick now, didn't I. I guess I have a bit to learn about the whole preachin' thing. I didn't mean nothin'.~ IF ~~ THEN GOTO c-aranft8final END IF ~~ c-aranft8help SAY ~[ARAN] Tymorra's Coin, that is a fine idea. I like helpin' folks. Just I get the idea most clerics think that involves changin' gods.~ IF ~~ THEN GOTO c-aranft8final END IF ~~ c-aranft8control SAY ~[ARAN] Tymorra's Coin, that is a strange proposition. I prefer to let things hang out a bit. More fun that way.~ IF ~~ THEN GOTO c-aranft8final END IF ~~ c-aranft8ascend SAY ~[ARAN] Tymorra's Coin, and I thought *I* was the one with th' loose lacing.~ IF ~~ THEN GOTO c-aranft8final END IF ~~ c-aranft8power SAY ~[ARAN] Tymorra's Coin, you better be careful. Seems to me gods have a tendency to give folks power and just to see if they have the sense not to use it.~ IF ~~ THEN GOTO c-aranft8final END IF ~~ c-aranft8nothear SAY ~[ARAN] Fair enough. There's always other times to speak on this kind o' thing.~ IF ~~ THEN GOTO c-aranft8final END IF ~~ c-aranft8attention SAY ~[ARAN] Clerics get all th' attention, far as I can see. Plus, I favor Tymora the most. I figure she would like the gamble.~ IF ~~ THEN GOTO c-aranft8final END IF ~~ c-aranft8final SAY ~[ARAN] Besides, I am all done up. Give me a hand up, eh? We better get movin'.~ IF ~~ THEN EXIT END END // of append block
×
×
  • Create New...