examples: Add orb of seeing
This commit is contained in:
parent
deed239fdf
commit
56ed9b9a31
@ -1,4 +1,4 @@
|
|||||||
George, who can be awakened
|
George, who can be awakened.
|
||||||
|
|
||||||
```
|
```
|
||||||
@create $thing named "George"
|
@create $thing named "George"
|
||||||
@ -25,3 +25,19 @@ else
|
|||||||
endif
|
endif
|
||||||
.
|
.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The Orb of Seeing, which demonstrates how to get information about the players
|
||||||
|
that interact with objects.
|
||||||
|
|
||||||
|
```
|
||||||
|
@create $thing named "Orb of Seeing"
|
||||||
|
@verb mystery:description tnt
|
||||||
|
|
||||||
|
@program mystery:description
|
||||||
|
return {
|
||||||
|
"The "+this.name+" sees many things!",
|
||||||
|
"Viewer name: "+player.name,
|
||||||
|
"Item owner: "+this.owner.name
|
||||||
|
};
|
||||||
|
.
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user