SphereCommunity
HOuse build system - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: HOuse build system (/Thread-HOuse-build-system)



HOuse build system - rastrero - 01-14-2016 03:56 AM

Hello

my house system is modified to cost resources instead gold.

I need a way to check all the "house parts" one by one and get the resources they cost. (serv.itemdef.<itemid>resources>)
How can i do it?

is there a trigget for the moment u put a house part? or a way to do it just ebfore commiet?

ty


RE: HOuse build system - azmanomer - 01-14-2016 05:27 AM

http://wiki.sphere.torfo.org/index.php/@HouseDesignCommit

if u want to check it from somewhere else just tag it to the multi and check from there.


RE: HOuse build system - rastrero - 01-14-2016 05:57 AM

//Will this quick script point to each component needed resources?
//basement is included on this? also stairs?

on=@housedesigncommit
FOR 1 <argn2>
<serv.itemedef.<argo.DESIGN.<local._for>.id>.resources>>
ENDFOR

Is there a way to sum resource lists???? eg: consume=<resourcelist>+<resourcelist> (would this work? got to check..
or do i have to do it by my self?

anyone is interested in this script?