Home   Help Search Login Register  

Author Topic: Group Question  (Read 632 times)

0 Members and 1 Guest are viewing this topic.

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Group Question
« on: 15 Jan 2005, 16:58:54 »
Hi all,

How do I get a guy from a group to leave that group and then join another group as its leader?

Thanks
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Group Question
« Reply #1 on: 15 Jan 2005, 17:00:37 »
[dude1] join alphagrp
[dude2,dude3,dude4,dude5,dude6] join alphagrp

Should do the trick. ;)

:beat: *Gets Shot* :beat:

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Group Question
« Reply #2 on: 15 Jan 2005, 17:02:00 »
OK, thanks  ;D
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Group Question
« Reply #3 on: 17 Jan 2005, 02:54:42 »
Actually I would have thought
dude1 join grpNull
units betagrp join dude1

is what you want.  (Where dude1 starts in alphagrp)

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Group Question
« Reply #4 on: 17 Jan 2005, 17:38:56 »
OK, i'll try that as well. The other one worked OK, but i'll have a go at both  ;)
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Group Question
« Reply #5 on: 17 Jan 2005, 17:49:42 »
correction of THobsons:

[dude1] join grpNull
units betagrp join dude1

join takes an array

tsk tsk tsk THobson, silly little mistakes  ;D :P

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Group Question
« Reply #6 on: 17 Jan 2005, 17:56:18 »
I am always forgetting those damned square brackets when it is only one guy! ::)

Anyway what's with the plural?  Surely you are not counting missing a [ and missing a ] as separate mistakes! ;)
« Last Edit: 17 Jan 2005, 18:02:24 by THobson »

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Group Question
« Reply #7 on: 17 Jan 2005, 18:03:49 »
uhhh.... i don't know....its more like a generic comment

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re:Group Question
« Reply #8 on: 17 Jan 2005, 18:19:03 »
I tried THobsons way (with the brackets) but I couldn't get that to work. It just said '1 follow 1' and that was it.  :-\
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:Group Question
« Reply #9 on: 17 Jan 2005, 20:55:24 »
1 join 1 is when dude1 joins grpNull.  

Do you have a group called betagrp with people in it?  You need to give the group a name, in this case betagrp.

If you do the second instruction will cause them to join dude1 with him as the leader of the group.  


Really this second line is the same as dmakatra's method.  Where his and my method differ is really only in the first instruction.  Telling dude1 to join a group will not make him the leader of that group, but will get him out of his current group.  Telling him to join grpNull gets him out of the current group, you then get the other guys to join him (and so make him the leader), either by using dmakatra's method of naming each individual unit, or my method of using a group name.  As I said in principle the second instructions are equivelent in both methods
« Last Edit: 17 Jan 2005, 21:01:25 by THobson »