berelinde Posted November 3, 2006 Share Posted November 3, 2006 This is the friendship match and timer. The dialog for the first line of the FT follows. When I look at SK, there is a Lovetalk timer, but no Friend timer. /* Friendship Match */ IF Global("B!GavinFriendMatch","GLOBAL",0) Global("B!GavinCheckFriendMatch","GLOBAL",0) OR(2) Alignment(Player1,MASK_GOOD) Alignment(Player1,MASK_GENEUTRAL) !Kit(Player1,ASSASIN) THEN RESPONSE #100 SetGlobal("B!GavinFriend","GLOBAL",1) SetGlobal("B!GavinFriendMatch","GLOBAL",1) SetGlobal("B!GavinCheckFriendMatch","GLOBAL",1) END /* Not compatible for friendship */ IF Global("B!GavinFriendMatch","GLOBAL",0) Global("B!GavinCheckFriendMatch","GLOBAL",0) OR(2) Alignment(Player1,MASK_EVIL) Kit(Player1,ASSASIN) THEN RESPONSE #100 SetGlobal("B!GavinFriendMatch","GLOBAL",0) SetGlobal("B!GavinCheckFriendMatch","GLOBAL",1) END /* Friendship timer - set on joining */ IF Global("B!GavinFriend","GLOBAL",1) InParty(Myself) THEN RESPONSE #100 SetGlobal("B!GavinFriendtalk","GLOBAL",1) RealSetGlobalTimer("B!GavinFriendTimer","GLOBAL",600) //10 min after joining END /* Friendtalk timer */ IF InParty(Myself) CombatCounter(0) !See([ENEMY]) RealGlobalTimerExpired("B!GavinFriendTimer","GLOBAL") Global("B!GavinFriendMatch","GLOBAL",1) Global("B!GavinFriend","GLOBAL",1) !AreaType(DUNGEON) OR(6) Global("B!GavinFriendtalk","GLOBAL",1) Global("B!GavinFriendtalk","GLOBAL",3) Global("B!GavinFriendtalk","GLOBAL",5) Global("B!GavinFriendtalk","GLOBAL",7) Global("B!GavinFriendtalk","GLOBAL",9) Global("B!GavinFriendtalk","GLOBAL",11) THEN RESPONSE #100 RealSetGlobalTimer("B!GavinStartFriendTalk","GLOBAL",1) IncrementGlobal("B!GavinFriendtalk","GLOBAL",1) StartDialogNoSet(Player1) END IF InParty(Myself) RealGlobalTimerExpired("B!GavinStartFriendTalk","GLOBAL") OR(5) Global("B!GavinFriendtalk","GLOBAL",2) Global("B!GavinFriendtalk","GLOBAL",4) Global("B!GavinFriendtalk","GLOBAL",6) Global("B!GavinFriendtalk","GLOBAL",8) Global("B!GavinFriendtalk","GLOBAL",10) THEN RESPONSE #100 RealSetGlobalTimer("B!GavinFriendTimer","GLOBAL",7200) IncrementGlobal("B!GavinFriendtalk","GLOBAL",1) END CHAIN IF WEIGHT #-2 ~Global("B!GavinFriendtalk","GLOBAL",2)~ THEN ~B!GAVINJ~ BGavinFriendtalk1 ~Since we're going to be travelling together, I would like to get to know my companions better.~ END ++ etc. Link to comment
jastey Posted November 3, 2006 Share Posted November 3, 2006 Answered my suggestions at rosenranken. Link to comment
berelinde Posted November 3, 2006 Author Share Posted November 3, 2006 It was the fact that I am leaving out the line Global("B!GavinFriendtalk","GLOBAL",0) from the conditions, so it would continue to run... indefinitely. No wonder the guy couldn't move. Anyway, I'm trying it out. Edit: It worked. Now all I have to do is uninstall all mods and reinstall, because it seems like reinstalling Gavin has a nasty habit of scambling the strings. Wanted to make a couple minor cosmetic changes to the CRE, anyway. Link to comment
cmorgan Posted November 3, 2006 Share Posted November 3, 2006 berelinde, grab the v197 WeiDU... the auto-uninstall in v196 does weird things to any mods that use FORCED_SUBCOMPONENT and flags. Edit: and it sounds like you are good to go; you sound like you have the tp2, mod structure, and code all well in hand Link to comment
jastey Posted November 3, 2006 Share Posted November 3, 2006 berelinde, grab the v197 WeiDU... the auto-uninstall in v196 does weird things to any mods that use FORCED_SUBCOMPONENT and flags.Really? I didn't notice anything...? Anyway, thank you for the info. Sorry for my short post above, I was in a hurry then. Link to comment
berelinde Posted November 3, 2006 Author Share Posted November 3, 2006 Thanks for the advice. I'll definitely upgrade, since I'm going to be reinstalling anyway. *Next* time, I back up a clean override and chitin.key. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.