ID:270335
 
Code:


Problem description:

1. Send a message to the world that a player has logged in?

2. Make a new "tree" obj, with icon, and place some on the map?

3. Alter the DeathCheck() messaging to say who the bug was killed by?

4. Write a verb allowing the usr to check her wealth?

5. Make "damaged" icon states for the bug, and show them as the bug is injured?

All your problems can be solved by going here and READING.
In response to Crashed
There are many tutorials and demos out there just search for them you cannot expect people to do everthing for you
1. Send a message to the world that a player has logged in?

2. Make a new "tree" obj, with icon, and place some on the map?

3. Alter the DeathCheck() messaging to say who the bug was killed by?

4. Write a verb allowing the usr to check her wealth?

5. Make "damaged" icon states for the bug, and show them as the bug is injured?


ANSWERS This is not tabbed right...
1.
mob
Login()
world << "[usr] has logged in!"
2. Huh?
3.
mob
var/health = 10
mob
proc
deathcheck()
if(health <= 0)
usr << "You have died!"
view() << "[usr] has died!"
del usr
4.an easier way to do this would be the stat panel.. So first ill give you the verb way.. then the stat way...
mob
var/wealth = 10
mob
verb
check_wealth()
usr << "You have [usr.wealth] gold!"
the other way...
mob
Stat()
stat("Wealth",usr.wealth)
5.
mob
bug
icon = 'youricon.dmi'
if(health <= 5)
src.icon = 'damagedbug.dmi'
I'm not sure that last one will work but try it...


Severe the vein wrote:
Code:
>

Problem description:

1. Send a message to the world that a player has logged in?

2. Make a new "tree" obj, with icon, and place some on the map?

3. Alter the DeathCheck() messaging to say who the bug was killed by?

4. Write a verb allowing the usr to check her wealth?

5. Make "damaged" icon states for the bug, and show them as the bug is injured?


1. Answered in other post
2. ...what?
3.
mob
proc/dcheck(mob/killer) //M = the killer
if(M.healthvar>3) return
world<<"[killer] killed [src]"


verb/attack()
for(var/mob/M in get_step(usr,usr.dir)))
M.dcheck(src)

4. You should be able to do that.
5.
mob
proc/dcheck(mob/killer) //M = the killer
if(M.healthvar>3) return
world<<"[killer] killed [src]"


verb/attack()
for(var/mob/M in get_step(usr,usr.dir)))
M.healthvar-=3
if(src.healthvar<someamount) src.icon_state="injured"
M.dcheck(src)


That should help you with your way up =). Though, don't ask too much. You will find on these forums that you will always be given an example, which you need to expand. Otherwise you'd never learn. During difficulties, you can always get back here and post them.

O-matic
In response to A.T.H.K
A.T.H.K wrote:
There are many tutorials and demos out there just search for them you cannot expect people to do everthing for you

He wasn't asking anyone to do everything for him. He was rather asking how to do several things.

O-matic
Severe the vein wrote:
2. Make a new "tree" obj, with icon, and place some on the map?
you make the obj like so(not tabbed)
obj/tree
icon = 'tree.dmi' // change tree.dmi to what ever your tree icon is

then, you make a map, sellect it from the object tree(not same object as obj, the object tree has all the stuff in it that you coded, i.e. vars, mobs, verbs, procs, etc...) and click where you want it
http://zilal.byondhome.com/tutorials/zbt.html

That tutorial will help you with the basics, most of those questions should be answered.

Actually, I just realized you copied those questions from the end of that tutorial. If you read that tutorial, you should be able to do those on your own.