A
/ \ _ Play Now Nemesis on
| | | | _______ _ _ _______ _______ _ _______
| |\ | | | ____| | \ / | | ____| / ____| | | / ____|
/-------/-------------------------------------------------------------------,
O= Home <=XX| About News Pics Adventurers Wizards Download Connect >
\-------\-------------------------------------------------------------------'
| | \ | | |____ | | | | | |____ ___ \ \ | | ___ \ \
| | \_| |_______| |_| |_| |_______| |_______/ |_| |_______/
\ /
V
Re: P_DESTRUCT_WHEN_SOLD (Kiri, Aug 16 2016, 62)
Ecstasy also noted: There's some more on that property:
set_prop(P_DESTRUCT_WHEN_SOLD,
"The shopkeeper drops the vase and it shatters.");
This will also change the message you get when you sell the object. In
short, any value other than 0 will make the object destruct, but strings
will change the message.
All generic objects, that can or might be taken by adventurers, support
(or at least will or should ;-) support) suitable properties.
Generic objects that support properties and therefore also persistence
of players' inventory support also this:
set_quest_item(1);
or
set_quest_item("The shopkeeper drops the vase and it shatters.");
Documentation how to code with them will follow. Some hints are already
on the documentation board in the inner guild ('goto /guild/adv/inner3')
or via https://nemesis.de/lpc/board/7 .
Kiri
PS: I removed some notes posted by Shadowfax, Ecstasy and Quicksilver
(all dated from Dec 11 1993 to Dec 17 1993) saying that they did not know
this property or they explained how it works or that "everybody should
read the documentation board" ;-)
Here you can discuss LPC issues like how to code this and that,
who has coded something like this or how that works etc.
As there are no real "secrets" on this board it is now
available via https://nemesis.de/lpc/board/10/ , too.
The board contains 23 notes:
- forcing and removing files (Shadowfax, Jul 29 1993, 29)
- Re: Has someone coded chairs already? (Ping, Oct 23 1993, 30)
- How does under_water work? (Jhudsui, Oct 28 1993, 28)
- Request for "query_action()" in living.c (Kilroy, Oct 29 1993, 25)
- /obj/chest.c (Quicksilver, Nov 11 1993, 24)
- Amulet of Blinding ? (Mambres, Nov 11 1993, 22)
- Re: Amulet of Blinding ? (Poe, Nov 20 1993, 48)
- P_DESTRUCT_WHEN_SOLD (Mambres, Dec 4 1993, 22)
- set_items(({ "sky"... (Mambres, Jan 12 1994, 24)
- Howto add default items to a standard shop? (Berny, Dec 23 2001, 30)
- Use of this_player()->more(...) (Teddy, May 11 2002, 29)
- Re: Howto add default items to a standard shop? (Teddy, May 13 2002, 29)
- Re: Use of this_player()->more(...) (Kiri, May 22 2016, 62)
- Re: missing string efuns... (Kiri, Aug 15 2016, 62)
- Re: Request for "query_action()" in living.c (Kiri, Aug 15 2016, 62)
- Re: How does under_water work? (Kiri, Aug 15 2016, 62)
- Re: /obj/chest.c (Kiri, Aug 15 2016, 62)
- Re: Has someone coded chairs already? (Kiri, Aug 15 2016, 62)
- Re: P_DESTRUCT_WHEN_SOLD (Kiri, Aug 16 2016, 62)
- Re: forcing and removing files (Kiri, Aug 17 2016, 62)
- New support for feelings with monsters (Teddy, Jan 28 2017, 50)
- Re: set_items(({ "sky"... (Kiri, Nov 17 2017, 62)
- P_AREA property (Teddy, Nov 26 2017, 50)
This page was generated in LPC
Imprint / Impressum