ID:160786
![]() Jul 23 2008, 7:15 am
|
|
How can I put a picture in a terxt string used for HTML? I remember being told to use browse_rsc(), but I can't work out how to use it. Thanks.
|
Copyright © 2025 BYOND Software.
All rights reserved.
Format:
usr << browse_rsc(File,FileName)
Args:
File: a resource file (such as an image)
FileName: name of file (if different from source file)
This sends the specified resource file to usr (or anybody else) and stores it in their cache directory with the specified name. In subsequent browse() output, you can then refer to that file.
If your world is always running on the internet, you can save yourself the trouble and simply link to the image files through a web server. However, if it may be played offline, you can compile in the resource files and manually send them to players with browse_rsc().
Note that no data is transmitted if it already exists in the user's cache, so there is little overhead in calling this every time you are about to use browse().
Example:
Use the DM Reference. It makes life so much easier.