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

Is there a way to change the mystery box price?

broken avatar :(
Created 9 years ago
by BootySlayer
0 Members and 1 Guest are viewing this topic.
2,740 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 1 February 2016
Last active: 9 years ago
Posts
13
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
BootySlayer's Groups
BootySlayer's Contact & Social Links
I'm making a stupid-hard map where the mystery box is 10,000 and the only wall weapon is the kar98  :D

Is there a way to change the price? Thank you!!!
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 10 December 2013
Last active: 3 years ago
Posts
159
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Linoxet's Groups
Linoxet's Contact & Social LinksTutizillalinoxetbanguela
Go to raw/maps and copy _zombiemode_weapons.gsc to you mods/YourModName/maps

Open it with text editor and find this:

Code Snippet
Plaintext
treasure_chest_think()
{
cost = 950;

Change the cost to whatever you want, then find this:

Code Snippet
Plaintext
player maps\_zombiemode_score::add_to_player_score( 950 );
And change "950" to whatever you want

That should work, sorry for any english error  ;D

EDIT: Don't forget to mark "_zombiemode_weapons.gsc" in your Launcher when you compile your mod.
Last Edit: February 03, 2016, 01:26:31 pm by Linoxet
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 1 February 2016
Last active: 9 years ago
Posts
13
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
BootySlayer's Groups
BootySlayer's Contact & Social Links
Go to raw/maps and copy _zombiemode_weapons.gsc to you mods/YourModName/maps

Open it with text editor and find this:

Code Snippet
Plaintext
treasure_chest_think()
{
cost = 950;

Change the cost to whatever you want, then find this:

Code Snippet
Plaintext
player maps\_zombiemode_score::add_to_player_score( 950 );
And change "950" to whatever you want

That should work, sorry for any english error  ;D

EDIT: Don't forget to mark "_zombiemode_weapons.gsc" in your Launcher when you compile your mod.

So i did this, but the box still costs 950... i set it to 10000.. do i need commas?
broken avatar :(
×
broken avatar :(
Location: esMadrid
Date Registered: 27 March 2015
Last active: 5 years ago
Posts
371
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
JIGGLYPUFF used SING! YOU fell asleep!
Signature
×
Soy-Yo's Groups
Soy-Yo's Contact & Social LinksSoy-yoElCerdoRey
You need to change the "zombie_cost" KVP in Radaint for all the boxes' trigger you have to 10000.

You don't need to edit this actually:
Code Snippet
Plaintext
treasure_chest_think()
{
cost = 950;

And you also have to edit this line:
Code Snippet
Plaintext
self set_hint_string( self, "default_treasure_chest_" + cost );
With:
Code Snippet
Plaintext
self setHintString( "Press & hold &&1 to use box [Cost: " + cost + "]" );
Probably you'll need to change the text for the hint string, because I can't remember now what it says originally.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 1 February 2016
Last active: 9 years ago
Posts
13
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
BootySlayer's Groups
BootySlayer's Contact & Social Links
You need to change the "zombie_cost" KVP in Radaint for all the boxes' trigger you have to 10000.

You don't need to edit this actually:
Code Snippet
Plaintext
treasure_chest_think()
{
cost = 950;

And you also have to edit this line:
Code Snippet
Plaintext
self set_hint_string( self, "default_treasure_chest_" + cost );
With:
Code Snippet
Plaintext
self setHintString( "Press & hold &&1 to use box [Cost: " + cost + "]" );
Probably you'll need to change the text for the hint string, because I can't remember now what it says originally.

So I change the trigger on the mystery box? It's a prefab.. Should I just click it and press n? Sorry I'm new at this :)
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 10 December 2013
Last active: 3 years ago
Posts
159
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Linoxet's Groups
Linoxet's Contact & Social LinksTutizillalinoxetbanguela
So I change the trigger on the mystery box? It's a prefab.. Should I just click it and press n? Sorry I'm new at this :)

Open the prefab clicking here
broken avatar :(
  • Exofile
  • Deleted Member
×
broken avatar :(
Exofile
This user is deleted :(
Open the prefab clicking here
(Image removed from quote.)

To explain this a bit more in-depth, a prefab is essentially a combination of several parts. This can be models, triggers, brushes, etc. They're "stamped" together, so you can move the prefab around, but not each part of it separately. To do this, you need to Un-stamp it, which splits the frefab up. The parts will stay in position, but will now allow you to move and edit each part of it separately. ;)

 
Loading ...