iWeight

Ambreville

Deity
Joined
Sep 28, 2006
Messages
2,255
Location
Windy City USA
Does a higher number give a higher priority when using the weight xml tag, or is it the other way around?

For example, with events -- is an event with an iWeight of 5000 more likely to happen than one with an iWeight of 10? (Since an automatic trigger happens with an IWeight of -1, I'm wondering if the latter does indeed have the higher trigger chance).
 
For example, with events -- is an event with an iWeight of 5000 more likely to happen than one with an iWeight of 10? (Since an automatic trigger happens with an IWeight of -1, I'm wondering if the latter does indeed have the higher trigger chance).

yes, higher = more likely with events. -
 
OK -- thanks for the confirmation.

I'm trying to get a recurring event to happen about every four to six turns as an average. I tried boosting the iWeight to 5000, but that doesn't seem to do the trick. I can have it happen every turn... but that's overkill...
 
I think it's possible to set up delayed triggers so that, once the event goes off, it sets itself up to go off 5 turns later. That could probably be used to achieve more what you want, the random events are just too random.
 
Not quite. You can delay an "additional event" and you can "reset an event" so that it appears not to have been triggered. I didn't see any difference between switching on the Recurrent tag vs. resetting a given event.

The above is interesting but it doesn't work the way I need it. Additional events require "additional events" -- by this I mean separate events. For example, Trigger #1 brings Event #1, which brings Event #2, which in turn brings Event #3, etc. You end up with LOTS of events in your Event Info file.

It's too bad you can't set up the XML to trigger Event #1 which loops back to Event #1 once again. I get a CTD if I do that, even if the event clears itself in the process. That's really unfortunate.

Setting the event's iWeight at 17000 gives me roughly 10-12 turns between each recurring event. And that's with the overall frequency of events doubled (in Global Defines). But I've seen two consecutive events, then nothing for 12 turns... very unpredictable.
 
Fierabas made a quick tutorial on how to set up an Event to recur every X# of turns.

Here is a Link to the thread.

In his example, set up a Wonder to trigger an event every 10 turns. The event was to spawn a unit. So Every 10 Turns, the Wonder Spawned a unit (like the Civ3 Statue of Zeus/Knights Templar).

It wont be random that way.
 
Back
Top Bottom