Jump to content

Search the Community

Showing results for tags '[INFO]'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • News
  • Project Zomboid
    • PZ Updates
    • General Discussions
    • Bug Reports
    • PZ Support
    • PZ Multiplayer
    • PZ Community & Creativity
    • PZ Suggestions
  • PZ Modding
    • Tutorials & Resources
    • Mods
    • Items
    • Mapping
    • Mod Ideas and Requests
  • General Games Development
    • Indie Scene
  • Other Discussions
    • General Discussion
    • Forum Games & Activities

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Twitter


Interests

Found 1 result

  1. Hello survivors, I just recently started to put my hands on the lua language, knowing a bit of C and Java and I would like to ask your modus operandi for modding Project Zomboid. Let me explain(and please correct me if I write monstruosity): I'm writing simple .lua where I add items, change values etcetc. and i'm doing it reading both the Javadoc (http://theindiestone.com/zomboidjavadocs/) and the events that i found here(http://pz-mods.net/guide/event-reference/). When I change something and I want to test it with the game opened, I save the .lua, disable the mod in the game menu' and then enable it again and load a save to see the changes. The problem is that the whole thing is time consuming since sometimes I do not know the use of what is in Javadoc, sometimes events don't work as I think they should and my way of testing the whole thing looks to me a lot unprofessional. A simple example of what I mean: I was using the event OnWeaponSwingHitPoint (in that site is written that it "Triggers when the player succesfully attack and hit a zombie") and I was interpreting it something like " OnHit && OnAttack" while it was "OnHit || OnAttack" . I decided then to try something else and i wanted to see on the screen without opening a window the health value of the player. I looked for something userful in the javadoc and found getHealth(). I used it on the player but it was showing only 1 when alive and 0 on death and not a value for the health(10, 100, 1000) and it means that i probably took the wrong method. This is why I'm asking: what am i doing wrong in my way of doing things or is there a simpler way to work for a mod ? And since I'm opening a topic, if it is not a problem to ask, how can i get the health of the player? Thank you
×
×
  • Create New...