Has anyone used the script function SetTownBuildingLevel() ??
It does'nt seem to work at all. I've been trying to restrict town buildings to level 2 ,(after capturing it and transforming to player1 type) in a map I'm working on, but without success....
I know the town ID's were changed for TotE. Maybe the town building IDs have been changed as well?
H5 - Changing Town Buildings with Script?
H5 - Changing Town Buildings with Script?
Ach wie schoen das niemand weiss....
- Grumpy Old Wizard
- Round Table Knight
- Posts: 2205
- Joined: 06 Jan 2006
- Location: Tower Grump
Re: H5 - Changing Town Buildings with Script?
I haven't used the SetTownBuildingLevel() function.
But when you transform a town the script name of the town changes (at least before TOTE that was the case, haven't checked it again.) That is your most likely culprit. I ran into that problem in Shadow Dreams where I transformed the center town into the player's town type.
You could keep the town as a particular type (not allowing building) and use external dwellings or quest huts to simulate dwellings.
But when you transform a town the script name of the town changes (at least before TOTE that was the case, haven't checked it again.) That is your most likely culprit. I ran into that problem in Shadow Dreams where I transformed the center town into the player's town type.
You could keep the town as a particular type (not allowing building) and use external dwellings or quest huts to simulate dwellings.
Frodo: "I wish the ring had never come to me. I wish none of this had happened."
Gandalf: "So do all who live to see such times but that is not for them to decide. All we have to decide is what to do with the time that is given to us."
Gandalf: "So do all who live to see such times but that is not for them to decide. All we have to decide is what to do with the time that is given to us."
town building levels (H5)
I found out how to do it!
The DestroyTownBuildingToLevel() functions won't work immediately following the TransformTown() function. BUT they work on the next day!
The script name for your town is not lost when you use TransformTown.
:o) Sarvi
The DestroyTownBuildingToLevel() functions won't work immediately following the TransformTown() function. BUT they work on the next day!
The script name for your town is not lost when you use TransformTown.
:o) Sarvi
Ach wie schoen das niemand weiss....
Who is online
Users browsing this forum: No registered users and 0 guests