Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Akow), 1,365 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Recursive functions and Multiple parameters on functions ? #3957
05/25/01 23:54
05/25/01 23:54
Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
W
WildCat Offline OP
Expert
WildCat  Offline OP
Expert
W

Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
WOW!

**Now** we're playing with power.

This engine rocks.


-WildCat



Visit us at [url=http://www.vertexgames.com]Vertex Games[/url]!
Re: Recursive functions and Multiple parameters on functions ? #3958
05/26/01 01:59
05/26/01 01:59

A
Anonymous
Unregistered
Anonymous
Unregistered
A



You got all my attention. Would like to share it?

Re: Recursive functions and Multiple parameters on functions ? #3959
05/26/01 04:15
05/26/01 04:15

A
Anonymous
Unregistered
Anonymous
Unregistered
A



So what are you refferencing? When were they included?

Re: Recursive functions and Multiple parameters on functions ? #3960
05/26/01 04:45
05/26/01 04:45
Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
W
WildCat Offline OP
Expert
WildCat  Offline OP
Expert
W

Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
They are listed as under the "Known bugs and Upcoming Features" link at the bottom of the page.

These are two very powerful functions.



Visit us at [url=http://www.vertexgames.com]Vertex Games[/url]!
Re: Recursive functions and Multiple parameters on functions ? #3961
05/26/01 06:31
05/26/01 06:31
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline
Expert
Keith B [Ambit]  Offline
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Sorry for the dumb question, but: what does it mean??!! What are recursive functions and what will multiple parameters do?
Thanks!

Re: Recursive functions and Multiple parameters on functions ? #3962
05/26/01 14:55
05/26/01 14:55

A
Anonymous
Unregistered
Anonymous
Unregistered
A



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).]


Re: Recursive functions and Multiple parameters on functions ? #3963
05/27/01 07:12
05/27/01 07:12
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline
Expert
Keith B [Ambit]  Offline
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Thanks!

Re: Recursive functions and Multiple parameters on functions ? #3964
05/27/01 09:44
05/27/01 09:44

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Dreams have come true .....

Re: Recursive functions and Multiple parameters on functions ? #3965
05/27/01 22:17
05/27/01 22:17

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Question: Isn't recursion nothing else than call the same function in the function again?
I thought this is already possible?¿!

Re: Recursive functions and Multiple parameters on functions ? #3966
05/28/01 05:20
05/28/01 05:20

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Yes, that is recursion. I'm not sure if its already possible or not, I havent tried yet.

Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1