Project Zomboid

Project Zomboid

Not enough ratings
SIF - Example Events
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.720 MB
19 Dec, 2024 @ 5:19pm
26 May @ 7:56pm
32 Change Notes ( view )

Subscribe to download
SIF - Example Events

Description
[ WIP | B41+B42 ] It will need a lot of setup. These example events and the Streamer Integration Framework does nothing on their own.

The SIF - example events. each event inside the client folder will have the example line that you need to use for the Write to file. You can use any program that can 'write to file' to the text file called SIF.txt. These events break immersion and only serve to be silly/fun.

Strongly recommend Streamerbot.

Write to file -> zomboid/lua/SIF.txt
Check Append File


Below are some of the example events

{type = "chickz", number=10}
{type = "rat", number = 15, fire = false}
{type = "rat", number = 15, fire = true}
{type = "barricadeEvent1"}
{type = "barricadeEvents2"}
{type = "ringOfFire1", radius = 10, points = 3}
{type = "ringOfFire2", radius = 10}
{type = "talkntext", message = " %rawInput%", viewer = "%user%"}
{type = "weather"}
{type = "chalupaMode", duration = 69}
{type = "drunk", level = 100}
{type = "eggtrail"}
{type = "nukem", radius = 75}
{type = "xyz"}
{type = "heal"}
{type = "item_spawn", item = "good", itemNumber = 1, viewer = "%user%"}
{type = "item_spawn", item = "bad", itemNumber = 1, viewer = "%user%"}
{type = "item_spawn", item = "Base.Crowbar", itemNumber = 1, viewer = "%user%"}
{type = "maximizeLevels", timeUnit = "hours", duration = 2}
{type = "maximizeLevels", timeUnit = "minutes", duration = 30}
{type = "maximizeLevels", timeUnit = "days", duration = 1}
{type = "moveTo", location = "MarchRidge"}
{type = "moveTo", location = "Louisville"}
{type = "moveTo", location = "Rosewood"}
{type = "moveTo", location = "Muldraugh"}
{type = "moveTo", location = "WestPoint"}
{type = "moveTo", location = "Riverside"}
{type = "moveTo", location = "Ekron"}
{type = "moveTo", location = "FallasLake"}
{type = "moveTo", location = "Brandenburg"}
{type = "moveTo", location = "RosewoodPrison"}
{type = "moveTo", location = "EchoCreek"}
{type = "moveTo", location = "Irvington"}
{type = "moveTo", location = "nearby"}
{type = "poop" }
{type = "savePos"}
{type = "teleportBack"}
{type = "carEvent", part = "Engine"}
{type = "carEvent", part = "FlatTire"}
{type = "carEvent", part = "RepairTires"}
{type = "carEvent", part = "GasTank"}
{type = "carEvent", part = "Refill"}
{type = "carEvent", part = "Muffler"}
{type = "carEvent", part = "Battery"}
{type = "carEvent", part = "FixEngine"}
{type = "carEvent", part = "GiveKey"}
{type = "carEvent", part = "OpenWindow"}
{type = "car"}
{type = "helicopter"}
{type = "doomCircle"}
{type = "doomCircle", radius = 10, number = 15}
{type = "zombie_katana"
{type = "zombierain"}
{type = "zombierain", number = 20, radius = 10, interval = 120}
{type = "reviveZombies", range = 20}
{type = "spawnRiggy"}
{type = "circleStripperZeds", viewer = "%user%", radius = 15, number = 15}
{type = "toothless", viewer = "%user%", radius = 15}
{type = "circle_viewerZeds", viewer = "%user%", number = 5, radius = 15}
{type = "kentuckyUtilities", action = "on", duration = 5}
{type = "kentuckyUtilities", action = "off", duration = 5}
{type = "kentuckyUtilities", action = "on"}
{type = "kentuckyUtilities", action = "off"}
{type = "unliAmmo", action = "on"}
{type = "unliAmmo", action = "off"}
{type = "unliAmmo", action = "on", duration = 1}
{type = "itemCondition", action = "full"}
{type = "itemCondition", action = "zero"}
{type = "sick"}
{type = "knockDown", radius = 20}
{type = "freeze", radius = 20} Freeze zombies
{type = "zSpeed", radius = 20, wt = "Slow1"} Other options for wt "Sprint1", "Sprint2", "Sprint3", "Sprint4", "Sprint5", "1", "2", "3", "4", "5", "Slow1", "Slow2", "Slow3"
{type = "indoorAlarm", radius = 20, rgb = "on"}
{type = "indoorAlarm", radius = 20}
{type = "carAlarm", radius = 20, rgb = "on"}
{type = "carAlarm", radius = 20}
{type = "forceShout"}
{type = "soundEvent"}
{type = "strip"}
{type = "randomizePerk"}
{type = "randomInjury"}
{type = "randomInjury", injury = "bullet"}
{type = "randomInjury", injury = "fracture"}
{type = "godMode"}
{type = "godMode", duration = 10} --ingame minutes

Example Streamerbot Action Import String. Make sure to update each file location for your own local SIF.txt inside the WriteToFile subaction. usually located at C:\Users\username\Zomboid\Lua\SIF.txt
If you are interested in a voting system with 4 choices using streamerbot, here is a bare bone system. It contains 3 action:Start Vote, Tally Vote and Voting Commands(1, 2, 3 and 4).
Start Vote displays 4 random selections.
Voting Commands using 1-4
Tally Vote picks the winner based on the vote.
thanks to OnlyBonz for the video

Workshop ID: 3387596392
Mod ID: SIFEvents
Popular Discussions View All (3)
45
25 Jun @ 3:26pm
Suggestions
YebNFlo
79 Comments
Bosterk 14 May @ 5:33pm 
Awesome! It worked! Thank you so much!
YebNFlo  [author] 14 May @ 5:27pm 
the script was expecting the parameter if weather is true, which I did not add in the list
YebNFlo  [author] 14 May @ 5:26pm 
somehow when I was refactoring everything I think I missed it.
YebNFlo  [author] 14 May @ 5:26pm 
aa I see what the problem is, the line I listed in the list above is wrong and it was missing a parameter.

{ type = "weather", weather = true }
YebNFlo  [author] 14 May @ 5:16pm 
I'll look into it
Bosterk 14 May @ 4:14pm 
Please, when you have free time, help me with this. I've been trying to run the weather but I can't get the character to say winter is comig the console throws me this
SIF DEBUG Skipped invalid line:
SIF DEBUG Queued event: {type = "weather"}
SIF DEBUG Pre-processed Line: {type = "weather"}
SIF Handled event: weather
What do you recommend? Is something wrong with my PC?
YebNFlo  [author] 14 May @ 3:30pm 
It should also say that "Winter is Coming"

on top of the player
YebNFlo  [author] 14 May @ 3:29pm 
@Bosterk it should activate their Winter is Coming from what I saw in the debug. It should also say that "Winter is Coming". the change is subtle but I think from what I saw in another stream is that it builds up slowly but eventually it will snow.
Bosterk 14 May @ 3:24pm 
Hey friend, a question, does this function {type = "weather"} work? I tried it but I didn't notice any change.
YebNFlo  [author] 14 May @ 3:00pm 
@Bosterk its haunting you :steamhappy: