Jump to content

Setting messages through dialogs


AlyssaMoran
 Share

Recommended Posts

Hi guys.

I have an object which the current owner can control through dialogs. It is designed to be customizable, and speak some messges on a timer along with doing some other stuff. I am looking for an elegant way of allowing the user to set these messages for themselves, is there a better way than using notecards for this?

 

Thanks.

Link to comment
Share on other sites

There aren't too many options - as far as i can see, there are the following:

  1. in the script itself
  2. in a second script that triggers the messages through link messages e.g.
  3. notecard(s)
  4. you could save the messages on a webserver and poll to the script using http out or send them to the object with http in. This would give you the option to make a nice web page to save the messages
  5. you could store short messages as a property of the object e.g. the description
  6. you could save the messages in the script memory - this would mean, that you loose them if the script is restarted and you could make them editable through chat messages sent to the script or using llTextBox

Of course there are combinations of these methods you can use. 

 

Link to comment
Share on other sites

I would submit that reading from notecards is the second most elegant way because that's what data-driven programming is. The most elegant way would be to write an API module, that would define messages as a list of strings and ship them to the processing module. However if you're making it for sale, experience shows that most users are unaccustomed to APIs and are afraid to modify anything in a script, so in such case I'd say notecards are the best bet.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...