Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-24-2003, 04:31 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
min/max

Quote:
- new script functions min(a,b) and max(a,b)
calculate the minimum/maximum of a and b

I have absolutely no idea. Please explain what they are, what they do, and what they would be usefull for.
__________________
new account: Trevor
Reply With Quote
  #2  
Old 03-24-2003, 04:40 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
haven't used them, but i'd guess its like the stuff in M$ Excel

you specify a range of numbers like in excel, min(A1,A5) would return the lowest number in that array of numbers.
__________________

Reply With Quote
  #3  
Old 03-24-2003, 05:06 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by Kaimetsu
Man when I read the title of this thread I thought Trevor was looking for an explanation of the minimax ethos for programming game AI. That would've been crazy.



Quote:

min(a,b) == (a<b?a:b)
max(a,b) == (a>b?a:b)

Oh, well, that is simple enough. Thanks.

I thought it would be something big and cool since it has to do with game AI .
__________________
new account: Trevor
Reply With Quote
  #4  
Old 03-24-2003, 05:27 AM
ShadowDarkstar ShadowDarkstar is offline
Registered User
ShadowDarkstar's Avatar
Join Date: Feb 2003
Location: Montreal
Posts: 42
ShadowDarkstar is on a distinguished road
x.x
why not just say
min(a,b) is the lowest number of a,b
min(1,2) would be 1

max(a,b) is the greatest number of a,b
max(1,2) would be 2
=X
Reply With Quote
  #5  
Old 03-24-2003, 05:58 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by ShadowDarkstar
x.x
why not just say
min(a,b) is the lowest number of a,b
min(1,2) would be 1

max(a,b) is the greatest number of a,b
max(1,2) would be 2
=X
This is a scripter forum. Don't like the way we talk? LEAVE!
__________________
new account: Trevor
Reply With Quote
  #6  
Old 03-24-2003, 01:53 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally posted by Kaimetsu
Man when I read the title of this thread I thought Trevor was looking for an explanation of the minimax ethos for programming game AI. That would've been crazy.
The fact you got to say that TWICE in one day, in almost identical thread topics, is just scary. I am getting the feeling you're controlling our minds, and YOU are the reason my CD-Rs smell like pancake syrup.
__________________

Reply With Quote
  #7  
Old 03-25-2003, 02:25 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan is on a distinguished road
Oh my! so do mine

scary stuff...
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #8  
Old 03-29-2003, 02:44 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by tlf288


This is a scripter forum. Don't like the way we talk? LEAVE!
I belive Ajira (ShadowDarkstar) scripts better than you.
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #9  
Old 03-29-2003, 03:30 AM
ShadowDarkstar ShadowDarkstar is offline
Registered User
ShadowDarkstar's Avatar
Join Date: Feb 2003
Location: Montreal
Posts: 42
ShadowDarkstar is on a distinguished road
Quote:
Originally posted by osrs


I belive Ajira (ShadowDarkstar) scripts better than you.
X_X!!!!!
Dont say that!
I don't want to start competition here!!!
Maybe I do, maybe I don't, but I don't really want to find out =X
Reply With Quote
  #10  
Old 03-29-2003, 07:42 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan is on a distinguished road
Who really cares
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:54 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.