Skip to content

Instantly share code, notes, and snippets.

@Rumrusher
Rumrusher / tofort16.lua
Last active September 28, 2022 09:30 — forked from warmist/tofort.lua
Switch to fort mode and back to advmode with little saving 9/28/2022 now there's two versions of this old script one more close to the original, and one made for using in playerforts... and adv nobles owning campsites
-- changes from advmode to fort safely and back (hopefully)
--[[Now to warn you about saving and loading in either game mode might lead
to some side issues, for saving in fort mode switching to adv mode needs the adv to be `bodyswap`
back in again. for Saving in Adv to switch to Fort mode you probably be safe-ish if the site.
isn't a nano fort or a site that isn't 3x3 small. otherwise the game will try to resize the map.
oh and switching to fort mode on any pre-gen site larger than 4x4 might implode one pc if
you don't have like 20 gigs of memory for the 16x16 embark size.
ok so this version of this script has be updated again so that caravans and visitors and migrants
could show up at any edge of the map... and maybe leave from any spot... of the z level you assign the site too.
//combined RTD and Killstreak+BUFFS by Rumrusher/ZaSpai
//designed with partial Upgradeable Sentries (BassMakesPaste) compatibility
//original killstreak plugin by Lorgan (original idea by Vindicator)
//original rtd plugin by Lorgan
//edits the following: Sentry creation, begin and end steps, Sentry and N+B HUDs, numerous Character events, StabMask collision with Sentry and Character. Adds alarm[8] to Sentry and Character
//uses global.SerializeBuffer to sync new data. WILL CAUSE A HANG AND CRASH if you forget to take this plugin out when you join another server as client!!!
//known issues: incorrect new sentry build HP with respect to sentryBuffStats (IDK how to reference the Character object of the owner player of sentry). Haven't checked the sentry gibs issue thing (I may need to sync its bolt gain value)
//RTD mostly untouched apart from Rummy's inclusion of the Stomp attack for effect 16
//Now with Vindicators weapon mod thrown into the mix may god have mercy on our souls if this work.
//kinda wigs out i
//combined RTD and Killstreak+BUFFS by Rumrusher/ZaSpai
//designed with partial Upgradeable Sentries (BassMakesPaste) compatibility
//original killstreak plugin by Lorgan (original idea by Vindicator)
//original rtd plugin by Lorgan
//edits the following: Sentry creation, begin and end steps, Sentry and N+B HUDs, numerous Character events, StabMask collision with Sentry and Character. Adds alarm[8] to Sentry and Character
//uses global.SerializeBuffer to sync new data. WILL CAUSE A HANG AND CRASH if you forget to take this plugin out when you join another server as client!!!
//known issues: incorrect new sentry build HP with respect to sentryBuffStats (IDK how to reference the Character object of the owner player of sentry). Haven't checked the sentry gibs issue thing (I may need to sync its bolt gain value)
//RTD mostly untouched apart from Rummy's inclusion of the Stomp attack for effect 16
object_event_add(Character,ev_create,0,"
@Rumrusher
Rumrusher / comfort.lua
Last active December 17, 2015 00:09 — forked from warmist/advfort.lua
Companion fort created for adventure mode could be used in any other mode.(good luck using it in legends)
-- allows to do jobs in adv. mode.
keybinds={
nextJob={key="CUSTOM_B",desc="Next job in the list"},
prevJob={key="CUSTOM_V",desc="Previous job in the list"},
continue={key="A_WAIT",desc="Continue job if available"},
down_alt1={key="CUSTOM_CTRL_D",desc="Use job down"},
down_alt2={key="CURSOR_DOWN_Z_AUX",desc="Use job down"},
up_alt1={key="CUSTOM_CTRL_E",desc="Use job up"},
up_alt2={key="CURSOR_UP_Z_AUX",desc="Use job up"},
use_same={key="A_MOVE_SAME_SQUARE",desc="Use job at the tile you are standing"},
@Rumrusher
Rumrusher / spellbook.lua
Last active December 15, 2015 08:59 — forked from warmist/spellbook.lua
My spellbook spells.
--show a list of 'spells'
local dlg=require("gui.dialogs")
function doNothing()
print("doing nothing real good but here have a site")
require("plugins.dfusion.adv_tools").addSite(nil,nil,nil,nil,nil,nil,df.global.world.units.active[0].civ_id)
end
function SummonSelf()
for k,v in pairs(df.global.world.nemesis.all) do