Jump to content

changing script block


jastey

Recommended Posts

I want to change this script block:

 

IF
InParty(Myself)
GlobalTimerExpired("AnomenHome","GLOBAL")
GlobalLT("AnomenComplain","LOCALS",2)
Global("TalkedToCor","GLOBAL",0)
CombatCounter(0)
!Global("Chapter","GLOBAL",4)
!Global("Chapter","GLOBAL",5)
!Global("Chapter","GLOBAL",7)
AreaType(OUTDOOR)
See(Player1)	
THEN
RESPONSE #100
	StartDialogueNoSet(Player1)
END

 

to this:

 

IF
InParty(Myself)
GlobalTimerExpired("AnomenHome","GLOBAL")	
GlobalLT("AnomenComplain","LOCALS",2)
OR(2)
	Global("C#AnomenComplain","LOCALS",0) 
	Global("C#AnomenComplain","LOCALS",1)
Global("TalkedToCor","GLOBAL",0)
CombatCounter(0)
!Global("Chapter","GLOBAL",4)
!Global("Chapter","GLOBAL",5)
!Global("Chapter","GLOBAL",7)
AreaType(OUTDOOR)
See(Player1)	
THEN
RESPONSE #100
	IncrementGlobal("C#AnomenComplain","LOCALS",1)
	StartDialogueNoSet(Player1)
	IncrementGlobal("AnomenComplain","LOCALS",1)
END

 

Since there is only the "StartDialogueNoSet(Player1)" in the original block I don't know how to specify the script block for REPLACE_TEXTUALLY, and I don't want to use REPLACE_BCS_BLOCK.

 

How would I do this?

Link to comment

Gods, what a stupid question. I didn't understand the "THEN" and "RESPONSE #100" can be included. Now it is easy:

 

REPLACE_TEXTUALLY ~\(GlobalLT("AnomenComplain","LOCALS",2)[%tab% %lnl%%mnl%%wnl%]+Global("TalkedToCor","GLOBAL",0)[%tab% %lnl%%mnl%%wnl%]+CombatCounter(0)[%tab% %lnl%%mnl%%wnl%]+!Global("Chapter","GLOBAL",4)[%tab% %lnl%%mnl%%wnl%]+!Global("Chapter","GLOBAL",5)[%tab% %lnl%%mnl%%wnl%]+!Global("Chapter","GLOBAL",7)[%tab% %lnl%%mnl%%wnl%]+AreaType(OUTDOOR)[%tab% %lnl%%mnl%%wnl%]+See(Player1)\)[%tab% %lnl%%mnl%%wnl%]+\(THEN[%tab% %lnl%%mnl%%wnl%]+RESPONSE #100\)[%tab% %lnl%%mnl%%wnl%]+\(StartDialogNoSet(Player1)\)~
~\1 GlobalLT("C#AnomenComplain","LOCALS",2) \2 SetGlobal("C#AnomenComplain","LOCALS",1) \3 IncrementGlobal("AnomenComplain","LOCALS",1)~

 

[if a mod feels like deleting the thread or merging with the other I wouldn't mind.]

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...