A 12-year-old girl accused of stabbing her friend in a quest to please a spooky fictional character will have a mental evaluation, while an attorney for a second girl also charged in the crime said Wednesday that he could raise the issue of competency later.

The girls appeared in court for a minutes-long hearing that would typically attract little attention but in this case drew dozens of journalists and others to Waukesha, a usually quiet community west of Milwaukee. The girls' families sat silently as a court commissioner agreed to appoint a doctor for one and scheduled their next court dates for July 2. One girl's father cried.

According to court documents, the girls plotted for months to kill their friend to curry favor with Slenderman, a character in horror stories they read online. They told investigators they believed Slenderman had a mansion in a Wisconsin forest and they planned to go live with him after the slaying.

One of the girls hosted the other two at a May 30 slumber party to celebrate her birthday. The next morning, the two girls attacked the victim in a wooded Waukesha park. One told investigators that she told the victim to lie down and be quiet after the stabbing so that she would lose blood slower. The girl said she hoped to convince the victim to be quiet so the victim would not draw attention to them and would die.

Once the attackers left, the 12-year-old victim crawled from the woods to a road where a passing bicyclist found her. Doctors later told police the girl had narrowly escaped death because the knife missed a major artery near her heart by just 1 millimeter. The child was released from a hospital last week and is recovering at home. Police have not identified her, and her parents asked friends to keep her name secret.

Anthony Cotton, the defense attorney for one of the girls, asked the Court Commissioner Laura Lau to have a doctor evaluate his client to see if she was competent to stand trial. Lau agreed and ordered the doctor's report kept secret.

"We have an obligation to raise competency when we have reason to doubt it," Cotton said afterward, adding that he couldn't go into detail. He said previously that he believed his client showed signs of mental illness.

The other girl's attorney said he is not raising competency as an issue right now but could later.

"We're still assessing our client's ability to understand the proceedings. I'm not going to raise the issue of competency today, but I can let the court know that that could become an issue down the road," public defender Joseph Smith Jr. said.

Smith said his focus now is getting information from prosecutors to help prepare for a preliminary hearing.

Smith said he knew the victim's injuries were severe, and both he and Cotton apologized on behalf of the girls' families.

Cotton said his client's parents expressed remorse every time he spoke with them.

"This is a tragedy for everybody," he said.

The girls have been charged as adults with first-degree attempted homicide and are being held at a juvenile detention center.

While the bail was kept at $500,000, there are questions raised by legal teams for both girls that the case shouldn't be in adult court.

"My belief is in this case my client's issues cannot be adequately addressed in the adult criminal system, so I'm going to be advocating strongly that she be transferred to the juvenile justice system," Smith said.

"Evaluations have to occur, discussions have to be had. But I think anybody can see that then when you represent an 11-year-old that just turned 12, the adult court system may not be the best place for them," Cotton said.

Cotton declined to describe how his client was doing but said anyone incarcerated that young "is going to have a hard time."

Wisconsin law requires prosecutors to charge children 10 and older as adults in severe cases.

The odds are against them, however. A 2013 review of the court system found that of approximately 240 people under 17 charged as adults in 2012, only seven had their cases moved to juvenile court, Wisconsin Supreme Court spokesman Tom Sheehan said. The court system does not track such cases statewide on an annual basis.