UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

[Tutorial] Custom Prices for Debris

broken avatar :(
Created 10 years ago
by Dust
0 Members and 1 Guest are viewing this topic.
3,060 views
broken avatar :(
×
broken avatar :(
The King of Zombies
Location: usLouisiana
Date Registered: 24 June 2013
Last active: 4 years ago
Posts
2,148
Respect
Forum Rank
King of the Zombies
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
Donate to me if you enjoy my work. https://www.paypal.me/thezombiekilla6
×
Dust's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Dust's Contact & Social LinksMrZ0mbiesFanaticdust103194MrZ0mbiesFanatic
Here is another tutorial from me. A lot of people again have been asking me how to make custom prices for debris, and i see people a lot on here asking that as well( i actually wrote a reply to someone a month ago on how to do it) and i thought it would be easier just to make a tutorial for it.

1.Open up Zombiemode, if its not in mods/maps then copy it from raw/maps into your mapname/maps folder
2.Search for 2000 you should get this line
Code Snippet
Plaintext
add_zombie_hint( "default_buy_debris_2000", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_2000" );
3. Copy that line and paste it directly under that, change both the 2000 to what you want it to cost(for this tutorial lets go with 5000) so you should get
Code Snippet
Plaintext
add_zombie_hint( "default_buy_debris_5000", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_5000" );
4. Do that for the Debris, Doors, and Areas
5. To make it say Press F to open door or whatever you want it to say, open up zombie.str which is found in raw/english/localizedstrings. Leave the file in there you dont need to move it
6.Look for
Code Snippet
Plaintext
REFERENCE           BUTTON_BUY_CLEAR_DEBRIS_2000
7. Copy that and the lang_english under it and paste it right under it, now change the debris_2000 to the same price as you did in zombiemode so it should be
Code Snippet
Plaintext
REFERENCE           BUTTON_BUY_CLEAR_DEBRIS_5000
8. Now for lang_english change that to whatever you want it to say to the players
For example it could say "Press F to Open secret lab" or you could go old school and make it says "Press F to Open Door" its your choice, just make sure the [Cost: 2000] matches up with your custom cost
9. Do that for Debris,Doors, and Areas.
10.Do a full recompile(compile map and build mod) now your price should be there.
11.Also forgot to mention(this one is a given) but in radiant make sure on the trigger for the door it says zombie_cost then whatever your custom cost is.

Hope this helps you! If you have any problems be sure to write it as a comment

 
Loading ...