A) Are the @something=3 that can be found in some of the moddable txt files constants of variables?
Is there a way to modify them later in the same file?
B) What syntax/code is used in these files? any ressources on that? (i know the wiki and the resources stickied in reddit/stellarimods)
C) Is there a way to read such a constant out of another file? ( In order to make a general settings file in a bigger mod)
D) Looking at following code snippet (simplified example) out of 00_star_classes.txt:
I'm trying to modify what planets can spawn in specific systems. These should be modified only by editing the @Oink constant/variable. The switch stuff won't work in both ways. Can someone tell me what I am missing?
Is there a way to modify them later in the same file?
B) What syntax/code is used in these files? any ressources on that? (i know the wiki and the resources stickied in reddit/stellarimods)
C) Is there a way to read such a constant out of another file? ( In order to make a general settings file in a bigger mod)
D) Looking at following code snippet (simplified example) out of 00_star_classes.txt:
Code:
@oink=2
# Blue Stars
sc_b = {
class = b_star
planet = pc_b_star
spawn_odds = 10000
num_planets = { min = 4 max = 10 }
#switch = {
# trigger = @oink
# 1 = { pc_tundra = { spawn_odds = 1 } }
# 2 = { pc_arid = { spawn_odds = 1 } }
}
switch = {
trigger = check_variable = { which = @oink value }
1 = { pc_tundra = { spawn_odds = 1 } }
2 = { pc_arid = { spawn_odds = 1 } }
}
}
I'm trying to modify what planets can spawn in specific systems. These should be modified only by editing the @Oink constant/variable. The switch stuff won't work in both ways. Can someone tell me what I am missing?