Skip to content

Commit

Permalink
feat(norm): Normalize file endings
Browse files Browse the repository at this point in the history
Signed-off-by: dark0dave <[email protected]>
  • Loading branch information
dark0dave committed Feb 11, 2025
1 parent 4dd3bda commit 0aba3da
Show file tree
Hide file tree
Showing 5 changed files with 663 additions and 653 deletions.
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*2da text eol=crlf
*baf text eol=crlf
*d text eol=crlf
*tp2 text eol=crlf
*tph text eol=crlf
*tra text eol=crlf
*txt text eol=crlf
*md text eol=crlf
*ini text eol=crlf
*html text eol=crlf
144 changes: 72 additions & 72 deletions bg1ub/abprismemeralds/abgfprsm.baf
Original file line number Diff line number Diff line change
@@ -1,73 +1,73 @@
//if died while blue circle and gems were not put into eyes
IF
Die()
Global("abgf_GemInEye","GLOBAL",0)
THEN
RESPONSE #100
Unlock("A6StatueRightEye")
Unlock("A6StatueLeftEye")
ActionOverride("A6StatueRightEye",DestroyItem("abgfEyeR"))
ActionOverride("A6StatueLeftEye",DestroyItem("abgfEyeL"))
SetGlobal("abgf_GemInEye","GLOBAL",3) //3 = not in eyes
END
//if turned hostile and gems were not put into the eyes
IF
Allegiance(Myself,ENEMY)
Global("abgf_GemInEye","GLOBAL",0)
THEN
RESPONSE #100
Unlock("A6StatueRightEye")
Unlock("A6StatueLeftEye")
ActionOverride("A6StatueRightEye",DestroyItem("abgfEyeR"))
ActionOverride("A6StatueLeftEye",DestroyItem("abgfEyeL"))
SetGlobal("abgf_GemInEye","GLOBAL",3) //3 = not in eyes
Attack(NearestEnemyOf(Myself))
END
//initiate with player if pickpocketed
IF
See([PC])
Range(LastSeenBy,4)
!HasItem("abgfEyeL",Myself)
!HasItem("abgfEyeR",Myself)
!Global("ab_GemsTrulyGone","GLOBAL",1)
Global("ab_TalkAbouMissingGems","GLOBAL",1)
THEN
RESPONSE #100
Dialogue([PC])
END
IF
See([PC])
Range(LastSeenBy,4)
!HasItem("abgfEyeL",Myself)
HasItem("abgfEyeR",Myself)
!Global("ab_GemsTrulyGone","GLOBAL",1)
!Global("ab_TalkAbouMissingGems","GLOBAL",1)
THEN
RESPONSE #100
Dialogue([PC])
END
IF
See([PC])
Range(LastSeenBy,4)
HasItem("abgfEyeL",Myself)
!HasItem("abgfEyeR",Myself)
!Global("ab_GemsTrulyGone","GLOBAL",1)
!Global("ab_TalkAbouMissingGems","GLOBAL",1)
THEN
RESPONSE #100
Dialogue([PC])
END
//return to spot if tried to talk and player ran out of range
IF
See([PC])
!Range(LastSeenBy,4)
THEN
RESPONSE #100
ClearActions(Myself)
MoveToPoint([641.2713])
//if died while blue circle and gems were not put into eyes
IF
Die()
Global("abgf_GemInEye","GLOBAL",0)
THEN
RESPONSE #100
Unlock("A6StatueRightEye")
Unlock("A6StatueLeftEye")
ActionOverride("A6StatueRightEye",DestroyItem("abgfEyeR"))
ActionOverride("A6StatueLeftEye",DestroyItem("abgfEyeL"))
SetGlobal("abgf_GemInEye","GLOBAL",3) //3 = not in eyes
END

//if turned hostile and gems were not put into the eyes
IF
Allegiance(Myself,ENEMY)
Global("abgf_GemInEye","GLOBAL",0)
THEN
RESPONSE #100
Unlock("A6StatueRightEye")
Unlock("A6StatueLeftEye")
ActionOverride("A6StatueRightEye",DestroyItem("abgfEyeR"))
ActionOverride("A6StatueLeftEye",DestroyItem("abgfEyeL"))
SetGlobal("abgf_GemInEye","GLOBAL",3) //3 = not in eyes
Attack(NearestEnemyOf(Myself))
END

//initiate with player if pickpocketed
IF
See([PC])
Range(LastSeenBy,4)
!HasItem("abgfEyeL",Myself)
!HasItem("abgfEyeR",Myself)
!Global("ab_GemsTrulyGone","GLOBAL",1)
Global("ab_TalkAbouMissingGems","GLOBAL",1)
THEN
RESPONSE #100
Dialogue([PC])
END

IF
See([PC])
Range(LastSeenBy,4)
!HasItem("abgfEyeL",Myself)
HasItem("abgfEyeR",Myself)
!Global("ab_GemsTrulyGone","GLOBAL",1)
!Global("ab_TalkAbouMissingGems","GLOBAL",1)
THEN
RESPONSE #100
Dialogue([PC])
END

IF
See([PC])
Range(LastSeenBy,4)
HasItem("abgfEyeL",Myself)
!HasItem("abgfEyeR",Myself)
!Global("ab_GemsTrulyGone","GLOBAL",1)
!Global("ab_TalkAbouMissingGems","GLOBAL",1)
THEN
RESPONSE #100
Dialogue([PC])
END

//return to spot if tried to talk and player ran out of range
IF
See([PC])
!Range(LastSeenBy,4)
THEN
RESPONSE #100
ClearActions(Myself)
MoveToPoint([641.2713])
END
80 changes: 40 additions & 40 deletions bg1ub/abprismemeralds/abitrp.baf
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
IF
Dead("prism")
Global("abgf_GemInEye","GLOBAL",0)
THEN
RESPONSE #100
Unlock("A6StatueRightEye")
Unlock("A6StatueLeftEye")
ActionOverride("A6StatueRightEye",DestroyItem("abgfEyeR"))
ActionOverride("A6StatueLeftEye",DestroyItem("abgfEyeL"))
SetGlobal("abgf_GemInEye","GLOBAL",3) //3 = not in eyes
END
IF
Opened([ANYONE])
Global("abgf_GemInEye","GLOBAL",0)
!Global("ab_GemsTrulyGone","GLOBAL",1)
THEN
RESPONSE #100
SetGlobal("abgf_BrokeInto","GLOBAL",1)
ActionOverride("Prism",Dialogue([PC]))
END
IF
Opened([ANYONE])
Global("abgf_GemInEye","GLOBAL",1)
THEN
RESPONSE #100
SetGlobal("abgf_GemInEye","GLOBAL",2) //2 is only 1 gem taken from statue
ReputationInc(-1) //only one rep point loss in total cause it reverts the rep point gain given by letting him finish the work
AddJournalEntry(@%AddJournal_0%%QUEST%)
END
IF
Opened([ANYONE])
Global("abgf_GemInEye","GLOBAL",2)
THEN
RESPONSE #100
SetGlobal("abgf_GemInEye","GLOBAL",3)
AddJournalEntry(@%AddJournal_1%%QUEST%)
END
IF
Dead("prism")
Global("abgf_GemInEye","GLOBAL",0)
THEN
RESPONSE #100
Unlock("A6StatueRightEye")
Unlock("A6StatueLeftEye")
ActionOverride("A6StatueRightEye",DestroyItem("abgfEyeR"))
ActionOverride("A6StatueLeftEye",DestroyItem("abgfEyeL"))
SetGlobal("abgf_GemInEye","GLOBAL",3) //3 = not in eyes
END

IF
Opened([ANYONE])
Global("abgf_GemInEye","GLOBAL",0)
!Global("ab_GemsTrulyGone","GLOBAL",1)
THEN
RESPONSE #100
SetGlobal("abgf_BrokeInto","GLOBAL",1)
ActionOverride("Prism",Dialogue([PC]))
END

IF
Opened([ANYONE])
Global("abgf_GemInEye","GLOBAL",1)
THEN
RESPONSE #100
SetGlobal("abgf_GemInEye","GLOBAL",2) //2 is only 1 gem taken from statue
ReputationInc(-1) //only one rep point loss in total cause it reverts the rep point gain given by letting him finish the work
AddJournalEntry(@%AddJournal_0%%QUEST%)
END

IF
Opened([ANYONE])
Global("abgf_GemInEye","GLOBAL",2)
THEN
RESPONSE #100
SetGlobal("abgf_GemInEye","GLOBAL",3)
AddJournalEntry(@%AddJournal_1%%QUEST%)
END
Loading

0 comments on commit 0aba3da

Please sign in to comment.