Multiple parameters will let you send more values to your functions in one call:

Function myMultiply(a, b)
myMultiply= a x b
end Function

Call myMultiply(2, 8)
(returns 16)

Recursive functions let a function call iteself, like this:

Sub ShowChildren(iParentId, iPreviousFilter, iCurrentLevel, iActiveMessageId)

objMiscRS.Filter = "thread_parent = " & iParentId

If objMiscRS.RecordCount <> 0 Then
If Not objMiscRS.BOF Then objMiscRS.MoveFirst

Do While Not objMiscRS.EOF
ShowMessageLine iCurrentLevel, objMiscRS.Fields("message_id"), objMiscRS.Fields("message_subject"), objMiscRS.Fields("members.M_Name"), objMiscRS.Fields("members.M_Email"), FormatTimestampDisplay(objMiscRS.Fields("message_timestamp")), 0, "message", iActiveMessageId

iCurrentLocation = objMiscRS.AbsolutePosition
'Response.Write iCurrentLocation
ShowChildren objMiscRS.Fields("message_id").Value, objMiscRS.Filter, iCurrentLevel + 1, iActiveMessageId
'Response.Write iCurrentLocation
objMiscRS.AbsolutePosition = iCurrentLocation

objMiscRS.MoveNext
Loop
End If

objMiscRS.Filter = iPreviousFilter
End Sub ' ShowChildren
------------------
In this ASP code, I use Show children to search a database for records that are linked as children of the current record. Later within the Subroutine, I call the subroutine I'm in, passing the current record Id back into the function to do a search on itself, It will loop as long as it finds qualifying data,then will pop up one level, go to the next record, and cycl down again. eventually it will create an entire multithreaded tree view listing. I use this in my Message forums at www.tamelin.com If you want to see it in action, use the username and passwords: User: 3dgs1 pass: 3dgs1

This is a test forum for 3dgs users.

I know I didnt use wdl, I'm still new to it, but I think it should still answer your questions.

Multiple parameters would be great for setting player attributes in one fell swoop.

Recursive functions will be awesom for AI.

I was unaware that neither of these were currently possible. I may need to go on to another engine. Maybe back to the new fly3d.

Any scripters out there to council me?

------------------
"True leaders are not those who strive to be first, but those who are first to strive and who give their all for the success of the team. True leaders are first to see the need, envision the plan, and empower the team for action. By the strength of the leader's commitment, the power of the team is unleashed."

Currently Recruiting for a Commercial CRPG Project based on a Published Pen & Paper Game:
www.talislanta.com
www.tamerlin.com
www.talislanta.com/talislanta/images/talpromo-56.ram
See our thread in 'User Projects' Forum

[This message has been edited by ASallade (edited 26 May 2001).]