# Questions about the old .lua coding system (For Science)

**URL:** https://discourse.cataclysmdda.org/t/questions-about-the-old-lua-coding-system-for-science/10497
**Category:** The Garage
**Created:** [September 9, 2015, 6:50pm UTC](https://discourse.cataclysmdda.org/t/questions-about-the-old-lua-coding-system-for-science/10497 "2015-09-09T18:50:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RADIALTHRONE1](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/radialthrone1/32/377_2.png) [@RADIALTHRONE1](https://discourse.cataclysmdda.org/u/RADIALTHRONE1)
#### Post date: [September 9, 2015, 6:50pm UTC](https://discourse.cataclysmdda.org/t/questions-about-the-old-lua-coding-system-for-science/10497/1 "2015-09-09T18:50:42Z")

</div>

A long time ago lua files were kind of supported (thanks to CIB) but not very much. CIB eventually got the game to accept an “iuse” command written in lua for a manhack activation. I need more information about doing something like that. Mainly for doing [This](http://smf.cataclysmdda.com/index.php?topic=11156.msg247307#msg247307), of having the transform commands in lua instead of json.

1. How do you get the game to accept/run a lua file (in a mod folder, preferably)

2. How do you write new iuse commands correctly in lua  
2.5) What would be the lua equivalents of the operators in C++

3. Is there any way to convert iuse commands already in the iuse.cpp/.h to be usable in lua (copy/paste)

I know I’m trying to dig up an old topic that not many people know anything about, but I’m hoping somebody will have ideas in the least.

---

<div class="post-metadata">

### Author: ![Coolthulhu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/coolthulhu/32/2446_2.png) [@Coolthulhu](https://discourse.cataclysmdda.org/u/Coolthulhu)
#### Post date: [September 9, 2015, 7:29pm UTC](https://discourse.cataclysmdda.org/t/questions-about-the-old-lua-coding-system-for-science/10497/2 "2015-09-09T19:29:33Z")

</div>

1. Check out StatsThroughSkills mod. It has a lua function hooked up to an event (passing day).

2. Check out doc/sample\_mods/lua\_manhack\_iuse

2.5. I assume you mean DDA functions and not basic stuff that can be found in a lua tutorial  
You find which methods are exposed by which class (lua/class\_definitions.lua has the list of classes) and call those in lua.

1. Nope.
