• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Gambling

Blight

Refugee
[No message]
 

Attachments

  • 20171214124227_1.jpg
    20171214124227_1.jpg
    99.2 KB · Views: 135
Last edited by a moderator:
You're missing xml code in your spoilers

Otherwise care to explain the function of the mod? From what I gathered upon quickly pausing the video on your signs: "Craft a Casino Ticket, grab an upgrade tool and right-click one of the blocks (steel balls). There is a very low chance to get full Ancient Event stuff." You spend 800 Casino Coins on one Casino Ticket and the output is the single slot top-left on the steel ball.

 
was not finish, some parts need to be explained.

you need to put your own stuff in the loot.xml. container t5 proccs every ~250 tickets, for rare items.

my loot.xml, DONT use it (cause of the modded items)

<lootgroup name="gambleT1low">

<item name="oldCash" count="10" prob="0.5"/>

<item name="Chocolate" count="1" prob="0.1"/>

<item name="casinoCoin" count="50"/>

<item name="Cane Sugar" count="1" prob="0.2"/>

<item name="Milk Powder" count="1" prob="0.1"/>

</lootgroup>

<lootgroup name="gambleT1high">

<item name="oldCash" count="25" prob="0.5"/>

<item name="casinoCoin" count="100"/>

<item name="redTea" count="1"/> prob="0.1"/>

<item name="steelPolish" count="5"/> prob="0.01"/>

<item name="Cocoa Powder" count="1" prob="0.1"/>

</lootgroup>

<lootgroup name="gambleT1Ticket">

<item name="Casino-Ticket" count="1"/> prob="1"/>

<item name="Casino-Ticket" count="2"/> prob="1"/>

</lootgroup>

<lootgroup name="gambleT2">

<item name="Cocoa Beans" count="1" prob="0.1"/>

<item name="Advanced Splint" count="1"/> prob="0.01"/>

<item name="Diamond" count="5"/> prob="0.3"/>

<item name="TommysKit" count="1"/> prob="0.15"/>

<item name="Titan" count="10"/> prob="0.3"/>

<item name="Starter Drink" count="1"/> prob="0.1"/>

<item name="firstAidKit" count="1"/> prob="0.3"/>

<item name="Gold Powder" count="1"/> prob="0.01"/>

<item name="Forged Gold" count="1"/> prob="0.01"/>

<item name="goldNugget" count="1"/> prob="0.1"/>

<item name="Gold Ingot" count="1"/> prob="0.01"/>

<item name="Shocking 762mmBullet" count="2"/> prob="0.3"/>

<item name="Exploding 762mmBullet" count="1"/> prob="0.20"/>

<item name="Burning 762mmBullet" count="2"/> prob="0.4"/>

</lootgroup>

<lootgroup name="gambleT3">

<item name="TommysKit" count="1"/> prob="0.15"/>

</lootgroup>

<lootgroup name="gambleT4">

<item name="Titan Shovel" quality="50,600"/> prob="0.1"/>

<item name="Titan Pickaxe" quality="50,600"/> prob="0.1"/>

<item name="Titan Fireaxe" quality="50,600"/> prob="0.1"/>

</lootgroup>

<lootgroup name="gambleT5">

<item name="minerParts" prob="0.6"/>

<item name="Ancient Auger Parts" quality="50,450"/> prob="0.1"/>

<item name="Ancient Auger Blade" quality="50,450"/> prob="0.1"/>

<item name="Blade [Event]" quality="50,450"/> prob="0.1"/>

<item name="Ancient Sniper Barrel" quality="50,450"/> prob="0.1"/>

<item name="Ancient Fireaxe" quality="50,600"/> prob="0.1"/>

<item name="Ancient Pickaxe" quality="50,600"/> prob="0.1"/>

<item name="Ancient Shovel" quality="50,600"/> prob="0.1"/>

</lootgroup>

<lootcontainer id="104" count="1" size="1,1" destroy_on_close="true" sound_open="UseActions/open_apache_artifact_chest" sound_close="UseActions/close_apache_artifact_chest" loot_quality_template="baseTemplate">

<item group="gambleT1low" prob="1"/>

<item group="gambleT1high" prob="0.4"/>

<item group="gambleT1Ticket" prob="0.1"/>

<item group="gambleT2" prob="0.1"/>

<item group="gambleT3" prob="0.01"/>

<item group="gambleT4" prob="0.008"/>

<item group="gambleT5" prob="0.002"/>

</lootcontainer>
 
Last edited by a moderator:
Nice to see the 17.2 modlet version. I have a question; where do you find these gambling machines?
thats more for an admin, you need to place it manually (im using it at a lobby).

 
Added 3 versions.

loot only, craft or both

Feedback about the balance between craft and loot is welcome (V.1).

 
Last edited by a moderator:
thats more for an admin, you need to place it manually (im using it at a lobby).
I might have weird taste, but I wanted this to enhance my singleplayer game, but putting those balls into the world without actually having to craft them feels like cheating. Do you think you could add recipes?

 
How do I remove one when I put it down?
By default, you can't do that, however you could change blocks.xml to turn the gamble items into pickable ones.

To do this, open blocks.xml and look for this line:

Code:
<property name="CanPickup" value="false"/>
and change it to:

Code:
<property name="CanPickup" value="true"/>
There are 3 lines, one for each gamble ball - gambleBronze, gambleGold, gambleDiamond, so you will have to change it for each ball individually. Next time you start the game, you will be able to pick them up and place them anywhere else you want. If you play multiplayer, once you place them where you really want them to be, I suggest you to change these lines back to false to prevent other players from picking them up.

 
Last edited by a moderator:
Back
Top