Page 1 of 1

automated way of reducing supp.& pri. of objects?

Posted: 2010-05-10 14:22:01
by lamurt
any ideas how to reduce amount of supplies and priorities of the objects without having to go tru em all in a manual way?

i thought of dumping objects into a csv file and editing with oo calc or ms excel but the resulting file is not compatible with tacedit because, both excel and calc tend to save empty cells as zeroes instead of leaving them empty as they are initially...

in the other thread SM mentioned it might be doable via tcl scripting yet i have no idea how to print hello world via tcl scripts let alone finding and changing very specific values.....

Re: automated way of reducing supp.& pri. of objects?

Posted: 2010-05-13 02:38:40
by Hustler
Zero is not a bad number. All of the Objectives in FF5.5 were exported, adjusted and imported. The code would not read an 'empty cell', that cell would be read as 0 or -1.

Re: automated way of reducing supp.& pri. of objects?

Posted: 2010-05-20 23:12:43
by Snake Man
lamurt wrote:any ideas how to reduce amount of supplies and priorities of the objects without having to go tru em all in a manual way?
By "supplies" if you mean Supply, then yes that is a command in the TCL, ie "Supply".

Priorities can be changed also, use the "Priority" command for it. I'm using it in the creating of PAK objectives, this is small part of it:

Code: Select all

foreach paks $olist {
	if {[objective get $paks priority] > 80} {
        #... your code here
	}
}
The if statement would be true if our objective priority is 81 or above.