StellarForum
May 23, 2012, 02:44:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Stellar Frontier has moved to the new forum and site at stellarfrontier.com!
Please make a new account there in preparation for SF 2.0 and to chat on the boards!
 
   Home   Help Search Groups Login Register  
Pages: [1]
  Send this topic  |  Print  
Author Topic: Modifiers? Data file variable modification?  (Read 923 times)
Weylin
Veteran Member
*****
Posts: 336

Get ambushed, die, repeat...


Email
« on: September 09, 2009, 03:11:54 AM »

Is there a way to add modifiers based on, say, race?

For example...

#IF [race]=0
{
[WarheadMod]=1.15,
[VolumeMod]=1,
[MassMod]=1.20,
[DamageMod]=1.50,
etc
}
#END IF
#IF [race]=1
{
[WarheadMod]=0.80,
[VolumeMod]=0.95,
[MassMod]=0.5,
[DamageMod]=0.75,
etc
}
#END IF

then, in the document to have some way of changing a value.
so lets say a weapon has a warhead of 700.

could you put something like:  700*[WarheadMod] or ... something... is there anyway to do variable modification in dat files?
Or... (700*[WarheadMod])
I don't know...

This would save me sooo much time. Making a trillion copies of each module is awful.

Imagine just putting this [modifier] thing by each value you wish to be effected by it and having all of them adjusted from the init file.
« Last Edit: September 09, 2009, 03:38:08 AM by Weylin » Report to moderator   Logged
NiteHawk
<dev></dev>
Administrator
Legendary Member
*****
Posts: 2816



WWW
« Reply #1 on: September 09, 2009, 06:31:41 AM »

It is a good idea to add, but currently there is no proper way to do it at this time.
Report to moderator   Logged

http://chrisvall.com - Coding/gaming blog in the works.
Weylin
Veteran Member
*****
Posts: 336

Get ambushed, die, repeat...


Email
« Reply #2 on: September 09, 2009, 12:17:56 PM »

You can declare variables, but is it possible for one of the values to be equal to the product of two variables? Or a number and a variable?
Report to moderator   Logged
NiteHawk
<dev></dev>
Administrator
Legendary Member
*****
Posts: 2816



WWW
« Reply #3 on: September 09, 2009, 03:11:37 PM »

You can declare variables, but is it possible for one of the values to be equal to the product of two variables? Or a number and a variable?

Yes you can declare variables but no you cannot use plus/minus/multiple/divide/etc on them to get a new value.
Report to moderator   Logged

http://chrisvall.com - Coding/gaming blog in the works.
Pages: [1]
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!