ID:165712
 
I was wondering if anyone could show me a code where that you have a list of character to choose from and then a browser pops up and all the chracters information pops up. I have tried amny ways but non of them are working can somone give me a proper way to do this?
can anyone help?
In response to Dbgtsuperfreak
turf
blank
Click( )
world << "[usr] is now playing!"
switch(alert("You are about to join the game! What do you want to be?","Icon","Evil","Good","Neutral"))
if("Evil")
usr.loc = locate (1,1,1)
usr.icon = 'person.dmi'
usr.icon_state = "enemy"
usr.ready +=2
if("Good")
usr.loc = locate (1,1,1)
usr.icon = 'person.dmi'
usr.icon_state = "good"
usr.ready +=2
if("Neutral")
usr.loc = locate (1,1,1)
usr.icon = 'person.dmi'
usr.icon_state = "neutral"
usr.ready +=2
name = "Join Game"
icon = 'turf.dmi'
icon_state = "black"


I would do something like that...That is what I do. So if they click on something it makes a popup. Or do you want it so when they click on the icon they are that icon?
In response to Revojake
that is not what i need at all. I need it so that when you click a vern a list comes of fighters comes up. Then when u selcet a fighter a browser() comes up and shows the information in text in the browser.
In response to Dbgtsuperfreak
I believe you want browse() and if you want to show pictures, you should look up browse_rsc() as well.

And Rev, 'ewww' at the repeating info (the loc, start+=2, and icon.. you can set those up after the character alignment was chosen, after all, why repeat a gallion thing when you can just do it once in the different position?

- GhostAnime
In response to GhostAnime
Code:
obj/character
Sub_Zero
icon ='Sub zero.dmi'
icon_state = "subzero"
Click()
usr<<browse(announce,"window=announce;size=250x250")
var/const/announce = {"<body bgcolor=black><font color=blue size=2><img src = "http://i69.photobucket.com/albums/i75/LegendaryLCD/subzero.gif">Still in the outworld, the Lin Kuei Grand Master Sub-Zero, discovers his true heritage - the source of mastery over cold. This discovery wil aid him in the fight against the Dragon king's Tarken Hordes"}

This is just one of the chracters i have using a brwose()
The porblem is, I want when people click my verb in the command tab that a list comes up of fighter(scorpion being one) and when they choose a fighter a browser comes up and displays the information like i have here.
In response to Dbgtsuperfreak
Why are you defining the variable AFTER you have used it? Define the variable first than use it (referring to where browse is located).

For the clicking link one, you should read about Topic() (Note: There's other Topic() as well like mob. and world., this one is client.)

An example can be found in the DM Guide

Hope that helps.

- GhostAnime