| The Black Wyrm's Lair Terms of Use |
Help
Search
Members
Calendar
|
Jan 7 2005, 06:10 PM
Post
#1
|
|
|
Eminence Grise Machiavelic ![]() Mod Developer Posts: 244 Joined: 12-November 04 From: Monthléry |
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 Is it correct? |
|
|
|
![]() |
Jan 10 2005, 09:12 AM
Post
#2
|
|
|
Eminence Grise Machiavelic ![]() Mod Developer Posts: 244 Joined: 12-November 04 From: Monthléry |
By, the way, it seems that the trigger Detected () isn't triggered by the spell effect: find traps. I mean, when its Yoshimo with its class ability, it works, but when it's Jaheira with a spell, it doesn't.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 3rd November 2025 - 07:05 AM |