OpenXcom Forum

Modding => Help => Topic started by: robin on March 09, 2019, 02:03:50 pm

Title: mapScripts + addLine + maxUses ?
Post by: robin on March 09, 2019, 02:03:50 pm
maxUses doesn't seem to work for the addLine (direction: both) command.
Is my only option to have (in the terrain definition) several duplicates of the default road block, so the exceptional road block is used rarely by mere chance?
Thanks
Title: Re: mapScripts + addLine + maxUses ?
Post by: Hobbes on March 09, 2019, 07:03:56 pm
maxUses doesn't seem to work for the addLine (direction: both) command.
Is my only option to have (in the terrain definition) several duplicates of the default road block, so the exceptional road block is used rarely by mere chance?
Thanks

You can also use the remove command to replace one of the default road blocks with the exceptional one, but that requires a lot of map scripting
Title: Re: mapScripts + addLine + maxUses ?
Post by: robin on March 09, 2019, 09:10:40 pm
You can also use the remove command to replace one of the default road blocks with the exceptional one, but that requires a lot of map scripting
I see. I honestly want to keep my scripts simple, so I don't think I'll use that solution.
Damn, the current terrain I'm doing is really difficult to put together.
Title: Re: mapScripts + addLine + maxUses ?
Post by: davide on March 09, 2019, 09:59:29 pm
maxUses doesn't seem to work for the addLine (direction: both) command.

you could try to ask to Meridian, probably it is an issue  that could be fixed
Title: Re: mapScripts + addLine + maxUses ?
Post by: Meridian on March 09, 2019, 10:42:18 pm
I would ask Warboy first
Title: Re: mapScripts + addLine + maxUses ?
Post by: robin on March 09, 2019, 10:53:58 pm
Oh I don't need coding, it's a non-issue.  :P
Title: Re: mapScripts + addLine + maxUses ?
Post by: Hobbes on March 10, 2019, 04:03:29 am
I see. I honestly want to keep my scripts simple, so I don't think I'll use that solution.
Damn, the current terrain I'm doing is really difficult to put together.

You're trying to make the square round or vice-versa. :D

The more complex the terrain is, the more scripting it will require.