<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://www.simswiki.info/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://direct.simswiki.info/index.php?action=history&amp;feed=atom&amp;title=LUAObject</id>
		<title>LUAObject - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://direct.simswiki.info/index.php?action=history&amp;feed=atom&amp;title=LUAObject"/>
		<link rel="alternate" type="text/html" href="http://direct.simswiki.info/index.php?title=LUAObject&amp;action=history"/>
		<updated>2026-05-05T04:38:31Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://direct.simswiki.info/index.php?title=LUAObject&amp;diff=59983&amp;oldid=prev</id>
		<title>Kiwi tea at 19:48, 17 September 2012</title>
		<link rel="alternate" type="text/html" href="http://direct.simswiki.info/index.php?title=LUAObject&amp;diff=59983&amp;oldid=prev"/>
				<updated>2012-09-17T19:48:13Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:48, 17 September 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 144:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 144:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;-- verify_all_templates() -- When un-commented this tells the script to verify its validity against the templates file. This clogs down the program however&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;-- verify_all_templates() -- When un-commented this tells the script to verify its validity against the templates file. This clogs down the program however&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;end -- This ending command is included where non-standard data such as functions or if statements are used&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;end -- This ending command is included where non-standard data such as functions or if statements are used&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt; [[Category:Modding]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;SimCity 4 &lt;/ins&gt;Modding]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kiwi tea</name></author>	</entry>

	<entry>
		<id>http://direct.simswiki.info/index.php?title=LUAObject&amp;diff=4088&amp;oldid=prev</id>
		<title>Delphy: Auto-inserted from WakkaWikki</title>
		<link rel="alternate" type="text/html" href="http://direct.simswiki.info/index.php?title=LUAObject&amp;diff=4088&amp;oldid=prev"/>
				<updated>2005-12-29T20:50:12Z</updated>
		
		<summary type="html">&lt;p&gt;Auto-inserted from WakkaWikki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{OldWikiEntry}} LUA files relating to sprites and automata are covered by certain principles. They may contain any of the following.&lt;br /&gt;
&lt;br /&gt;
Specification:&lt;br /&gt;
&lt;br /&gt;
---- File Block&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(Helper Data) -- This data such as a function or an if command are either helpers or control agents for the file. IE a file failing an if command will not execute&lt;br /&gt;
&lt;br /&gt;
dofile(&amp;quot;filename.lua&amp;quot;)  -- This means that filename.lua must be parsed before this script is executed. This command may be repeated for other files. The dofiles look for hashed IIDs representing the name.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
---- Automata Group - For files containing automata&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
automata_group.pedestrian = -- Name of the group to create&lt;br /&gt;
{&lt;br /&gt;
 _parent = (data) -- The parent data to this automata group if any. This causes inheritance of properties.&lt;br /&gt;
group_id = &amp;quot;0x8a1e1740&amp;quot;, -- Occupant group as defined in the lua's&lt;br /&gt;
anims = { -- Animations for this automata to use if any&lt;br /&gt;
walk = 0,&lt;br /&gt;
wait = &amp;quot;0x0C&amp;quot;,&lt;br /&gt;
woohoo = &amp;quot;0x07&amp;quot;,&lt;br /&gt;
whoop = &amp;quot;0x0A&amp;quot;,&lt;br /&gt;
hop_clap = &amp;quot;0x0B&amp;quot;,&lt;br /&gt;
clap = &amp;quot;0x09&amp;quot;,&lt;br /&gt;
booyah = &amp;quot;0x08&amp;quot;,&lt;br /&gt;
panic_run = &amp;quot;0x0D&amp;quot;,&lt;br /&gt;
tantrum = &amp;quot;0x06&amp;quot;,&lt;br /&gt;
reject = &amp;quot;0x04&amp;quot;,&lt;br /&gt;
phooee = &amp;quot;0x05&amp;quot;,&lt;br /&gt;
noway = &amp;quot;0x03&amp;quot;,&lt;br /&gt;
kissmy = &amp;quot;0x02&amp;quot;,&lt;br /&gt;
booer = &amp;quot;0x01&amp;quot;,&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
class_id = &amp;quot;0x896e75af&amp;quot;, -- Class ID of the automata. Often or always kept in the savegames while the automata is in use.&lt;br /&gt;
&lt;br /&gt;
models = { -- Additional s3d models to use if any&lt;br /&gt;
sprite_model(&amp;quot;0x0001000&amp;quot;),&lt;br /&gt;
sprite_model(&amp;quot;0x0002000&amp;quot;),&lt;br /&gt;
sprite_model(&amp;quot;0x0003000&amp;quot;)&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
} -- End group&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
---- Attractor Block - drawing nearby sprites&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- create an attractor that attracts and repels school kids&lt;br /&gt;
attractor.schoolkids_attractor = &lt;br /&gt;
{&lt;br /&gt;
-- attraction strength from -100 to 100 (negative values repel)&lt;br /&gt;
strength = { 80, 0 }, -- this example falls off to 0 at max radius&lt;br /&gt;
-- strength = 80, -- this example would be at constant strength 80 throughout the radius&lt;br /&gt;
-- strength = { -80, -80, -80, 20 }, -- and this example repels for 3/4 of the radius, then attracts at the outer edge&lt;br /&gt;
&lt;br /&gt;
radius = 50, -- influence radius, in meters&lt;br /&gt;
automata = { &amp;quot;child&amp;quot; }, -- automata_groups this attractor affects&lt;br /&gt;
calendar = { monday, tuesday, wednesday, thursday, friday },&lt;br /&gt;
time_of_day = {&lt;br /&gt;
[7] = 0.0, -- start to ramp up at 7 AM...&lt;br /&gt;
[8] = 1.0, -- to max attraction strength at 8 AM&lt;br /&gt;
[8.5] = 0.3, -- then taper off&lt;br /&gt;
[9.0] = 0.0,&lt;br /&gt;
[14.9] = 0.0, -- suddenly...&lt;br /&gt;
[15.0] = -1.0, -- ...go home at 3PM (negative values repel)&lt;br /&gt;
[15.5] = 0.0&lt;br /&gt;
},&lt;br /&gt;
&lt;br /&gt;
behavior = { -- behavior is always expressed as a table of tables, since there can be more than 1&lt;br /&gt;
{ &lt;br /&gt;
radius = 15, -- when automata are within 10 meters...&lt;br /&gt;
state = BehaviorState.DISAPPEAR, -- they should disappear as if going into the building&lt;br /&gt;
},&lt;br /&gt;
{&lt;br /&gt;
radius = 30, -- when automata are within 30 meters...&lt;br /&gt;
state = BehaviorState.BEE_LINE, -- they should break from paths and head straight towards the building&lt;br /&gt;
},&lt;br /&gt;
},&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
---- Generator Block -- Generating objects&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-- create a generator that creates school kids&lt;br /&gt;
generator.schoolkids_generator = &lt;br /&gt;
{&lt;br /&gt;
automata = { &amp;quot;child&amp;quot; }, -- create children&lt;br /&gt;
&lt;br /&gt;
occupancy_pct = 0.2, -- generate 20% of school's occupancy...&lt;br /&gt;
rate = 2, -- ...two times...&lt;br /&gt;
rate_scale = RateScale.PER_MINUTE, -- ...per game minute&lt;br /&gt;
&lt;br /&gt;
-- generate at random distances between 10 and 50 meters away.&lt;br /&gt;
-- if this generator is linked to a time_of_day clock, then negative values will cause the&lt;br /&gt;
-- automata to be generated towards the inside of the range, and positive values will create&lt;br /&gt;
-- them towards the outside of the range (so that they will mimic an attached attractor)&lt;br /&gt;
radius = { 10, 50 },&lt;br /&gt;
&lt;br /&gt;
-- copy times from schoolkids_attractor&lt;br /&gt;
calendar = { monday, tuesday, wednesday, thursday, friday },&lt;br /&gt;
time_of_day = {&lt;br /&gt;
[7] = 0.0, -- start to ramp up at 7 AM...&lt;br /&gt;
[8] = 1.0, -- to max attraction strength at 8 AM&lt;br /&gt;
[8.5] = 0.3, -- then taper off&lt;br /&gt;
[9.0] = 0.0,&lt;br /&gt;
[14.9] = 0.0, -- suddenly...&lt;br /&gt;
[15.0] = -1.0, -- ...go home at 3PM (negative values repel)&lt;br /&gt;
[15.5] = 0.0&lt;br /&gt;
},&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
---- Occupant Block - Occupant Data&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- Finally, create a &amp;quot;school&amp;quot; occupant group.  Each occupant that belongs to this group will have&lt;br /&gt;
-- a &amp;quot;schoolkids_attractor&amp;quot; and &amp;quot;schoolkids_generator&amp;quot; attached to it.&lt;br /&gt;
&lt;br /&gt;
occupant_group.school = &lt;br /&gt;
{&lt;br /&gt;
group_id = &amp;quot;0x8a1ddfb4&amp;quot;, -- this should be a GUID defined in ingred.ini's &amp;quot;occupant groups&amp;quot; value map&lt;br /&gt;
&lt;br /&gt;
-- alternatively, you could create an occupant group without giving it its own GUID or changing a property in&lt;br /&gt;
-- the exemplars.  Since all school buildings have the &amp;quot;school coverage radius&amp;quot; property, you could uncomment the&lt;br /&gt;
-- following line.&lt;br /&gt;
-- Any time an occupant is created and it has that property, then it will be made a part of the &amp;quot;school&amp;quot; occupant&lt;br /&gt;
-- group and have a &amp;quot;schoolkids_attractor&amp;quot; and &amp;quot;schoolkids_generator&amp;quot; attached to it&lt;br /&gt;
--&lt;br /&gt;
-- property_check = { &amp;quot;0x691b42b3&amp;quot; }, -- &amp;quot;School Coverage Radius&amp;quot;&lt;br /&gt;
&lt;br /&gt;
controllers = {&lt;br /&gt;
&amp;quot;schoolkids_attractor&amp;quot;,&lt;br /&gt;
&amp;quot;schoolkids_generator&amp;quot;&lt;br /&gt;
},&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
---- End Block&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- verify_all_templates() -- When un-commented this tells the script to verify its validity against the templates file. This clogs down the program however&lt;br /&gt;
end -- This ending command is included where non-standard data such as functions or if statements are used&lt;br /&gt;
&amp;lt;/pre&amp;gt; [[Category:Modding]]&lt;/div&gt;</summary>
		<author><name>Delphy</name></author>	</entry>

	</feed>