Project Zomboid

Project Zomboid

Otillräckligt med betyg
SIF - Example Events
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
Uppdaterades
3.722 MB
19 dec, 2024 @ 17:19
23 aug @ 21:19
33 ändringsnotiser ( visa )

Abonnera för att ladda ner
SIF - Example Events

Beskrivning
[ 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
{type = "zombielore", Speed = 2, Strength = 2, Toughness = 2, Cognition = 2, CrawlUnderVehicle = 4, Memory = 3, Sight = 3, Hearing = 3, Transmission = 2 }
Speed: 1–4 (1 = sprinter, and 4 is random) Strength: 1–4 Toughness: 1–4 Cognition: 1–4 CrawlUnderVehicle: 1–7 Memory: 1–6 Sight: 1–5 Hearing: 1–5 Transmission: 1–4
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
Populära diskussioner Visa alla (3)
45
25 jun @ 15:26
Suggestions
YebNFlo
86 kommentarer
SIMBAproduz 2 timmar sedan 
Denna kommentar väntar på en analys av vår automatiska innehållskontroll. Den döljs temporärt tills vi kan verifiera att den inte har något skadligt innehåll (t.ex. länkar till webbsidor som försöker stjäla information).
KvasForUs 24 aug @ 7:43 
Thanks a lot man) Yes maybe solution isn't perfect but its a solution and its worked)) Thank you again :steamsunny:
YebNFlo  [skapare] 23 aug @ 21:54 
@KvasForUs Added Cyrillic to Latin romanization in the main mod. If Cyrillic chat was garbled, use this Streamer.bot import (temp fix): Pastecode [pastecode.io] It automatically detects Cyrillic, writes base64 and the mod decodes and shows romanized in the game (ex. «это…» to “eto…”). The import string is plug and play-ish.
KvasForUs 22 aug @ 9:47 
Just to narrow down the search area a little. I checked the Unicode of the SIF.txt file — it’s UTF-8, and from what I’ve read online, that shouldn’t be a problem. Also, chat messages are being written to that file correctly
KvasForUs 22 aug @ 9:38 
пр - yep, something like this.
YebNFlo  [skapare] 22 aug @ 9:33 
@KvasForUs does it show question marks (?????) or something like this kind of garbled text (пр…)
KvasForUs 22 aug @ 6:59 
Hi. The mod is really awesome, but I have a question. When people type in Cyrillic in the chat, their messages appear as garbled text in the game. I’ve tried everything I could with my limited knowledge. Do you have any ideas on how to fix this?
Bosterk 14 maj @ 17:33 
Awesome! It worked! Thank you so much!
YebNFlo  [skapare] 14 maj @ 17:27 
the script was expecting the parameter if weather is true, which I did not add in the list
YebNFlo  [skapare] 14 maj @ 17:26 
somehow when I was refactoring everything I think I missed it.