How to correlate band_add_segment_segment(...) and band_set_strength(index, strength)

Case number:845813-987810
Topic:Game: Tools
Opened by:smith92clone
Status:Closed
Type:Suggestion
Opened on:Saturday, June 5, 2010 - 18:23
Last modified:Thursday, July 19, 2012 - 08:15

the current function band_add_segment_segment(...) does not return any information.

It would be very useful if this function returned the current band number assigned to the newly created band.

The current method requires the following:

band_add_segment(5,7)
band_index = get_band_count() -- assuming the band just created has the highest band count
band_set_strength(band_index,1.0)

Returning the band number results in the following code

band_index = band_add_segment(5,7)
band_set_strength(band_index,1.0)

Much easier to follow and to write

(Sat, 06/05/2010 - 18:23  |  2 comments)


Joined: 09/18/2009
Groups: SETI.Germany

Sounds useful.
I always appreciate game-internal solutions to shorten script code.

Joined: 06/17/2010
Status: Open » Closed

Done in v2 LUA, band.add returning number.

Sitemap

Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons