.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 > SEV Modders Knowledge Base

Reply
 
Thread Tools Display Modes
  #1  
Old November 4th, 2006, 12:10 PM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: More data weirdness

Cool, what about the second part of my question; the edited in portion?
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
  #2  
Old November 6th, 2006, 04:19 AM

Elsemeravin Elsemeravin is offline
Corporal
 
Join Date: Nov 2001
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
Elsemeravin is on a distinguished road
Default Re: More data weirdness

Some time ago we talked about creating a weapon whose damage was depending on some other component (like batteries for electric weapons).

I tried with the following:

Weapon Type := Direct Fire
Weapon Delivery Type := Energy Bolt
Weapon Target Type List := Ship, Base, Planet, Fighter, Satellite, Drone, Troop, Weapon Platform, Building
Weapon Damage Type Formula := "Normal"
Weapon Space At Range Distance Increment := 10.0
Weapon Space Min Damage At Range := 0.0
Weapon Space Max Damage At Range := 0.0
Weapon Space To Hit Modifier At Range := 0.0
Weapon Space Min Damage Modifier Formula := iif([%Range%] <= 10 , 10 + 50 * Get_Design_Ability_Total("AI Tag 02",1) , 0)
Weapon Space Max Damage Modifier Formula := iif([%Range%] <= 10 , 10 + 50 * Get_Design_Ability_Total("AI Tag 02",1) , 0)
Weapon Space To Hit Modifier Formula := 0
Weapon Ground At Range Distance Increment := 10.0
Weapon Ground Min Damage At Range := 0.0
Weapon Ground Max Damage At Range := 0.0
Weapon Ground To Hit Modifier At Range := 0.0
Weapon Ground Min Damage Modifier Formula := 0
Weapon Ground Max Damage Modifier Formula := 0
Weapon Ground To Hit Modifier Formula := 0 - [%Range%]
Weapon Reload Rate MS Formula := 10000
Weapon Display Type := Bolt
Weapon Space Display Effect Name := Small Bolt 6
Weapon Ground Display Effect Name := Bolt 6
Weapon Explosion Effect Name := [Random Specific Type] Weapon Explosion
Weapon Sound Effect Name := Small Telekinetic Projector
Weapon Bolt Speed := 0.06

and the link component has:

Ability 3 Type := AI Tag 02
Ability 3 Description := Provides the ship with 5kT of strength.
Ability 3 Scope := Space Object
Ability 3 Range Formula := 0
Ability 3 Amount 1 Formula := 5
Ability 3 Amount 2 Formula := 0


But it seems the function Get_Design_Ability_Total does not work in this formula. Would someone have an idea about this problem ?

Thanks in advance
Reply With Quote
  #3  
Old November 6th, 2006, 08:29 AM

shinigami shinigami is offline
Corporal
 
Join Date: Mar 2006
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
shinigami is on a distinguished road
Default Re: More data weirdness

Have you tried:

Weapon Space Min Damage Modifier Formula := iif([%Range%] <= 10 , 10 + 50 * (Get_Design_Ability_Total("AI Tag 02")) , 0)
Weapon Space Max Damage Modifier Formula := iif([%Range%] <= 10 , 10 + 50 * (Get_Design_Ability_Total("AI Tag 02")) , 0)
Reply With Quote
  #4  
Old November 6th, 2006, 04:36 PM

Elsemeravin Elsemeravin is offline
Corporal
 
Join Date: Nov 2001
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
Elsemeravin is on a distinguished road
Default Re: More data weirdness

Quote:
shinigami said:
Have you tried:

Weapon Space Min Damage Modifier Formula := iif([%Range%] <= 10 , 10 + 50 * (Get_Design_Ability_Total("AI Tag 02")) , 0)
Weapon Space Max Damage Modifier Formula := iif([%Range%] <= 10 , 10 + 50 * (Get_Design_Ability_Total("AI Tag 02")) , 0)
I did, still not working.
Any help from the big guys ?
Reply With Quote
  #5  
Old November 6th, 2006, 04:48 PM

Phoenix-D Phoenix-D is offline
National Security Advisor
 
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
Phoenix-D is on a distinguished road
Default Re: More data weirdness

Get_Design_Ability isn't working right in many files at the moment.
__________________
Phoenix-D

I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
-Digger
Reply With Quote
  #6  
Old November 6th, 2006, 04:53 PM

Elsemeravin Elsemeravin is offline
Corporal
 
Join Date: Nov 2001
Posts: 148
Thanks: 0
Thanked 0 Times in 0 Posts
Elsemeravin is on a distinguished road
Default Re: More data weirdness

Quote:
Phoenix-D said:
Get_Design_Ability isn't working right in many files at the moment.
Thanks for the confirmation. I guess I'll focus on something else meanwhile.
Reply With Quote
  #7  
Old November 7th, 2006, 09:57 PM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: More data weirdness

I wonder if it would be possible to pull this thread apart. You know, move the on topic comments to there relative sections. Then a person wouldn’t need to skim through 25 pages of this that and the next thing. Just so I don’t confuse anyone the thread itself should stay incase anyone wants to read through it.
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
  #8  
Old November 6th, 2006, 10:20 AM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: More data weirdness

Quote:
Elsemeravin said:
But it seems the function Get_Design_Ability_Total does not work in this formula. Would someone have an idea about this problem ?
I tried the same ability only it was on a ship in the VehicleSizes.txt; it didn’t work there either. I wonder if the formula works. If it does maybe we just need an example from Aaron to get it working right.

Can anyone tackle my question? I want to make a component whose total level is based on the total of two tech areas. Here is what I have so far:

Get_Empire_Tech_Level("Industrial Tech") >= (1 + ([%Level%] - 1)) OR Get_Empire_Tech_Level("High Tech") >= ([%Level%] - 1)

In my test game I have not gotten far enough to attain High Tech 1. I have only reached Industrial Tech 2 and thus far the components level is “Level 2” right where it should be. So does anyone want to take a stab at this?
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
  #9  
Old November 6th, 2006, 11:57 AM

Phoenix-D Phoenix-D is offline
National Security Advisor
 
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
Phoenix-D is on a distinguished road
Default Re: More data weirdness

That won't give you the total of the two, PES. What it'll do is base the level on the higher of the two (most likely..).

If you want it based on the average between the two, it'd be simpler to do:
((Get_Empire_Tech_Level("Industrial Tech") + Get_Empire_Tech_Level("High Tech")) / 2) >= (1 + ([%Level%] - 1))
__________________
Phoenix-D

I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
-Digger
Reply With Quote
  #10  
Old November 6th, 2006, 02:15 PM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: More data weirdness

So I am allowed to add them together in one line... ahh!
I thought I had to seperate them with something, like AND, OR, anything. Cool!
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
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 06:45 AM.


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