Tu peux oublier cette version, écrite à 1h du matin avec un décalage horaire traînant, en plus.
ça marchait très bien avec la dernière version, mais j'ai décidé de bien distinguer la romance de l'amitié. ça donne ce script:
// DEBUT DE LA ROMANCE (SI CHARNAME EST DE SEXE FEMININ)
// BLOC DE LANCEMENT
IF
Global("#SherQuest1","GLOBAL",101)
Global("#SherRomanceActive","GLOBAL",0)
Gender(Protagonist,Female)
THEN
RESPONSE #100
SetGlobal("#SherRomanceActive","GLOBAL",1)
SetGlobalTimer("#SherTimer","LOCALS",ONE_DAY)
SetGlobal("#SherLoveTlk","LOCALS",1)
END
// ROMANCE (SI CHARNAME EST DE SEXE FEMININ)
IF
InParty("#Sheratan")
Detect(Player1)
!StateCheck(Player1,STATE_SLEEPING)
!Detect([ENEMY])
Gender(Protagonist,Female)
GlobalTimerExpired("#SherTimer","LOCALS")
OR(2)
Global("#SherRomanceActive","GLOBAL",1)
Global("#SherRomanceActive","GLOBAL",2)
OR(20)
Global("#SherLoveTlk","LOCALS",1)
Global("#SherLoveTlk","LOCALS",3)
Global("#SherLoveTlk","LOCALS",5)
Global("#SherLoveTlk","LOCALS",7)
Global("#SherLoveTlk","LOCALS",9)
Global("#SherLoveTlk","LOCALS",11)
Global("#SherLoveTlk","LOCALS",13)
Global("#SherLoveTlk","LOCALS",15)
Global("#SherLoveTlk","LOCALS",17)
Global("#SherLoveTlk","LOCALS",19)
Global("#SherLoveTlk","LOCALS",21)
Global("#SherLoveTlk","LOCALS",23)
Global("#SherLoveTlk","LOCALS",25)
Global("#SherLoveTlk","LOCALS",27)
Global("#SherLoveTlk","LOCALS",29)
Global("#SherLoveTlk","LOCALS",31)
Global("#SherLoveTlk","LOCALS",33)
Global("#SherLoveTlk","LOCALS",35)
Global("#SherLoveTlk","LOCALS",37)
Global("#SherLoveTlk","LOCALS",39)
THEN
RESPONSE #100
IncrementGlobal("#SherLoveTlk","LOCALS",1)
SetGlobalTimer("#SherTimer","LOCALS",ONE_DAY)
StartDialogueNoSet(Player1)
END
IF
InParty("#Sheratan")
Detect(Player1)
!StateCheck(Player1,STATE_SLEEPING)
!Detect([ENEMY])
Gender(Protagonist,Female)
GlobalTimerExpired("#SherTimer","LOCALS")
OR(2)
Global("#SherRomanceActive","GLOBAL",1)
Global("#SherRomanceActive","GLOBAL",2)
OR(20)
Global("#SherLoveTlk","LOCALS",2)
Global("#SherLoveTlk","LOCALS",4)
Global("#SherLoveTlk","LOCALS",6)
Global("#SherLoveTlk","LOCALS",8)
Global("#SherLoveTlk","LOCALS",10)
Global("#SherLoveTlk","LOCALS",12)
Global("#SherLoveTlk","LOCALS",14)
Global("#SherLoveTlk","LOCALS",16)
Global("#SherLoveTlk","LOCALS",18)
Global("#SherLoveTlk","LOCALS",20)
Global("#SherLoveTlk","LOCALS",22)
Global("#SherLoveTlk","LOCALS",24)
Global("#SherLoveTlk","LOCALS",26)
Global("#SherLoveTlk","LOCALS",28)
Global("#SherLoveTlk","LOCALS",30)
Global("#SherLoveTlk","LOCALS",32)
Global("#SherLoveTlk","LOCALS",34)
Global("#SherLoveTlk","LOCALS",36)
Global("#SherLoveTlk","LOCALS",38)
Global("#SherLoveTlk","LOCALS",40)
THEN
RESPONSE #100
IncrementGlobal("#SherLoveTlk","LOCALS",1)
SetGlobalTimer("#SherTimer","LOCALS",ONE_DAY)
END
// AMITIE (SI CHARNAME EST DE SEXE MASCULIN)
// BLOC DE LANCEMENT
IF
Global("#SherQuest1","GLOBAL",101)
Global("#SherRomanceActive","GLOBAL",0)
Gender(Protagonist,Male)
THEN
RESPONSE #100
SetGlobal("#SherRomanceActive","GLOBAL",1)
SetGlobalTimer("#SherTimer","LOCALS",ONE_DAY)
SetGlobal("#SherLoveTlk","LOCALS",51)
END
// AMITIE (SI CHARNAME EST DE SEXE MASCULIN)
IF
InParty("#Sheratan")
Detect(Player1)
!StateCheck(Player1,STATE_SLEEPING)
!Detect([ENEMY])
Gender(Protagonist,Male)
GlobalTimerExpired("#SherTimer","LOCALS")
OR(2)
Global("#SherRomanceActive","GLOBAL",1)
Global("#SherRomanceActive","GLOBAL",2)
OR(10)
Global("#SherLoveTlk","LOCALS",51)
Global("#SherLoveTlk","LOCALS",53)
Global("#SherLoveTlk","LOCALS",55)
Global("#SherLoveTlk","LOCALS",57)
Global("#SherLoveTlk","LOCALS",59)
Global("#SherLoveTlk","LOCALS",61)
Global("#SherLoveTlk","LOCALS",63)
Global("#SherLoveTlk","LOCALS",65)
Global("#SherLoveTlk","LOCALS",67)
Global("#SherLoveTlk","LOCALS",69)
THEN
RESPONSE #100
IncrementGlobal("#SherLoveTlk","LOCALS",1)
SetGlobalTimer("#SherTimer","LOCALS",ONE_DAY)
StartDialogueNoSet(Player1)
END
IF
InParty("#Sheratan")
Detect(Player1)
!StateCheck(Player1,STATE_SLEEPING)
!Detect([ENEMY])
Gender(Protagonist,Male)
GlobalTimerExpired("#SherTimer","LOCALS")
OR(2)
Global("#SherRomanceActive","GLOBAL",1)
Global("#SherRomanceActive","GLOBAL",2)
OR(10)
Global("#SherLoveTlk","LOCALS",52)
Global("#SherLoveTlk","LOCALS",54)
Global("#SherLoveTlk","LOCALS",56)
Global("#SherLoveTlk","LOCALS",58)
Global("#SherLoveTlk","LOCALS",60)
Global("#SherLoveTlk","LOCALS",62)
Global("#SherLoveTlk","LOCALS",64)
Global("#SherLoveTlk","LOCALS",66)
Global("#SherLoveTlk","LOCALS",68)
Global("#SherLoveTlk","LOCALS",70)
THEN
RESPONSE #100
IncrementGlobal("#SherLoveTlk","LOCALS",1)
SetGlobalTimer("#SherTimer","LOCALS",ONE_DAY)
END
Le .d
/ ROMANCE (SI CHARNAME EST DE SEXE FEMININ)
// ETAPE 1
IF ~Global("#SherLoveTlk","LOCALS",2)~ THEN BEGIN Romance1
SAY @120
IF ~~ THEN REPLY @121 GOTO Compagnons
IF ~~ THEN REPLY @123 GOTO Compagnons
IF ~~ THEN REPLY @122 GOTO Etroit
END
Ect...
// ROMANCE (SI CHARNAME EST DE SEXE FEMININ)
// ETAPE 2
IF ~Global("#SherLoveTlk","LOCALS",4)~ THEN BEGIN Romance2
SAY @144
IF ~~ THEN REPLY @145 GOTO Intrigue
IF ~~ THEN REPLY @146 EXIT
END
Ect...
// AMITIE (SI CHARNAME EST DE SEXE MASCULIN)
IF ~Global("#SherLoveTlk","LOCALS",52)~ THEN BEGIN Amitie
SAY @171
IF ~~ THEN EXIT
END
Ect...
// AMITIE 2
IF ~Global("#SherLoveTlk","LOCALS",54)~ THEN BEGIN Amitie2
SAY @172
IF ~~ THEN EXIT
END
Ect...
Naturellement, ça ne marche plus maintenant avec l'ajout de la variable de genre. A mon avis, je l'ai mal placé?
Normalement, si ce problème est résolu, je devrais plus avoir à vous enquiquiner.