This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Forces an event. | |
local function findCiv(arg) | |
local entities = df.global.world.entities.all | |
if tonumber(arg) then return arg end | |
if arg and not tonumber(arg) then | |
for eid,entity in ipairs(entities) do | |
if entity.entity_raw.code == arg then return entity end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Sets player-defined gods to correct civilizations. | |
--[[Here's an example of how to make a god: | |
[CREATURE:SHEOGORATH] | |
[DOES_NOT_EXIST] | |
[MALE] | |
[NAME:jovial man:Daedra:madness] "Sheogorath, madness god." "Often depicted as a jovial man" | |
[CASTE_NAME:Sheogorath:Sheogorath:Sheogorath] | |
[DESCRIPTION:The Daedric Prince of madness.] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Adds extra functionality to projectiles. Use the argument "disable" (minus quotes) to disable. | |
flowtypes = { | |
miasma = 0, | |
mist = 1, | |
mist2 = 2, | |
dust = 3, | |
lavaMist = 4, | |
smoke = 5, | |
dragonFire = 6, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Checks for inventory changes and applies or removes syndromes that items or their materials have. Use "disable" (minus quotes) to disable and "help" to get help. | |
local args = {...} | |
local function printItemSyndromeHelp() | |
print("Arguments (non case-sensitive):") | |
print(' "help": displays this dialogue.') | |
print(" ") | |
print(' "disable": disables the script.') | |
print(" ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function unMount (rider,horse) | |
--for k,horse in pairs(unit_list) do | |
--if unit_rider.pos.x==horse.pos.x and unit_rider.pos.y==horse.pos.y | |
--and unit_rider.pos.z==horse.pos.z then --check if they are on the same tile | |
for i=#horse.general_refs-1,0,-1 do | |
if df.general_ref_unit_riderst:is_instance(horse.general_refs[i]) then horse.general_refs:erase(i) end | |
end | |
rider.relations.rider_mount_id=-1 | |
rider.flags1.rider=false | |
horse.flags1.ridden=false |
NewerOlder