Page 1 of 1

conditional border

PostPosted: Tue Dec 04, 2012 5:22 am
by Oneyed
it is possible to code that if one player holds combination "X" of regions the "Y" border will be not possible to cross for every players?

and if this player lost "X" combination the "Y" border will be again possible to cross?

Oneyed

Re: conditional border

PostPosted: Tue Dec 04, 2012 6:59 am
by thenobodies80
Not directly, if i got it right you want a passive conditional.
But it's possible to code something to work in that way. Conditional are not coded on players but only taking into account regions. So I think all you need to do is to code the X regions as conditional for Y to be able to attack, all the players who don't hold X won't be able to cross Y.....
But be aware is not because you hold X but because the others don't.

I hope it's clear, if not, let me know and I'll make a more clear example this evening when back at home.

Nobodies

Re: conditional border

PostPosted: Tue Dec 04, 2012 12:22 pm
by Oneyed
thenobodies80 wrote:Not directly, if i got it right you want a passive conditional.


yes, this is my idea.
thenobodies80 wrote:But it's possible to code something to work in that way. Conditional are not coded on players but only taking into account regions. So I think all you need to do is to code the X regions as conditional for Y to be able to attack, all the players who don't hold X won't be able to cross Y.....
But be aware is not because you hold X but because the others don't.

I hope it's clear, if not, let me know and I'll make a more clear example this evening when back at home.

Nobodies


it is clear, thanks :)

Oneyed