Permanent repeating triggers. . .

I am trying to make a map that is akin to a board game.

On this map there will be tiles where, if the player lands on them, something happens.

I know triggers will do this, but I need to know if it is easily possible to make a trigger permanent and repeatable so that the trigger

will happen each time the space is landed upon and if anyone would know where I need to look to cause this to happen.

 

3,454 views 3 replies
Reply #1 Top

I haven't tried the scenario triggers at all so can't help you, sorry.

Reply #2 Top

It looks like they can be from what i am seeing in the XML files.

My next problem is that I want the players movement number to be random each turn.

It will always at least be 1 so the player can move 1 tile.

So I would have the starting sovereign have a movement of 1. He moves to a tile. his movement is increased or remains the same randomly.

He then moves again and his movement is reduced to 1 with a chance of it increasing or remaining the same. Etc. Etc.

 

I was thinking i could do this with triggers somehow. I know you can't call a random number from an XML file (unfortunately) because it is just static data. However, i am seeing things like <rarity> in the code and am wondering if that can be used somehow to apply a movement modifier. And if so, can I have more than one in a single trigger?

Reply #3 Top

it looks like rarity is used in regards to goodie huts.

But I found something else that may work.

So far it is looking like something along this line may do the trick. but i need the chance of more than 1 value being added.

<GameModifier>
      <Liklihood>50</Liklihood>
      <ModType>Unit</ModType>
      <Attribute>AdjustUnitStat</Attribute>
      <StrVal>UnitStat_Moves</StrVal>
      <RemoveWhenTargetLeavesTile>1</RemoveWhenTargetLeavesTile>
      <Value>1</Value>
 </GameModifier>

 

I wish there was a way for <value> to be random. . .