Jump to content

issa

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by issa

  1. issa

    Loot Probability

    Interesting result. Forcing probability on items causes no items to drop at all. So I applied the force probability attribute to the containers while keeping guaranteed containers at count=1 with no probability. The result is working as intended. However, the probability percentage is still a little unbalanced so I'll work on customized probability templates. For anyone stumbling across this post looking to achieve that, I attached my code example below. <append xpath="/lootcontainers/lootprobtemplates"> <lootprobtemplate name="YourTemplateName"> <loot level="1,999999" prob="Your Probability Here. Example: .02 (2%)"/> </lootprobtemplate> </append>
  2. issa

    Loot Probability

    The weird part in my following is, if I set the count="all" in my loot group, it always drops something from each container. Is it likely because I do not have force_prob?
  3. issa

    Loot Probability

    Update: According to the code, we have two scenarios. If we add the count="all" to the loot group, it will drop a bit of each container regardless of probability. If we remove it, it will randomly drop one of the containers regardless of the guaranteed probability. This is weird and also interesting. <lootgroup name="ZEDNursePackUtility"> <item group="ZEDNursePackContainer" count="1" loot_prob_template="guaranteed"/> <item group="ZEDRegularPackContainer" count="1" loot_prob_template="high"/> <item group="ZEDConstructorPackContainer" count="1" loot_prob_template="veryLow"/> <item group="ZEDPolicePackContainer" count="1" loot_prob_template="veryLow"/> <item group="ZEDSoldierPackContainer" count="1" loot_prob_template="veryLow"/> <item group="ZEDBurntPackContainer" count="1" loot_prob_template="med"/> </lootgroup>
  4. issa

    Loot Probability

    So yes, I think for immersion reasons, there is a chance you might encounter a zombie who is carrying medical supplies. I want the ZEDRegularPack to always drop on zombies that are not nurses/doctors while still pertaining a small chance to drop it anyway. To clarify, I have loot groups for nurses, burnt, cop, soldiers, utility workers, and hazmat zombies. So basically, soldiers always drop the ZEDSoldierPack while also having better chances of dropping the ZEDNursePack and ZEDRegularPack. <lootgroup name="ZEDRegularPackUtility" count="all"> <item group="ZEDRegularPackContainer" count="1" loot_prob_template="guaranteed"/> <item group="ZEDNursePackContainer" count="1" loot_prob_template="low"/> <item group="ZEDConstructorPackContainer" count="1" loot_prob_template="veryLow"/> <item group="ZEDPolicePackContainer" count="1" loot_prob_template="veryLow"/> <item group="ZEDSoldierPackContainer" count="1" loot_prob_template="veryLow"/> <item group="ZEDBurntPackContainer" count="1" loot_prob_template="med"/> </lootgroup>
  5. issa

    Loot Probability

    Hello, I appreciate the responses and clarification. Is it possible to include my own probabilities for loot_prob_template? My original way of using them for probabilities wasn't working out well <config> <append xpath="lootcontainers/lootprobtemplate"> <lootprobtemplate name="CustomNameHere"> <loot level="1,999999" prob=".02"/> </lootprobtemplate> <lootprobtemplate name="CustomNameHere02"> <loot level="1,999999" prob=".05"/> </lootprobtemplate> <lootprobtemplate name="CustomNameHere03"> <loot level="1,999999" prob="1"/> </lootprobtemplate> </append> <lootgroup name="ZEDRegularPackUtility" count="all"> <item group="ZEDRegularPackContainer" count="1" loot_prob_template="CustomNameHere"/> <item group="ZEDNursePackContainer" count="1" loot_prob_template="CustomNameHere03"/> </lootgroup> </config>
  6. issa

    Loot Probability

    Hello everyone, I'm currently working on a mod that enables a player to loot zombies. To add for immersion, I added the ability to define loot by a specific zombie such as a nurse, cop, soldier, utlility worker, etc... Now I have the following loot group: <lootgroup name="ZEDRegularPackContainer" count="1,6"> <item name="oldCash" count="1,10" prob="1"/> <item name="casinoCoin" count="1,10" prob="0.85"/> <item name="resourceLockPick" count="1,3" prob="0.63"/> </lootgroup> Basically, a few items a zombie can drop with a specified probability. <lootgroup name="ZEDNursePackContainer" count="1,3"> <item name="drugAntibiotics" count="1" prob="0.50"/> <item name="drugPainkillers" count="1" prob="0.40"/> <item name="drugRockBusters" count="1" prob="0.40"/> <item name="drugSteroids" count="1" prob="0.45"/> <item name="drugVitamins" count="1" prob="0.55"/> <item name="medicalBandage" count="1" prob="0.85"/> <item name="medicalBloodBag" count="1" prob="0.45"/> <item name="medicalFirstAidBandage" count="1" prob="0.65"/> <item name="medicalFirstAidKit" count="1" prob="0.45"/> <item name="medicalPlasterCast" count="1" prob="0.50"/> <item name="medicalSplint" count="1" prob="0.35"/> </lootgroup> Here is a loot group specifically for nurse zombies. I have added both containers into one also with a specified probability. To explain, regular zombies should have a very minimal chance to also drop medical supplies but it's a small percentage. For some reason, that's ignored entirely since I tested killing a nurse and it didn't drop medical supplies even though the probability was set to "1". <lootgroup name="ZEDRegularPackUtility"> <item group="ZEDRegularPackContainer" count="1" prob="1"/> <item group="ZEDNursePackContainer" count="1" prob="0.15"/> </lootgroup> Any help would be appreciated!
  7. Apologies, I'm still in the learning phase of modding 7 Days to Die. I looked at the thread you sent and according to what I'm reading, this should be the correct way I hope? <configs> <set xpath="/entity_classes/entity_class[@name='zombieTemplateMale']/property[@name='SightRange']/@value">5</set> <set xpath="/entity_classes/entity_class[@name='zombieTemplateMale']/property[@name='SightLightThreshold']/@value">-500</set> </configs>
  8. Does the modlet need specific syntax? I remember changing the value of the trap HP required me to do a different syntax than the one in the xml file. Would it technically work if I created a modlet named after the xml like entityclasses.xml and then did something like this in it: <property name="MaxViewAngle" value="180"/> <property name="SightRange" value="5"/> <!-- distance in m --> Thank you!
  9. I have Feral Sense turned off and I do not wear any armor since the game is pretty early (Day 1-3). I also don't have a helmet light on. As for points into Hide in the Shadows, I do put one point in as soon as possible but it's still very bad. I can consider boosting the perk in the xml. For this, is it possible to modify these values as a mod so they would affect other players? I know that copy pasting them in this format wouldn't work? Thanks in advance guys!
  10. Hello everyone, I'm writing this post in hope someone is able to assist me with my current problem regarding Stealth System. As of right now, Zombies are able to hear every single movement as well as seeing you crystal clear during the day past 30 blocks which is quite annoying. I love RP when it comes to open world zombie games like this. I do hide in houses and pretend it's a real time situation and hide from a horde until they move past. However, they hear every. single. thing! It's not fun. Sneaking around for a second triggers the entire horde. Is it possible to modify the Stealth system through XML so the Zombies only hear me when I do very loud noises or they see me as close as a few meters / blocks away? Thank you! :D
  11. I actually found an option within the Multiplayer tab that allows me to upper the size to an additional 15 blocks. However, it's not allowing me to go further than 30.
  12. Dear community, I am currently having a frustrating issue in which I'm unable to modify the Game Preference for my save. I have a somewhat big base and zombies tend to come by and smash my walls in which can get annoying. I've tried so far: Use the in-game command sg BedrollDeadZoneSize XX Create another serverconfig.XML, modify the value inside, and then launch the game with the parameter targeted to my xml file. Go inside the Computer\HKEY_CURRENT_USER\SOFTWARE\The Fun Pimps\7 Days To Die and modify the value inside as well. Every single attempt fails and whenever I launch a game (not a server, simply a NEW GAME) the value changes back to 15. I have no idea on how to fully change the value so zombies won't spawn near my base at all. Regards, issa
×
×
  • Create New...