Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   min/max (https://forums.graalonline.com/forums/showthread.php?t=43694)

tlf288 03-24-2003 04:31 AM

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.

CheeToS2 03-24-2003 04:40 AM

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.

tlf288 03-24-2003 05:06 AM

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.

:p


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 :( .

ShadowDarkstar 03-24-2003 05:27 AM

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

tlf288 03-24-2003 05:58 AM

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!

CheeToS2 03-24-2003 01:53 PM

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.

HoudiniMan 03-25-2003 02:25 AM

Oh my! so do mine :eek:

scary stuff...

osrs 03-29-2003 02:44 AM

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. :rolleyes:

ShadowDarkstar 03-29-2003 03:30 AM

Quote:

Originally posted by osrs


I belive Ajira (ShadowDarkstar) scripts better than you. :rolleyes:

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

HoudiniMan 03-29-2003 07:42 AM

Who really cares :\


All times are GMT +2. The time now is 03:33 PM.

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