How to randomly present associations?


Author
Message
Wasabi8888
Wasabi8888
Associate Member (102 reputation)Associate Member (102 reputation)Associate Member (102 reputation)Associate Member (102 reputation)Associate Member (102 reputation)Associate Member (102 reputation)Associate Member (102 reputation)Associate Member (102 reputation)Associate Member (102 reputation)
Group: Forum Members
Posts: 6, Visits: 113
I modified this portion of the code as shown below, but it's still not working correctly. Could you please teach me how to properly make those elements match?

<block block_info_group>
/ onblockbegin = [
  values.pic1 = list.sat_pic_group.nextvalue;
  values.pic2 = list.sat_pic_group.nextvalue;
  values.pic3 = list.sat_pic_group.nextvalue;
  values.tag1 = list.sat_tag_group.nextvalue;
  values.tag2 = list.sat_tag_group.nextvalue;
  values.tag3 = list.sat_tag_group.nextvalue;
  values.team = 1;
  if (values.team == "1") {values.ownteam = "TEAM RED"; values.rivalteam = "TEAM GREEN"; values.neutralteam = "TEAM BLUE"}
  if (values.team == "2") {values.ownteam = "TEAM GREEN"; values.rivalteam = "TEAM BLUE"; values.neutralteam = "TEAM RED"}
  if (values.team == "3") {values.ownteam = "TEAM BLUE"; values.rivalteam = "TEAM RED"; values.neutralteam = "TEAM GREEN"}]
/ trials = [1 = Group_Info]
/ recorddata = true
/ onblockend = [
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};


]
</block>


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Wasabi8888 - 1/22/2024
I modified this portion of the code as shown below, but it's still not working correctly. Could you please teach me how to properly make those elements match?

<block block_info_group>
/ onblockbegin = [
  values.pic1 = list.sat_pic_group.nextvalue;
  values.pic2 = list.sat_pic_group.nextvalue;
  values.pic3 = list.sat_pic_group.nextvalue;
  values.tag1 = list.sat_tag_group.nextvalue;
  values.tag2 = list.sat_tag_group.nextvalue;
  values.tag3 = list.sat_tag_group.nextvalue;
  values.team = 1;
  if (values.team == "1") {values.ownteam = "TEAM RED"; values.rivalteam = "TEAM GREEN"; values.neutralteam = "TEAM BLUE"}
  if (values.team == "2") {values.ownteam = "TEAM GREEN"; values.rivalteam = "TEAM BLUE"; values.neutralteam = "TEAM RED"}
  if (values.team == "3") {values.ownteam = "TEAM BLUE"; values.rivalteam = "TEAM RED"; values.neutralteam = "TEAM GREEN"}]
/ trials = [1 = Group_Info]
/ recorddata = true
/ onblockend = [
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};


]
</block>


Those changes don't make any sense to me. I'm asking you once again to take a step back, read through your code, clarify for yourself what you intend it to do and comment it accordingly. We won't get anywhere as long as you don't put in the time and effortto do that, sorry.


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Dave - 1/22/2024
Wasabi8888 - 1/22/2024
I modified this portion of the code as shown below, but it's still not working correctly. Could you please teach me how to properly make those elements match?

<block block_info_group>
/ onblockbegin = [
  values.pic1 = list.sat_pic_group.nextvalue;
  values.pic2 = list.sat_pic_group.nextvalue;
  values.pic3 = list.sat_pic_group.nextvalue;
  values.tag1 = list.sat_tag_group.nextvalue;
  values.tag2 = list.sat_tag_group.nextvalue;
  values.tag3 = list.sat_tag_group.nextvalue;
  values.team = 1;
  if (values.team == "1") {values.ownteam = "TEAM RED"; values.rivalteam = "TEAM GREEN"; values.neutralteam = "TEAM BLUE"}
  if (values.team == "2") {values.ownteam = "TEAM GREEN"; values.rivalteam = "TEAM BLUE"; values.neutralteam = "TEAM RED"}
  if (values.team == "3") {values.ownteam = "TEAM BLUE"; values.rivalteam = "TEAM RED"; values.neutralteam = "TEAM GREEN"}]
/ trials = [1 = Group_Info]
/ recorddata = true
/ onblockend = [
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "1") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "1") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "1") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "2") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "2") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "2") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};

if (text.Tag1_group.currentitem == "TEAM BLUE"&&text.txt_instr_L_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic1con = "ingroup"; values.tag1name = "your team '<%values.ownteam%>'"};
if (text.Tag2_group.currentitem == "TEAM BLUE"&&text.txt_instr_M_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic2con = "ingroup"; values.tag2name = "your team '<%values.ownteam%>'"};
if (text.Tag3_group.currentitem == "TEAM BLUE"&&text.txt_instr_R_group.currentitem == "TEAM BLUE"&&values.team == "3") {values.pic3con = "ingroup"; values.tag3name = "your team '<%values.ownteam%>'"};
if (text.Tag1_group.currentitem == "TEAM RED"&&text.txt_instr_L_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic1con = "outgroup"; values.tag1name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag2_group.currentitem == "TEAM RED"&&text.txt_instr_M_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic2con = "outgroup"; values.tag2name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag3_group.currentitem == "TEAM RED"&&text.txt_instr_R_group.currentitem == "TEAM RED"&&values.team == "3") {values.pic3con = "outgroup"; values.tag3name = "the rival team '<%values.rivalteam%>'"};
if (text.Tag1_group.currentitem == "TEAM GREEN"&&text.txt_instr_L_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic1con = "neutral"; values.tag1name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag2_group.currentitem == "TEAM GREEN"&&text.txt_instr_M_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic2con = "neutral"; values.tag2name = "the non-rival team '<%values.neutralteam%>'"};
if (text.Tag3_group.currentitem == "TEAM GREEN"&&text.txt_instr_R_group.currentitem == "TEAM GREEN"&&values.team == "3") {values.pic3con = "neutral"; values.tag3name = "the non-rival team '<%values.neutralteam%>'"};


]
</block>


Those changes don't make any sense to me. I'm asking you once again to take a step back, read through your code, clarify for yourself what you intend it to do and comment it accordingly. We won't get anywhere as long as you don't put in the time and effortto do that, sorry.


To give you a hint, the way you determine the tag items -- which team is which -- is all wrong. You can't first determine these randomly and then do something else entirely. This should become very obvious once you actually take the time and reason about what your code does and when.

<block block_info_group>
/ onblockbegin = [
values.pic1 = list.sat_pic_group.nextvalue;
values.pic2 = list.sat_pic_group.nextvalue;
values.pic3 = list.sat_pic_group.nextvalue;
     // the tag (i.e. which team is which) items aren't supposed to be randomly determined here, they're determined according to your balancing below
//values.tag1 = list.sat_tag_group.nextvalue; // wrong
//values.tag2 = list.sat_tag_group.nextvalue; // wrong
//values.tag3 = list.sat_tag_group.nextvalue; // wrong
values.team = list.balanceteam.nextvalue; // here you actually determine which team is which and therefore this ought to determine the correct tag item numbers
if (values.team == "1") {values.ownteam = "TEAM RED"; values.rivalteam = "TEAM GREEN"; values.neutralteam = "TEAM BLUE";
values.pic1con = "ingroup"; values.tag1name = "TEAM RED"; values.tag1 = 3;
values.pic2con = "outgroup"; values.tag2name = "TEAM GREEN"; values.tag2 = 1;
values.pic3con = "neutral"; values.tag3name = "TEAM BLUE"; values.tag3 = 2;}
if (values.team == "2") {values.ownteam = "TEAM GREEN"; values.rivalteam = "TEAM BLUE"; values.neutralteam = "TEAM RED";
values.pic1con = "ingroup"; values.tag1name = "TEAM GREEN"; values.tag1 = 1;
values.pic2con = "outgroup"; values.tag2name = "TEAM BLUE"; values.tag2 = 2;
values.pic3con = "neutral"; values.tag3name = "TEAM RED"; values.tag3 = 3;}
if (values.team == "3") {values.ownteam = "TEAM BLUE"; values.rivalteam = "TEAM RED"; values.neutralteam = "TEAM GREEN";
values.pic1con = "ingroup"; values.tag1name = "TEAM BLUE"; values.tag1 = 2;
values.pic2con = "outgroup"; values.tag2name = "TEAM RED"; values.tag2 = 3;
values.pic3con = "neutral"; values.tag3name = "TEAM GREEN"; values.tag3 = 1;}
]
/ trials = [1 = Group_Info]
/ recorddata = true
</block>




GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search