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

how do you make things cost points?

broken avatar :(
Created 8 years ago
by mpasternak
0 Members and 1 Guest are viewing this topic.
4,313 views
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 30 January 2016
Last active: 8 years ago
Posts
12
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
mpasternak's Groups
mpasternak's Contact & Social Links
is there a kvp? zombie_cost doen't work for what im trying to do
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
Signature
Aye mate you don't know me so y don't you shut tf up ok buddy :)

×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
Do a check on their score, then if they have enough points remove the points from them, so check if their score is greater than or equal to x, if it is, take away x from their score.

I'm in school so I don't now the exact functions, check the _zombiemode_score iirc, function should be in there.
broken avatar :(
×
broken avatar :(
Location: no
Date Registered: 1 January 2014
Last active: 2 years ago
Posts
135
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Signature
Map: No Way Out
Weapon Porter
Custom Music
Mapper
https://i.gyazo.com/4dea470ff0a559d7c79a0a350788da30.png
×
Marsvinking's Groups
Marsvinking's Contact & Social Linksmarsvinkingmarsvinkingmarsvinking
i can give you some premade zombie_costs that i've added myself.
First go into _zombiemode.gsc
go to line 414
If you don't find it search this  // Debris

Now copy what i sent
Code Snippet
Plaintext
add_zombie_hint( "default_buy_debris_3000", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_3000" );

you can add as many as you want of these but remember this one is a buy debris section the other one right under has to be
Code Snippet
Plaintext
add_zombie_hint( "default_buy_door_3000", &"ZOMBIE_BUTTON_BUY_OPEN_DOOR_3000" );

Add zombie_cost                      It should not say unknown now because you've added more to the script.
      3000
     
Hope this did exact what you wanted

BTW this is the standards

   add_zombie_hint( "default_buy_debris_100", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_100" );
   add_zombie_hint( "default_buy_debris_200", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_200" );
   add_zombie_hint( "default_buy_debris_250", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_250" );
   add_zombie_hint( "default_buy_debris_500", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_500" );
   add_zombie_hint( "default_buy_debris_750", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_750" );
   add_zombie_hint( "default_buy_debris_1000", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_1000" );
   add_zombie_hint( "default_buy_debris_1250", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_1250" );
   add_zombie_hint( "default_buy_debris_1500", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_1500" );
   add_zombie_hint( "default_buy_debris_1750", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_1750" );
   add_zombie_hint( "default_buy_debris_2000", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_2000" );
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
i can give you some premade zombie_costs that i've added myself.
First go into _zombiemode.gsc
go to line 414
If you don't find it search this  // Debris

Now copy what i sent
Code Snippet
Plaintext
add_zombie_hint( "default_buy_debris_3000", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_3000" );

you can add as many as you want of these but remember this one is a buy debris section the other one right under has to be
Code Snippet
Plaintext
add_zombie_hint( "default_buy_door_3000", &"ZOMBIE_BUTTON_BUY_OPEN_DOOR_3000" );

Add zombie_cost                      It should not say unknown now because you've added more to the script.
      3000
     
Hope this did exact what you wanted

BTW this is the standards

   add_zombie_hint( "default_buy_debris_100", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_100" );
   add_zombie_hint( "default_buy_debris_200", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_200" );
   add_zombie_hint( "default_buy_debris_250", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_250" );
   add_zombie_hint( "default_buy_debris_500", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_500" );
   add_zombie_hint( "default_buy_debris_750", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_750" );
   add_zombie_hint( "default_buy_debris_1000", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_1000" );
   add_zombie_hint( "default_buy_debris_1250", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_1250" );
   add_zombie_hint( "default_buy_debris_1500", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_1500" );
   add_zombie_hint( "default_buy_debris_1750", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_1750" );
   add_zombie_hint( "default_buy_debris_2000", &"ZOMBIE_BUTTON_BUY_CLEAR_DEBRIS_2000" );

Wouldn't that work since a localized string doesn't exist so it would probably show nothing, so you'd need to remove the & and actually enter the string or enter it into the .str file?

Also I don't think he's talking about doors since he said "things".
broken avatar :(
×
broken avatar :(
Location: no
Date Registered: 1 January 2014
Last active: 2 years ago
Posts
135
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Marsvinking's Groups
Marsvinking's Contact & Social Linksmarsvinkingmarsvinkingmarsvinking
Wouldn't that work since a localized string doesn't exist so it would probably show nothing, so you'd need to remove the & and actually enter the string or enter it into the .str file?

Also I don't think he's talking about doors since he said "things".

Then he needs to make his own thingys
Custom strings,
like // Pickup or whaterver else its scripted
broken avatar :(
×
broken avatar :(
OnionmanVere Bo21
Location: ieu dnt wnt 2 no
Date Registered: 27 September 2013
Last active: 1 year ago
Posts
1,864
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Mapper
My Groups
More
Personal Quote
ok
×
Scobalula's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Scobalula's Contact & Social Links
Then he needs to make his own thingys
Custom strings,
like // Pickup or whaterver else its scripted

Now you're going off track, he asked how to make things cost money, not how to add hintstrings, etc. :P

broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Code Snippet
Plaintext
trigger = getEnt( "triggername", "targetname" );
trigger thread trigger_function();

trigger_function()
{
    cost = 1000; // Amount
    self setHintstring( "Press and hold &&1 to buy trigger [Cost:" + cost + "]" ); // Setting your hintstring
    while( 1 )
    {
        self waittill( "trigger", player ); // Wait till the trigger is used and get who uses it
        if ( player.score < cost ) // Check if they have enough points
        {
             wait .1;
             continue; // Stops here if they dont have enough
        }
        // continues here if they do
        player maps\_zombiemode_score::minus_to_player_score( cost ); // take the points
    }
}
Last Edit: February 05, 2016, 09:55:35 pm by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 30 January 2016
Last active: 8 years ago
Posts
12
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
mpasternak's Groups
mpasternak's Contact & Social Links
Code Snippet
Plaintext
trigger = getEnt( "triggername", "targetname" );
trigger thread trigger_function();

trigger_function()
{
    cost = 1000; // Amount
    self setHintstring( "Press and hold &&1 to buy trigger [Cost:" + cost + "]" ); // Setting your hintstring
    while( 1 )
    {
        self waittill( "trigger", player ); // Wait till the trigger is used and get who uses it
        if ( player.score < cost ) // Check if they have enough points
        {
             wait .1;
             continue; // Stops here if they dont have enough
        }
        // continues here if they do
        player maps\_zombiemode_score::minus_to_player_score( cost ); // take the points
    }
}

this looks really useful if i knew what to do with it lol thank you though
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 9 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
this looks really useful if i knew what to do with it lol thank you though

Would help, if you told us what you are trying to do
broken avatar :(
×
broken avatar :(
Location: no
Date Registered: 1 January 2014
Last active: 2 years ago
Posts
135
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
Marsvinking's Groups
Marsvinking's Contact & Social Linksmarsvinkingmarsvinkingmarsvinking
Can you be more precise on what you want to do?
is it like you want pickable items to cost or just any trigger of your choice ?
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Wouldn't that work since a localized string doesn't exist so it would probably show nothing, so you'd need to remove the & and actually enter the string or enter it into the .str file?

Also I don't think he's talking about doors since he said "things".

From what i can remember, it will just show:

Code Snippet
Plaintext
ZOMBIE_BUTTON_BUY_OPEN_DOOR_3000

Can you be more precise on what you want to do?
is it like you want pickable items to cost or just any trigger of your choice ?


You'd do the same basic logic for both so it doesn't really matter.

If there is already a system in place for triggers(such as blockers) it would be best to just use them instead of making a custom script.
Last Edit: February 08, 2016, 03:35:07 pm by daedra descent
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 30 January 2016
Last active: 8 years ago
Posts
12
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
mpasternak's Groups
mpasternak's Contact & Social Links
I'm sorry, I really should have specified. i manged to add guns from different games, but i can only get them from using the console commands. I'm trying to add them to the wall, but if i just do it the regular way, no text comes up and I get the gun for free.
Marked as best answer by mpasternak 8 years ago
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
need to add your guns to zombiemode_weapons.gsc and dlc3_code.gsc

if you dont have them in your mod, copy them from raw to it

look down a bit and find where treyarchs are set up and do what they did to add yours

you set the cost and the hintstring there too
Last Edit: February 09, 2016, 12:17:29 pm by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 30 January 2016
Last active: 8 years ago
Posts
12
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
mpasternak's Groups
mpasternak's Contact & Social Links
just goes to show the more information you give the easier it is for others to help you :P

 
Loading ...