Jump to content

Damienknight

Member
  • Posts

    4
  • Joined

  • Last visited

Damienknight's Achievements

  1. So when calling Events Add, I should use a period but when calling the Say function I should use a Colon? What is the rule for when to use a colon and when to use a period? Events.EveryTenMinutes.Add(sayHello); <-- Use a Period for the ADD method? player:Say("Hello"); <-- Use a Colon for the Say method?
  2. A variable i am creating, which points to a player, whom I want to force to Say things.
  3. (I posted this under the Tutorial thread, but thought it might fit better here). I cannot get any .lua based mods to work. Specifically I tried the dry towels mod, and couple attempts at modding myself. Here is the simple intro mod (that for me does nothing): function sayHello()playerlog = getSpecificPlayer(0);playerlog.Say("Hello");end Events.EveryTenMinutes.Add(sayHello); I placed this inside of my mods folder %%Zomboid\mods\helloworld\media\lua I setup the mod.info and poster.png in the helloworld root folder. The mod info file: name=Hello World (1.0.0)poster=poster.pngdescription=Test where player 0 says Hello World every 10 in game minutesid=helloworldurl=www.google.com When booting, the mod appears in the mod list, with poster working. I double click to activate (checkmark appears). I start a Beginner survival game. I would expect to have my character say 'Hello' every 10 minute in game interval. Any advice?
  4. I cannot get any .lua based mods to work. Specifically I tried the dry towels mod, and couple attempts at modding myself. Here is the simple intro mod (that for me does nothing): function sayHello()playerlog = getSpecificPlayer(0);playerlog.Say("Hello");end Events.EveryTenMinutes.Add(sayHello); I placed this inside of my mods folder %%Zomboid\mods\helloworld\media\lua I setup the mod.info and poster.png in the helloworld root folder. The mod info file: name=Hello World (1.0.0)poster=poster.pngdescription=Test where player 0 says Hello World every 10 in game minutesid=helloworldurl=www.google.com When booting, the mod appears in the mod list, with poster working. I double click to activate (checkmark appears). I start a Beginner survival game. I would expect to have my character say 'Hello' every 10 minute in game interval. Any advice?
×
×
  • Create New...