PDA

View Full Version : It's possible to store a text?


xkiwix
26th Jan 2010, 03:55 PM
It's possible to store a text or to change ingame a description (ctss)?
Because I made an object and I want the player can change the "name" (as store text or ctss).
Any Ideas how can I do this?

GeneralOperationsDirector
26th Jan 2010, 04:14 PM
It *must* be possible, as OfB does it all the time. As for HOW, I haven`t a clue...

xkiwix
26th Jan 2010, 09:20 PM
thanks for your answer :). Which objects in ofb do this?

leesester
26th Jan 2010, 09:33 PM
the craftables - like the potholders etc

xkiwix
27th Jan 2010, 10:25 AM
the craftables - like the potholders etc
Thank you :).
I think it use the new Dialog Type (OpCode:24) "Customize Your Craftable".. but I need an option without any EPs..

GeneralOperationsDirector
27th Jan 2010, 04:18 PM
It also does it for deeds and First Simolean awards.

Come to think of it, University also does this for diplomas.

"thanks for your answer :)."
You`re welcome.

MogHughson
7th Feb 2010, 04:01 PM
Hmmm - I was interested by this because I too would like to be able to update the CTSS (Catalog string) on-the-fly. So far I have checked out the Diploma and the CTSS is not updated - it retains the fixed catalog string that is in the package. All the interesting automatic stuff is part of viewing the diploma and does not affect the catalog string (which you see when you have something in your inventory).

I will now look at deeds and First Simolean awards to see if they update CTSS. In-Game inspection certainly suggests that the CTSS is being updated.

Deed
It has two CTSS resources, instance values 0x000007D0, and 0x000007D1. The OBJD Resource cross-refs, show it using the first (0x000007D0) which is the one which says "Deed to %s", so I guess the one that says "Deed to nothing" is surplus to requirements. I'm not quite sure how the %s gets substituted yet. Address Book entries use %s as a substitution for each Neighbor ID in the array you provide them with. The Deed object does have the Lot ID as it's first attribute. Whether that is all that is required or whether there is more to it than that - I don't know yet.

MogHughson
7th Feb 2010, 04:15 PM
It's possible to store a text or to change ingame a description (ctss)?
Because I made an object and I want the player can change the "name" (as store text or ctss).
Any Ideas how can I do this?There are certainly ways to have text filled in with inserts that are generated on the fly. Can you expand upon what you want to do, that way we may be able to tell you how?

Cheers
Mog :Pint: