I am trying to figure something out. I have a game. There are a group of four people, and they are on a quest. After the four of them defeat a monster, I want those 4 to get a health boost. How would I do that?
Sounds difficult to me.
Non-PC
ID:268118
Mar 17 2004, 4:03 pm
|
|
In response to Foomer
|
|
Foomer wrote:
You might try using the mob.group var, then just cycling through the list and adding health to each mob in the group. How's this? var/leader.group |
In response to Non-PC
|
|
No put usr in Entered(). Ungh.
Lummox JR |
In response to Lummox JR
|
|
Lummox JR wrote:
No put usr in Entered(). Ungh. Well, besides that, is there anything wrong? And thanks for pointing that out, Lummox. Non-PC |
In response to Non-PC
|
|
That's not quite how you'd do this. /mob/var/group is already defined anyways. Alright, here we go:
mob/verb Something like that is more what you want to get people in and out of a group. Keep in mind those are extremely primitive, and you'd probably want safeguards to check who is allowed to join who's group, and max group sizes and whatnot. |
<code>for(var/mob/M in leader.group) M.health++</code>
How you determine who's in what group is up to you.