Here what I want: make a container invisible for everybody unless a thief (or a character with the detect traps skill) detect a special trap. Detecting invisible container should reward XP. I have a container named "Cont01" and a trap "Traps01". i decided to code that in the area script (AREATEST)
Here it is:
QUOTE
IF
True()
THEN
RESPONSE #100
ContainerEnable("Cont01",0)
END
IF
Detected("Traps01")
THEN
RESPONSE #100
RemoveTraps("Traps01")
ContainerEnable("Cont01",1)
DisplayStringHead("Cont01",XXXXX)//You have detected a secret container!
AddexperienceParty(YYY)
DisplayString((),ZZZZZ)//You win YYY XP
END
True()
THEN
RESPONSE #100
ContainerEnable("Cont01",0)
END
IF
Detected("Traps01")
THEN
RESPONSE #100
RemoveTraps("Traps01")
ContainerEnable("Cont01",1)
DisplayStringHead("Cont01",XXXXX)//You have detected a secret container!
AddexperienceParty(YYY)
DisplayString((),ZZZZZ)//You win YYY XP
END
Is it correct?