ID:170540
 
All im looking for is a good look verb, it can even be the zeta dbz version, just need a the code to see how to make edit it into my own. Hope someone can find one for me, thz
Only post in code problems if you have code that has problems. For posts like this try Newbie Central.

This is a basic thing that if you read some tutorials should be very easy to do. Also, NEVER EVER use Zeta! Not only is it illegal, from what I've heard Zeta's programming isn't that great.

This should be what you're looking for. Don't just copy and paste, try to understand how it works.
obj/var/Description
mob/verb/Look(obj/O as obj in view())
usr << "[O.Description]"
obj/Sign
Description = "The sign says - <--- to town"
In response to Artekia
atom/verb/Look()
set src in oview(1)
usr<<"<i>[src.desc]</i>"
In response to Artekia
I got the verb to work, but then I wanted it to be a pop up. But now every variable I put into var/look, comes up to be unidentified. Is it mainly cause u cant have variables inside variables? If so, can you help me with either making my pop up able, or getting one that can?

mob/verb/Look(mob/O as mob)
usr<<browse(look,"window=Look,size=500x500")

var/look = {"
<html>
<head><title>
[O.name]</title></head><body>
<body bgcolor="black" text="blue">


<h4>This player is a
[O.race]!
<h4>Guild:
[O.guild]
<h4>This player is
[O.howstrong]
<center>
</body></html>"}
In response to FiredGoku
You can put variables inside variables. :)
Just they have to be in a proc and/or verb.
Put your look var in your look verb. (above the browse proc)
In response to Hell Ramen
It still didnt work. Still says the vars are unidentified.

mob/verb/Look(mob/O as mob)
var/look = {"
<html>
<head><title>
[O.name]</title></head><body>
<body bgcolor="black" text="blue">
<h4>This player is a
[O.race]!
<h4>Guild:
[O.guild]
<h4>This player is
[O.howstrong]
<center>
</body></html>"}

usr<<browse(look,"window=Look,size=500x500")
In response to FiredGoku
Okay...did you actually define them?
mob/var
q
qq
qqq
//et cetra..
In response to Hell Ramen
nvm i got it to work, thx
In response to FiredGoku
Use "tmp"
Even though you got it fixed, it's helpful if you know some more stuff. :)

Stuff like making a pop-up window, while defining it, also use "tmp"

mob/var/tmp/look={"
<HTML>
<head><title>Yay!</title></head>
<body>Bleh</body></HTML>"}


~Tikey