Project Zomboid

Project Zomboid

评价数不足
SIF - Example Events
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
3.722 MB
2024 年 12 月 19 日 下午 5:19
8 月 23 日 下午 9:19
33 项改动说明 ( 查看 )

订阅以下载
SIF - Example Events

描述
[ 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
热门讨论 查看全部(3)
45
6 月 25 日 下午 3:26
Suggestions
YebNFlo
86 条留言
SIMBAproduz 10 月 12 日 上午 5:44 
此留言正在等待我们的自动内容检查系统分析。在我们证实其内容无害之前(例如试图窃取信息的钓鱼站点链接),留言将暂时隐藏。
KvasForUs 8 月 24 日 上午 7:43 
Thanks a lot man) Yes maybe solution isn't perfect but its a solution and its worked)) Thank you again :steamsunny:
YebNFlo  [作者] 8 月 23 日 下午 9: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 8 月 22 日 上午 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 8 月 22 日 上午 9:38 
пр - yep, something like this.
YebNFlo  [作者] 8 月 22 日 上午 9:33 
@KvasForUs does it show question marks (?????) or something like this kind of garbled text (пр…)
KvasForUs 8 月 22 日 上午 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 5 月 14 日 下午 5:33 
Awesome! It worked! Thank you so much!
YebNFlo  [作者] 5 月 14 日 下午 5:27 
the script was expecting the parameter if weather is true, which I did not add in the list
YebNFlo  [作者] 5 月 14 日 下午 5:26 
somehow when I was refactoring everything I think I missed it.