• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days (this includes any time you see the message "account suspended"). For more updates please see here.

Removing a resource in Live Tuner?

cupnoodle

Chieftain
Joined
Apr 20, 2011
Messages
2
Hi all, is it possible to remove a resource on the map in live tuner? I'm not a programmer so I'm not exactly sure how one would do that in live tuner. I've been looking at the scripts for the resource plopper and comparing it to the "Remove Feature" action but I can't really figure out how to create a "Remove Resource" action based on that.

Has anyone done this? Please help me! :( Thanks!
 
If you've got the array index for the plot (pulled from its X and Y values), you can always provide a Lua input to FireTuner to remove the resource, specifically Plots[]:SetResourceType(-1). This'd remove the resource from that plot. Of course, getting that array index is the hard part.
 
Although it isn't documented (surprise! :p) the plopper tools generally work such that left-click means "add" and right-click means "remove". If you enable the resource plopper in the tuner, you can thus simply right-click a tile to remove a resource. The map will update immediately but the little resource indicators you get with ctrl-r may not go away until you save and reload.
 
Aaah! Thankyou all!

I googled the internet and scoured these forums for this but it wasn't stated anywhere. Hopefully this thread will now help other people who might be trying to figure out the same thing. I spent the entire day trying to figure this out :cry:

Thanks again! :)
 
Back
Top Bottom