ID:166837
 
What would i look up on how create partys of 3 or more people. who can team and items work on ll of them.
There isn't really anything you can look up in them. You just need lots of variables (well, not really lots), specifying the team name/leader, etc etc

Though if you wanna do a Follow-leader command, I suggest you look up walk_to().

- GhostAnime

PS: Use search for team/party demos
In response to GhostAnime
Code:
walk_to(Ref,Trg,Min=0,Lag=0)


Problem description:
That is what it gave me, what does that mean?

In response to Dbgtsuperfreak
It goes on to explain, incidently.
In response to PirateHead
i read it and i dont understand. I cant learn stop just from reading I need an example to get me started thats hgow i learn.
In response to Dbgtsuperfreak
That's not how you learn.
How the heck do you think the first programmers learned everything? No one was there to help them out. And as you might notice, you're on a PC right now, so they succeeded.

As Piratehead was kind enough (you should be grateful, Dbgtsuperfreak), it's all positively explained.

<code>Ref</code> = Reference. Who or what do you wish to move
<code>Trg</code> = Target. Use it on who?
<code>Min</code> = Minimal distance it should stop at.
<code>Lag</code> = Movement delay.

Seriously, though.
When checking out the Reference, don't look at the shiny code-examples. Read what they do.
In response to Dbgtsuperfreak
n00b whined:
i read it and i dont understand. I cant learn stop just from reading I need an example to get me started thats hgow i learn.

I don't believe you. It's so simple that if you can learn at all, I think you can learn from reading that. If you need a little more visual cue about what it does, add it into a project. For example, you could write a really simplistic click-to-walk system like this:

turf/Click()
walk_to(usr,src)


Now, was that so darn hard? The reason you have trouble is that you are not willing to sit down and try anything. And this may shock you, but the forum is not here to provide you with baby sitters who will hold your hand every step of the way through game development. Shape up or you'll always be a clueless turd that can't read an odd dozen words in the DM reference and get an easy-as-pie built in procedure to work, much less anything with any level of complication.

Edit: If you had searched the reference for walk_to(, you would have found the *exact above code snippet* in the Click() part of the reference. Seriously, it pays to look in the reference. Not just a child's glance that says "omgcode, its too hardz!@!", but a few minutes to look at things and try them.
In response to PirateHead
Little bit out off-topic here, but isn't the Clicker always a client?
In response to Mysame
Eh, I thought it was a mob.
In response to Mysame
Code:
mob
proc
Update_Party()
var/party_limit = 0
for(var/mob/P in party)
party_limit++
if(party_limit == 1)
P.party = src.party
P.in_party = 1
P.party_leader = src.name
P.verbs -= /mob/Party/verb/Create_Party
P.verbs += /mob/Party/verb/Party_Chat
P.verbs += /mob/Party/verb/Leave_Party
P.verbs += /mob/Party_Leader/verb/Party_Invite
P.verbs += /mob/Party_Leader/verb/Boot_Party_Member
else
P.in_party += 1
P.verbs -= /mob/Party/verb/Create_Party
P.verbs += /mob/Party/verb/Leave_Party
P.verbs += /mob/Party/verb/Party_Chat

Remove_Verbs()
src.verbs -= /mob/Party_Leader/verb/Party_Invite
src.verbs -= /mob/Party_Leader/verb/Boot_Party_Member
src.verbs -= /mob/Party/verb/Party_Chat
src.verbs -= /mob/Party/verb/Leave_Party

Disband_Party_Proc()
for(var/mob/P in party)
src.verbs -= /mob/Party_Leader/verb/Party_Invite
src.verbs -= /mob/Party_Leader/verb/Boot_Party_Member
P.verbs += /mob/Party/verb/Create_Party
P.verbs -= /mob/Party/verb/Leave_Party
P.verbs -= /mob/Party/verb/Party_Chat
P << "<b>[src] Disbands the party."
P.party_leader = list()
P.party = list()
P.in_party = 0

Leave_Party_Proc()
if(src.in_party == 0)
return
for(var/mob/P in party)
if(src.party_leader == src.name)
src.Disband_Party_Proc()
else
P << "<b>[src] Leaves's the party"
P.party.Remove(src)
src.party = list()
src.in_party = 0
src.party_leader = list()
src.verbs += /mob/Party/verb/Create_Party
src.verbs -= /mob/Party/verb/Leave_Party
src.verbs -= /mob/Party/verb/Party_Chat

mob/Party
verb
Create_Party()
set category = "Party"
if(src.in_party == 1)return
party.Add(src)
src.in_party = 1
src.Update_Party()
src.party_leader = src.name

Party_Chat(msg as text)
set category = "Party"
for(var/mob/P in party)
P << "<B>[src]</B> *Party* says: [msg]"

Leave_Party()
set category = "Party"
src.Leave_Party_Proc()

mob/Party_Leader
verb
Boot_Party_Member(var/mob/M in src.party)
set category = "Party"
if(M == src)return
switch(alert(usr,"Are you sure about Boot [M] from the Party?","","Yes","No"))
if("Yes")
alert(M,"You have been Booted from the Party")
M.Leave_Party_Proc()
else
return

Party_Invite()
set category = "Party"
var/members = 0
for(var/mob/M in get_step (src,src.dir))
if(M.in_party == 1)
usr << "<B>They are already in a Party!"
return
if(M.considering == 1)
usr << "<B>They are already Considering Joining a Party!"
return

if(usr.name == usr.party_leader && members < 8 && usr.key != null)
M.considering = 1
switch(alert(M,"Do you want to join [usr]'s Party?","","Yes","No"))
if("Yes")
members++
usr.party += M
M.party = usr.party
M.considering = 0
usr.Update_Party()
for(var/mob/P in usr.party)
P << "<b>[M] has joined the Party"
return
else
usr << "<B>[M]:</B> I don't want to join your Party"
M.considering = 0
else
if(usr.name == usr.party_leader && members > 5 && usr.key != null)
usr << "The party is full"
return



mob
Stat()
if(src.in_party == 1)
statpanel("Party")
stat("Name:","")
for(var/mob/P in src.party)
stat(P)
client
New()
..()
mob.Remove_Verbs()

Del()
if(mob.in_party == 1 && mob.name != mob.party_leader)
mob.Leave_Party_Proc()
if(mob.name == mob.party_leader)
mob.Leave_Party_Proc()


Problem description:
<font color=red size=2>OK, i made my party system, but now i get a problem. Somwhere in this code somthing is overiding my player stat pannel. and nohing shows up.

Code:
mob
Stat()
statpanel("Statistics")
stat(src)
stat("Level","[usr.Level]")
stat("Health","[usr.health]/[usr.maxhealth]")
stat("Magic","[usr.magic]/[usr.maxmagic]")
stat("Strength",usr.str)
stat("Defense",usr.def)
stat("Munny","[usr.Gold]")
stat("SkillPoints",usr.skillpoints)
stat("Experience","[usr.exp]/[usr.expreq]")
statpanel("Inventory",usr.contents)


Problem description:
Here is my stat pannel for the people but it is being overided by the party system.

In response to Dbgtsuperfreak
RAFL, YOU made it?
Jee, doesn't this look-alike.

Well, if you're still going to deny you ripped it like you did with everything, you should easily know how to fix it seeing as you can create a whole party system.
In response to Mysame
I know u may not think i did but i did. I just need to know whats wrong with it and why its doing that. I thought i wa that extra st pannel on th party part but when i tryed getting rid of it the party system didnt work so i cant figure it out.
In response to Dbgtsuperfreak
Confucius say, man who eat crackers in bed wake up feeling crummy.
Confucius say, man with hand in pocket all day not crazy, just feeling nuts.
Confucius say, man who sleep in bed of nails is holy.
Confucius say, man who forget to put ..() in proc heading for trouble.
Confucius say, man who stand on toilet high on pot.
Confucius say, man who jump through screen door, strain self.
Confucius say, man who push piano down mine shaft, likely to get A flat minor.

lolz
In response to PirateHead
wtf huh..?
In response to Dbgtsuperfreak
Confucius say, your question answered. Read wisdom and be enlightened.
In response to Dbgtsuperfreak
No, you did rip it. You did. God I plainly hope you get banned. You're plainly lying, laughing at our faces, and then expect us to help you? This is ridiculous.

PS; in case you failed to notice, Piratehead actually gave you the solution to your problem. And many more.
In response to Dbgtsuperfreak
I fixed it. oh, just in case u are wondering i am not making a dbz game.

I wont ask for any more help.
In response to Dbgtsuperfreak
Dbgtsuperfreak wrote:
I fixed it. oh, just in case u are wondering i am not making a dbz game.

No, but whatever you'll make, I'm not quite sure wether.. Meh.

I wont ask for any more help.

Thank you.
In response to Mysame

<.>