ID:166845
 
Code:
mob
verb
Information()
set category = "Help"
switch(input("What do you want more Information about?","Information")in list("Item Information","Weapon Information","Game Rules","Credits"))

if("Item Information")
usr.ItemInformation_File()

if("Weapon Information")
usr.WeaponInformation_File()

if("Game Rules")
usr.GameRules_File()

if("Credits")
usr.Credits_File()


Problem description:
How do u make it so that when a user choosed one that it show theme in the byond browser?

Look up browse(), Topic() and if you want to make it interactive (eg: a form), HTMLlib by Dantom...

- GhostAnime
In response to GhostAnime
this is what it gave me but it wont work unless im doing it wrong.

"window=name;file=name;display=1;clear=0; size=300x300;border=0;can_close=1; can_resize=1;can_minimize=1;titlebar=1"
In response to Dbgtsuperfreak
Here's an example of something you probably want
mob/proc/WHugjga()
var/tmp/htmlz
switch(rand(1,3))
if(1)
hmtlz="<font color=red>Hi</font>"
if(2)
hmtlz="<font color=blue>Hello?</font>"
if(3)
hmtlz=RYG()
src<<browse(hmtlz)

proc/RYG()
return {"
<font color=red>Red</font><p>
<font color=yellow>Yellow</font><p>
<font color=green>Green</font>"}


translation: browse(A HTML String, Options listed in the browse proc)

- GhostAnime
In response to GhostAnime
none of this is working. All i want is the information in the byond browser once they cick a choice.
In response to GhostAnime
GhostAnime wrote:
Look up browse(), Topic() and if you want to make it interactive (eg: a form), HTMLlib by Dantom...

- GhostAnime
In response to A.T.H.K
A.T.H.K wrote:
GhostAnime wrote:
Look up browse(), Topic() and if you want to make it interactive (eg: a form), HTMLlib by Dantom...

- GhostAnime