.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Command 3.0- Save $12.00
War Plan Pacific- Save $7.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old April 20th, 2008, 01:46 PM
Arralen's Avatar

Arralen Arralen is offline
Major General
 
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
Arralen is on a distinguished road
Default Re: MOD: Space Empires V - Babylon 5

Quote:
Fyron said:
Quote:

However, i want it to be capped at 25 or what.
If you look on page 53 of the modding doc, you will see some useful functions. Min is what you want in this case. It will return the smaller of the two values.
Min([%Range%] / 2, 25)
As he wants a cap, he would need a MAX function .. if there's any (dunno, never read that doc). ;-)
__________________
As for AI the most effective work around to this problem so far is to simply use an American instead, they tend to put up a bit more of a fight than your average Artificial Idiot.
... James McGuigan on rec.games.computer.stars somewhen back in 1998 ...
Reply With Quote
  #2  
Old April 20th, 2008, 03:05 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: MOD: Space Empires V - Babylon 5

Max would provide a minimum value. (It never goes below X)
Max( X , SomeValue) Returns the bigger of the two.

Min provides a maximum value. (It never goes above X)
Min( X , SomeValue) Returns the smaller of the two.
Reply With Quote
  #3  
Old April 20th, 2008, 05:01 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: MOD: Space Empires V - Babylon 5

Arralen said:
"As he wants a cap, he would need a MAX function .. if there's any (dunno, never read that doc)."


Ah, the trap of function naming. Catches up everyone when they first think about using Min and Max functions. Gotta love reverse logical thinking.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On

Forum Jump


All times are GMT -4. The time now is 11:35 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.