The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

> Script begginer, My first script...
egm
post Jan 7 2005, 06:10 PM
Post #1


Eminence Grise Machiavelic
Group Icon

Mod Developer
Posts: 244
Joined: 12-November 04
From: Monthléry




banghead.gif

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?
Go to the top of the page
 
Quote Post

Posts in this topic
egm   Script begginer   Jan 7 2005, 06:10 PM
Vlasák   NULL   Jan 7 2005, 08:31 PM
egm   NULL   Jan 7 2005, 10:00 PM
egm   NULL   Jan 8 2005, 01:09 PM
egm   NULL   Jan 10 2005, 09:12 AM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 7th June 2025 - 07:30 AM