ID:262533
 
Problem description:
Ok, I have been working on this for my new FF game for 2 days now(on and off not the whole time) and I am having a few problems. When I have a person in my party, it isnt taking them to battle with me.
Code:
turf
Battle_Zone
Crystal_Cave
Entered(atom/M)
var/Rand_1 = rand(1,10)
if(Rand_1>=10)
if(istype(M,/mob/Player))
var/mob/Player/P = M
if(P.In_Party && P.Party_Leader!=P)
return
if(P.In_Party)
P.In_Battle = 1
var/list/People_List = list()
for(var/mob/Party in P.Party)
People_List.Add(Party)
for(var/mob/PP in People_List)
P.location = "[P.Party_Leader]'s battle"
P.Frozen = 1
P << sound('Battle.mid',1)
P.Give_Battle_Hud()
P.Position = People_List.Find(P)
if(P.icon=='Red Onion Kid.dmi')
P.icon = 'Red Onion Kid Battle Bottom.dmi'
P.overlays += new/obj/Characters/Red_Onion_Kid/Top
P.overlays += new/obj/Characters/Red_Onion_Kid/Top_Side
P.overlays += new/obj/Characters/Red_Onion_Kid/Bottom_Side
if(!Battle_Zone_1)
for(var/mob/P2 in People_List)
if(P2.Position==1)
P2.client.KEEP_EYE = 0
P2.loc = locate(95,14,1)
P2.client.eye = locate(91,10,1)
if(P2.Position==2)
P2.client.KEEP_EYE = 0
P2.loc = locate(95,12,1)
P2.client.eye = locate(91,10,1)
if(P2.Position==3)
P2.client.KEEP_EYE = 0
P2.loc = locate(95,10,1)
P2.client.eye = locate(91,10,1)
if(P2.Position==4)
P2.client.KEEP_EYE = 0
P2.loc = locate(95,8,1)
P2.client.eye = locate(91,10,1)
var/Rand_2 = rand(1,1)
switch(Rand_2)
if(1)
var/Rand_3 = rand(1,1)
switch(Rand_3)
if(1)
var/Monster_1 = new/mob/Enemy/Goblin
Monster_1:loc = locate(86,13,1)




O.O Wow.
In response to Anime Unbound
That didn't help at all >_>.
In response to Sniper Joe
Please someone help him!
Well:
1) Don't use the : operator when the . operator is better.
2) You should be using a /datum to hold your party
3) You should be using Copy() instead of looping through the list then adding.

Well, that's it. =p Maybe if you fix those it'll work.
In response to Ol' Yeller
I don't quite understand datums..
In response to Sniper Joe
In response to Dark Weasel
I new that much, but I don't know how to use them effectivly, like Old Yeller Said.