
Envoyé par
Akadis
secr0700.baf :
Code:
IF
Global("Secret0700","GLOBAL",0)
Range([PC],15)
THEN
RESPONSE #100
SetGlobal("Secret0700","GLOBAL",1)
DisplayString([PC],21906)
END
Testé sous BG2TOB + bg2fixpack
Merci Akadis pour ce petit bout de code, mais ce n'est pas ce dont j'ai besoin. Ce que je vais faire est plutot du genre :
AR0700 :
Code:
IF
Global("secr0700","GLOBAL",1)
AreaCheck("AR0700")
THEN
RESPONSE #100
TriggerActivation("0700secr",TRUE)
END
Et 0700secr :
Code:
IF
Global("Secr0700done","MYAREA",0)
Clicked([ANYONE])
THEN
RESPONSE #100
SetInterrupt(FALSE)
SetGlobal("Secr0700done","MYAREA",1)
SetGlobal("Secr0700","GLOBAL",1)
GiveItem("potn52",LastTrigger())
DisplayStringNoNameHead(Myself,69514)
TriggerActivation("0700secr",FALSE)
SetInterrupt(TRUE)
END
Ce qu'il me manque, c'est le changement d’icône quand le trigger est activé. Enfin, ceci est pour l'instant théorique, d'abord le livre et la variable globale ("secr0700","GLOBAL",1), puis le test