Welcome, Guest. Please login or register.
Kingdoms of Ahln
Pages: [1]
  Print  
Author Topic: Short desc vs long desc.  (Read 426 times)
Saffire
Citizen
***
Posts: 136


View Profile
« on: September 22, 2009, 03:03:31 pm »

What's the difference between the short desc and the long desc attributes? I noticed that they're basically just used itnerchangably in some situations: If a long desc is used, short desc is blank and unused. If a short desc is used, long desc is blank and unused.

I'm thinking of just combining the two into one description, or using the long desc for displaying when a player looks at something, and the short description to be displayed along with everything else when a player looks in a room.
Logged
Justin
Administrator
Citizen
*****
Posts: 189



View Profile
« Reply #1 on: September 22, 2009, 03:15:59 pm »

Um...I believe originally my idea was that there would be a deeper examine command to show the long_desc.

There are currently three ways an object may be shown in the room: using @show_in_look, in a list (blah and blah are here), or not at all (@show_in_look set to "" or false). This is pretty hacky, I guess.

Looking over the code, it does not look like long_desc or short_desc are really tied to much in particular. ADESC uses short_desc but LOOK shows long_desc.

At the moment, long_desc falls back on short_desc if long_desc is not defined.

So, I guess the conclusion is do whatever you'd like, it isn't going to break anything major that I can think of Smiley
Logged
Saffire
Citizen
***
Posts: 136


View Profile
« Reply #2 on: September 22, 2009, 03:23:20 pm »

Cool. I'll use short desc to display an object in the room description, then, and long desc will fire when a player specifically looks at an object. Thanks!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2006-2009, Simple Machines
Terra97 design by Bloc