Project Zomboid

Project Zomboid

SIF - Example Events
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:
Bosterk 14 May @ 2:47pm 
Dude, there's a detail I just looked at, when the event of sending zombies by bits comes in, and the zombies have the name of the viewer, when the character moves from area or chunks some zombies still have the name of the viewer who used the bit or the twitch points reward, when you have some time try it, I did the test in Muldraugh and when I teleported to Riverside some zombies had names, it's weird but fun
Bosterk 14 May @ 2:24pm 
@YebNFlo Thank you so much, I'm going to try it, you're amazing.
YebNFlo  [author] 14 May @ 2:06pm 
@Bosterk done.
{ type = "zombierain", number = 20, radius = 10, interval = 120, viewer = "%user%" }
YebNFlo  [author] 14 May @ 1:42pm 
@Bosterk I can add that as an optional parameter for rain zeds
Bosterk 14 May @ 10:01am 
Thank you very much @YebNFlo it worked perfectly, another question is there a command to make "rainZeds" show the names on the zeds?
YebNFlo  [author] 14 May @ 9:37am 
For example:

type = "zombierain", number = %bits%, radius = 10, interval = 120}

Might have to be careful with the trigger. Probably want to use a specific range. If it is any amount and someone cheers 20k bits, thats going to spawn 20k zombies. 😁
YebNFlo  [author] 14 May @ 9:34am 
And for the trigger you will need to use twitch > trigger > cheer
YebNFlo  [author] 14 May @ 9:33am 
@bosterk yes, https://docs.streamer.bot/api/triggers/twitch/chat/cheer

You will need to change the one of the parameters, number = %bits%
Bosterk 14 May @ 8:55am 
Hello YebNFlo, Is there any possibility to make the game spawn a zombie for every bit?
YebNFlo  [author] 2 May @ 1:05pm 
@Ninours what do you have in mind
Ninours 30 Apr @ 11:08pm 
So I need another idea then to differentiate Z from the game and those sent by the viewers.
Ninours 30 Apr @ 11:06pm 
@YebNFlo Ok thx :)
YebNFlo  [author] 30 Apr @ 1:27pm 
Added new event to open driver seat window
{type = "carEvent", part = "OpenWindow"}
YebNFlo  [author] 30 Apr @ 1:13pm 
@Ninours its best to not use the bone variable for now as it will crash when you try to use firearms with or without the mod.
YebNFlo  [author] 30 Apr @ 1:12pm 
@Ninours it looks like it crashes even without the mod. I spawned one via debug lua console. As soon as I press the aim action with firearm, it crashes even with no mods.
YebNFlo  [author] 30 Apr @ 7:15am 
@Ninours I'll look into it
Ninours 30 Apr @ 12:35am 
Hello, I have a crash that happens when someone sends Z with bone=true if I use a gun, I don't understand the link between the skins and the gun but if I deactivate bone=true, I no longer have a crash
Kaililou 25 Apr @ 12:29am 
Thanks for your help !
And thanks for the mod too, it's really great !
YebNFlo  [author] 23 Apr @ 1:07pm 
you will probably need to use for example

{type = "circle_viewerZeds", viewer = "%charityDonationFrom%", number = 5, radius = 15}

if the trigger is streamlabs charity donation
YebNFlo  [author] 23 Apr @ 1:04pm 
@Kaililou I dont think %user% will be the correct variable according to the streamerbot site

https://docs.streamer.bot/api/triggers/integrations/streamlabs/charity-donation

It looks like you will need to use %charityDonationFrom%
Kaililou 23 Apr @ 3:27am 
Hello, i want to use your mod for a charity event. We are collecting funds with Streamlabs Charity
I did a test this morning using the trigger "Source Streamlabs Type Charity donation".
It works but the variable %user% didnt show the name of the donator, is it the good one for this case ?
LordRyoo 16 Feb @ 4:31am 
nice mods thanks very much,it's a excellente work !!!
Ninours 12 Feb @ 12:46pm 
Nice, thx :steamhappy:
YebNFlo  [author] 12 Feb @ 7:41am 
@Ninours { type = "circle_viewerZeds", viewer = "%user%", number = 5, radius = 16, bone = true }
YebNFlo  [author] 12 Feb @ 7:24am 
@Ninours yea sure, I can add that in.
Ninours 9 Feb @ 3:09pm 
I think it's a skin that already exists in the game, maybe the one for the decaying Zs
Ninours 9 Feb @ 3:08pm 
I saw on a stream someone who had an integration that made zombies appear with a skeleton skin, would it be possible to put this skin for the command {type = "circle_viewerZeds"}?
YebNFlo  [author] 4 Feb @ 9:18am 
@Ninours fixed :steamthumbsup:
Ninours 4 Feb @ 5:50am 
Ok stop but it's very very very long lol
Ninours 3 Feb @ 6:49pm 
Car alarms are ok, but Indoor alarms dont stop
YebNFlo  [author] 3 Feb @ 5:35pm 
@Ninours I changed the sounds. The original sound was problematic to use and it kept cutting off. Indoor alarms and car alarms now have proper alarm sounds.
Ninours 1 Feb @ 10:52pm 
Can't you increase the sound radius? Just 50 is enough for us to hear it every time, I think.
YebNFlo  [author] 1 Feb @ 1:36pm 
@Ninours I'll look into it if I can tune it better. :steamthumbsup:
Ninours 1 Feb @ 12:24am 
Not every time, it often happens that the sound is too far away to be heard, and this on soundevent or on alarms.
The sound radius is too short I think, if I move towards the Zombies, I can hear the alarm and I sometimes hear the end of a sound event when I went in the right direction
YebNFlo  [author] 31 Jan @ 5:14pm 
@Ninours you dont hear the sounds? on soundEvents and even the alarms?
Ninours 31 Jan @ 5:02pm 
SoundEvent works well, zombies move towards the sound but we don't systematically hear the sound in question.
I tested the alarms, they work much better now but the same, we don't systematically hear which house or car is ringing.
But again, nice job anyway =)
And I'm looking for new ideas ^^
YebNFlo  [author] 31 Jan @ 2:28pm 
@Ninours Added GiveKey parameter to carEvent, you need to be inside the car for it to work, for gas, you can use the Refill parameter to give yourself gas when you are inside the car. So if you need a car key and gas, you can create two write to file subactions for GiveKey and Refill.
Added removal of sickness from the sick event using the heal event.
Increased range of zombie attraction from 500 to 1000 for both indoor and car alarm events
Added forced shout event, works even when sneaking.
Added forced random meta sound events which also attracts zombies
Added event that forcefully removes clothing

Let me know if you encounter problems :steamthumbsup:
Ninours 31 Jan @ 10:37am 
From what I saw the radius for the zombie attraction wasn't even 20 like for rain, zombies beyond that didn't hear it. So you can easily increase it
YebNFlo  [author] 31 Jan @ 7:16am 
@Ninours the radius is to check around the player to find the indoor tile position / car position. The radius for the zombie attraction is around 500. I can increase it to 1000 if you want.
Ninours 31 Jan @ 2:07am 
Radius changes the range to activate an alarm or radius changes the range of the alarm?