FramedArchitect
Reluctant Modder
Looks great, Sukritact! Thank you for your efforts on this mod!
Hey guys! I am going to be making a Let's Play of Civilization V in a few days using your awesome mod!I'll post links in the description of the videos to your mod and all other mods I use too. I'm quite excited to try this out as it'll be my first Let's Play.
Just wanted to make sure it's alright to use your mod for an LP purpose sukritact. :O I figure no one has done a Let's Play of the Events and Decisions mod before so I'm going to do my best!
![]()
I've a question Sukritact, I've been playing on Marathon speed lately and I've rarely been getting Events. You mentioned way back that game speed changes the rate Events happen but sometimes I will go an era or more without an Event occurring.
So I'd like to know if it's possible to increase the amount of times that Events show up. I'm really hoping that it's simple because I have no experience with coding, haha.
ThisEvent.Weight = (
function(pPlayer)
if x then
return 200
else
return 100
end
end
)
Quick and probably simple utility question: Can an event's weight be a function that returns a value? Basically I'd like to make an event whose weight varies depending on whether the player meets a certain requirement, like this:
Or does the event handler need a straight given value to use?Code:ThisEvent.Weight = ( function(pPlayer) if x then return 200 else return 100 end end )
local tOutcomes = {}
for iKey, tOutcome in pairs(tEvent.Outcomes) do
if ((tOutcome.CanFunc) == nil or (tOutcome.CanFunc(pPlayer, tEvent.Data1, tEvent.Data2))) then
if tOutcome.Weight == nil then
table.insert(tOutcomes, iKey)
elseif tOutcome.Weight > 0 then
for iVal = 1, tOutcome.Weight do
table.insert(tOutcomes, iKey)
end
end
end
end
local iRandomKey = tOutcomes[GetRandom(1, #tOutcomes)]
tEvent.Outcomes[iRandomKey].DoFunc(pPlayer, tEvent.Data1, tEvent.Data2)
ThisEvent.Weight = 100
ThisEvent.CanFunc = (
function(pPlayer)
if x then
ThisEvent.Weight = 200
end
...
end
)
Er, this is the coding taken straight from the event handler, not an example of what I should be doing, right?
Since I was under the assumption that it would then look like this:
Code:ThisEvent.Weight = 100 ThisEvent.CanFunc = ( function(pPlayer) if x then ThisEvent.Weight = 200 end ... end )
I'm playing as the Maya and when I go to the enact decisions tab, there are no decisions at all.
Would you have any idea why?
I seem to be crashing a lot whenever an event comes up. If it doesn't crash when i click the button, it often crashes 10 seconds later.
Just telling us that you have graphic anomalies tells us modders nothing. You might as well be telling us about the number of leaves on the trees in your nearest park, since that conveys just as much useful data: none.Hello? Did anyone see my last post? I`m looking for a little help as to why i`m getting graphic anomolies when I use this mod.
Just telling us that you have graphic anomalies tells us modders nothing. You might as well be telling us about the number of leaves on the trees in your nearest park, since that conveys just as much useful data: none.
(That goes for all error reports.)
Remember that a picture is worth a thousand words. And like doctors, we need detail to diagnose. What graphic anomalies - can you describe them, and describe them in detail? When do they occur and when did they start?
You might also try enabling logs and then checking... I'd say... the lua.log, for error messages.
I was trying to think of what else would convey very little information, and I just happened to glance outside and note how few leaves there are on the trees here due to it being winter.Thank you.![]()
Just a preview of things to come. Civ specific events:
Spoiler :![]()
![]()
FYI, since this will rely on Whoward's DLL (or the Community Patch), I will be releasing this as an additional add-on as opposed to integrating it directly into E&D.