ID:2734421
 
Code:
Pool
Hustlerz
Rythmatics

var
name
tmp
list/online = list()
list/Members
GroupHash

verb
JoinPool(var/mob/m)
set category = "Special"
set name = "Join Pool"
//set src in world //Doesn't work because src is Pool
src.online += m
src.Members += m.name
src.GroupHash += m.HashRate

CheckPool()
set category = "Special"
usr << "User Online: [src.online]"
usr << "Members: [src.Members]"
usr << "HashRate: [src.GroupHash]"


Problem description: There are a lot of things I DO know how to do, but I am clueless as to how to call a verb owned by a label.
I rarely use labels(Pool) for this reason and I don't know how to make the Pool Label to be able to be called by user.

set src in world
would give every player the option to use this verb.

The src settings aren't as broad as you may want them to be.

It is limited to these options.. "One of view(), oview(), world, world.contents, usr, usr.contents,usr.loc, or usr.group"
Alright, I *Almost* got it working... I know I'm picking the worst type of coding method but it *Almost* works.

So I am now able to see the verb: JoinPool() and CheckPool() which are both accurate, but I don't know how to LeavePool()... I don't know how to give the player the ability to LeavePool() because it is not a mob or an obj.
I was going to make it a list but lists confuse me a little.


Pool
parent_type = /mob
Hustlerz

Rythmatics

var

tmp
list/online
GroupHash
list/Members


verb

JoinPool()
set category = "Special"
set name = "Join Pool"
set src in world
//set src in world //Doesn't work because src is Pool
if(usr.inPool == 0)
usr.Pool = src
usr.contents += src
online += 1
Members += usr.name
GroupHash += usr.HashRate
usr.PoolHash = GroupHash
usr.inPool = 1
else usr << "You are already in a Pool..."

LeavePool()
set category = "Special"
if (usr.inPool == 1)
usr.Pool = ""
online -= 1
Members -= usr.name
GroupHash -= usr.HashRate
usr.PoolHash = 0
usr.inPool = 0
else
usr << "You are not in a Pool..."

CheckPool()
set category = "Special"
set src in world
usr << "User Online: [online]"
usr << "Members: [Members]"
usr << "HashRate: [GroupHash]"


//This is similar to Guild or Clan Coding for my Game.
//Hope someone can help, Thanks.
You could use group on the /mob/Pool in the verb.. and add the pool to the mobs.group..