Yes and no to your questions respectively.
Just curios: why isn't this mod on steam workshop?
There's some awful, ignorant, and awfully ignorant stuff on there.
Here's an example of finding a random civ:
Code:local activeCivs = {} [COLOR="Red"]-- define a local table where all active players are going to be stored[/COLOR] local count = 1 [COLOR="Red"]-- counter for the spot that the active player is going to take in the table[/COLOR] for playerID = 0, GameDefines.MAX_MAJOR_CIVS - 1 do [COLOR="Red"]-- loop over all major civs[/COLOR] local otherPlayer = Players[playerID] [COLOR="Red"]-- define the player object for the major civ in the loop[/COLOR] if not (otherPlayer:IsHuman()) and Teams[otherPlayer :GetTeam()]:IsHasMet(player:GetTeam()) then [COLOR="Red"]-- make sure the other player isn't the human player (AI's don't need this flavour, and if you're getting the event, we don't want to be talking about ourselves.) And make sure the player receiving the event knows the civ. Though you can use as conditions you see fit.[/COLOR] activeCivs[count] = otherPlayer [COLOR="Red"]-- add them to the table[/COLOR] count = count + 1 [COLOR="Red"]-- tell the counter to make room for the next player in the loop[/COLOR] end end randomCiv = randomCivs[GetRandom(1, #randomCivs)] [COLOR="Red"]-- choose a random civ from the table we just filled out, between 1 and the number of civs in that table[/COLOR] if randomCiv == nil then return false end [COLOR="Red"]-- if for some reason you return nil, stop here, but otherwise, we've chosen a random civ[/COLOR]
Hopefully this helped.
[1009638.158] Syntax Error: C:\Users\Michael\Documents\My Games\Sid Meier's Civilization 5\MODS\Yugoslavia\Lua\YugoslaviaEvents.lua:13: '(' expected near 'local'
Have you seen the comments people leave on the Steam Workshop?![]()
I would say some awfully oblivious and/or careless people. And other things.
I'm using this code just as you had typed it here, and I'm getting this error:
It's the line where the table is first defined. Would you know how I could fix this error?
By the way, I am still extremely thankful for all the help you and Sukritact have given me. I finally got some decisions to show up in-game, now I just gotta crack these event errors.
That laugh of yours got me confused.....
PM me the whole code if you like. It's difficult to tell from this.
I lol because I love the kinds of things I see left in the comments on Steam![]()
Assuming you've coded it properly, yes.Question: lets say i made mod that have only one decision. Will it work?
And also: i saw some religion - specific decisions while using this mod and CulDiv. Which mod adds them?
Two things:
1. I don't understand what exactly you mean by "religious unity".lets say there are 10 citizens in my single city. Now, 5 of them follow my main religion. The other 5 follow my pantheon. If 5 citizens would follow my main religion, 2 would follow religion X and 3 would follow religion Y, will the religious unity percentage be the same?
2. I think players should get more magistres.
Its a great mod!
1) Basically number of citizens following your religion/total population.
2) Been there, done that, people felt it removed the feeling of making meaningful decisions, so I've reverted it back to the former amount.
because EUROPA UNIVERSALIS!Well, i didnt mean that players should get extra magisters "just because". I meant that if player founds a reigion, he should get extra magisters, and also one at the start f the industrial era\ the start of the game (I think that those two periods is where you feel the need in magisters the most).
also, something that annoys me: I know its up to you, but... why in the comet events, you got multiple choices, leading to the same outcome?
Lose 1 stability, -1 stability, or lose one stability?