Jump to content


Photo

Command_StartSelfRepair


  • Please log in to reply
2 replies to this topic

#1 Zorakun

Zorakun
  • Members
  • 53 posts

Posted 06 March 2015 - 09:02 AM

Hello everyone

ok so I added the self repair thing to my fortress

and it is working quite fine, but the thing is it is repairing it for free, what I want is to make it like isengard/minas tirith gates, it costs resources when you repair them, and if they are broken just a little, it repairs for little amount of resources, but if they are broken a lot, then the repairing costs alot

how do I do that resources thing, again, I have done everything but it is doing it for free.

thanks.



#2 tc1

tc1
  • New Members
  • 4 posts

Posted 08 March 2015 - 03:35 PM

That's what I've been trying to do for other buildings too but all I got is an inactive command button. How did you get it to work?



#3 Zorakun

Zorakun
  • Members
  • 53 posts

Posted 08 March 2015 - 04:26 PM

go to the building ini file, search for "gettingbuilt" which is the getting built behavior

replace the whole behavior code with mine

Behavior = GettingBuiltBehavior GetBuiltBehaviorTag
		SelfBuildingLoop  = BuildingConstructionLoop
		SelfRepairFromDamageLoop = NoSound
		SelfRepairFromRubbleLoop = BuildingConstructionLoop
		SpawnTimer   = -1.0
		RebuildTimeSeconds  = 120
	End





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users