Prerequisites, Some guidelines if possilble |
Prerequisites, Some guidelines if possilble |
6 Jul 2018, 14:53
Post
#1
|
|
Chat Nick 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 -------------------- |
|
|
6 Jul 2018, 17:05
Post
#2
|
|
Group: Members Posts: 190 Joined: 26 September 2016 From: England Member No.: 13220 |
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? I haven't tried it myself, but I'm interested to see if this is possible. I'm guessing the only way this would work is with the 'or' logic, much like how some USA units can be built with either the Detention Centre or Drone Control Centre. Whether this logic would work with Science I don't know. If you managed to get it to work with both sciences granted, the next issue you would have is having to create a script where you would grant Russia with 'SCIENCE_TacticalNukes' (as it's a Chinese Science) and grant China 'SCIENCE_ICBMClearance' (as it's a Russian Science) as soon as the match begins. On Single Player missions it's very easy but on Skirmish I don't know how that would work. I may experiment at some point, but if you have any results please let me know as I'd like to use this logic in a future mission |
|
|
Lo-Fi Version | Time is now: 23 April 2024 - 8:07 |