IPB

Welcome Guest ( Log In | Register )

Prerequisites, Some guidelines if possilble
3rdShockArmy
post 6 Jul 2018, 14:53
Post #1


Chat Nick
Group Icon

Group: Members
Posts: 845
Joined: 12 April 2015
From: Serbia
Member No.: 11096
If you ever decide to invade Russia, for the love of God, bring some warm clothes. We don't want you to blame the "evil Russian winter" when you get crushed, like everyone else who tried.



So, I've been messing around with the code a bit and after doing great for quite some time I hit a wall.

CODE
  Prerequisites
    Object = ChinaWarFactory
    Object = ChinaBreederReactor
    Science = SCIENCE_TacticalNukes SCIENCE_ICBMClearance
  End


I've been trying to give Russia and China the abiity to unlock each other's nukes. So I saw that object Prerequisites works fine when you put them next to each other, but the science just gets ignored. It only counts the first science Prerequisite.

Is there a way around this?

This post has been edited by 3rdShockArmy: 6 Jul 2018, 14:56


--------------------
Oh Lord, have mercy, for I am unworthy!

Air war in Europe

Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
3rdShockArmy
post 6 Jul 2018, 18:34
Post #2


Chat Nick
Group Icon

Group: Members
Posts: 845
Joined: 12 April 2015
From: Serbia
Member No.: 11096
If you ever decide to invade Russia, for the love of God, bring some warm clothes. We don't want you to blame the "evil Russian winter" when you get crushed, like everyone else who tried.



I did it already, but it doesn't work.

If I do it with objects it works. You don't need the "or" at all. You just place the objects next to each other:
CODE
  Prerequisites
    Object = ChinaWarFactory ChinaBreederReactor
  End


But if I do it with sciences, the second science gets ignored completely:
CODE
  Prerequisites
    Science = SCIENCE_TacticalNukes SCIENCE_ICBMClearance
  End


This also doesn't work. The second science gets ignored in this case as well:
CODE
  Prerequisites
    Science = SCIENCE_TacticalNukes or SCIENCE_ICBMClearance
  End


The same with this:
CODE
  Prerequisites
    Science = SCIENCE_TacticalNukes or Science = SCIENCE_ICBMClearance
  End


If I do this, the requirement is doubled, meaning I need both SCIENCE_TacticalNukes and SCIENCE_ICBMClearance, rendering the GP purchase useless and permanently blocking it's benefits:
CODE
  Prerequisites
    Science = SCIENCE_TacticalNukes
    Science = SCIENCE_ICBMClearance
  End


--------------------
Oh Lord, have mercy, for I am unworthy!

Air war in Europe

Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 19 April 2024 - 13:20