
Posts
575
Respect
191Add +1
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
level thread turn_jugger_on();
level thread turn_doubletap_on();
level thread turn_sleight_on();
level thread turn_revive_on();
level thread turn_PackAPunch_on();
*ADD YOUR OWN CUSTOM METHOD HERE*
level thread turn_jugger_on();
level thread turn_doubletap_on();
level thread turn_sleight_on();
level thread turn_revive_on();
level thread turn_PackAPunch_on();
level thread turn_CUSTOM_PERK_NAME_HERE_on();
turn_doubletap_on()
{
machine = getentarray("vending_doubletap", "targetname");
level waittill("doubletap_on");
for( i = 0; i < machine.size; i++ )
{
machine[i] setmodel("zombie_vending_doubletap_on");
machine[i] vibrate((0,-100,0), 0.3, 0.4, 3);
machine[i] playsound("perks_power_on");
machine[i] thread perk_fx( "doubletap_light" );
}
level notify( "specialty_rof_power_on" );
}
turn_CUSTOM_PERK_NAME_HERE_on()
{
machine = getentarray("vending_CUSTOM_PERK_NAME", "targetname");
flag_wait("electricity_on");
for( i = 0; i < machine.size; i++ )
{
machine[i] vibrate((0,-100,0), 0.3, 0.4, 3);
machine[i] playsound("perks_power_on");
}
level notify( "specialty_YOUR_CHOSEN_SPECIALTY_HERE_power_on" );
}
level notify( "specialty_gas_mask_power_on" );
turn_ragingdevil_on()
{
machine = getentarray("vending_ragingdevil", "targetname");
flag_wait("electricity_on");
for( i = 0; i < machine.size; i++ )
{
machine[i] vibrate((0,-100,0), 0.3, 0.4, 3);
machine[i] playsound("perks_power_on");
}
level notify( "specialty_fireproof_power_on" );
}
switch( perk )
{
case "specialty_armorvest":
cost = 2500;
break;
case "specialty_quickrevive":
players = get_players();
if(players.size == 1)
{
cost = 500;
self.reviveUsesLeft--;
}
else cost = 1500;
break;
case "specialty_fastreload":
cost = 3000;
break;
case "specialty_rof":
cost = 2000;
break;
// Example, add your own custom perk price here!
// Your key should be in here between the ""
case "specialty_fireproof":
cost = 3000;
break;
}
vending_set_hintstring( perk )
{
switch( perk )
{
case "specialty_armorvest":
self SetHintString( "Press & hold &&1 to buy Jugger-Nog [Cost: 2500]" );
break;
case "specialty_quickrevive":
flag_wait( "all_players_connected" );
players = get_players();
if(players.size == 1)
{
self SetHintString( "Press & hold &&1 to buy Revive [Cost: 500]" );
self.reviveUsesLeft = 3;
}
else self SetHintString( "Press & hold &&1 to buy Revive [Cost: 1500]" );
break;
case "specialty_fastreload":
self SetHintString( "Press & hold &&1 to buy Speed Cola [Cost: 3000]" );
break;
case "specialty_rof":
self SetHintString( "Press & hold &&1 to buy Double Tap Root Beer [Cost: 2000]" );
break;
case "specialty_fireproof": // Custom Key here between the ""
self SetHintString( "Press & hold &&1 to buy Raging Devil's Rum [Cost: 3000] ^1(Zombies can go raging!)" );
break;
default:
self SetHintString( perk + " Cost: " + level.zombie_vars["zombie_perk_cost"] );
break;
}
}
case "specialty_fireproof":
weapon = "zombie_perk_bottle_jugg"; // This is the bottle you will get if you drink the custom perk!
break;
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
hi again! i followed along this tutorial, and it's very insightful! but i can't seem to figure out the correct KVP's for this too work xD
I tried using the key as a targetname, I tried just the specialty name itself,("specialty_longersprint") and I also tried using the name of my perk as well.
I have already the KVP script_noteworthy then the specialty as the value, but I still just get the hand symbol and no prompt to purchase it. I also don't have any extra perks downloaded, the ones i made and the original 4 being the only ones. If you know the correct KVP's i should be using please let me know, thanks in advanced!
case "specialty_rof":
cost = 2000;
break;
case "specialty_bulletaccuracy":
cost = 2500;
break;
case "specialty_longersprint":
cost = 2000;
break;
case "specialty_fireproof":
cost = 1500;
break;
case "specialty_detectexplosive":
cost = 2500;
break;
}
case "specialty_rof":
self SetHintString( &"ZOMBIE_PERK_DOUBLETAP" );
break;
case "specialty_bulletaccuracy":
self SetHintString( "Press & Hold &&1 to buy Watcher Cola [Cost: 2500]" );
break;
case "specialty_longersprint":
self SetHintString( "Press & Hold &&1 to buy Benadryl [Cost: 2000]" );
break;
case "specialty_fireproof":
self SetHintString( "Press & Hold &&1 to buy Holywater [Cost: 1500]" );
break;
case "specialty_detectexplosive":
self SetHintString( "Press & Hold &&1 to buy Genocide Zero [Cost: 2500]" );
break;
default:
self SetHintString( perk + " Cost: " + level.zombie_vars["zombie_perk_cost"] );
break;
}
}
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
+1 This is confirmed the correct KVP's and fixed the hand issue!
Problem now though is I have it all set up match perfect too how you have in your tutorial, ive also followed along ZombieKillers Tutorial, (To make sure I didn't miss something small or stupid) But nothing. I have the what i believe is the correct Text price setup as shown in the tutorial as well?&case "specialty_rof":
cost = 2000;
break;
case "specialty_bulletaccuracy":
cost = 2500;
break;
case "specialty_longersprint":
cost = 2000;
break;
case "specialty_fireproof":
cost = 1500;
break;
case "specialty_detectexplosive":
cost = 2500;
break;
}case "specialty_rof":
self SetHintString( &"ZOMBIE_PERK_DOUBLETAP" );
break;
case "specialty_bulletaccuracy":
self SetHintString( "Press & Hold &&1 to buy Watcher Cola [Cost: 2500]" );
break;
case "specialty_longersprint":
self SetHintString( "Press & Hold &&1 to buy Benadryl [Cost: 2000]" );
break;
case "specialty_fireproof":
self SetHintString( "Press & Hold &&1 to buy Holywater [Cost: 1500]" );
break;
case "specialty_detectexplosive":
self SetHintString( "Press & Hold &&1 to buy Genocide Zero [Cost: 2500]" );
break;
default:
self SetHintString( perk + " Cost: " + level.zombie_vars["zombie_perk_cost"] );
break;
}
}
I also have them on the correct thread at the top of zombiemode_perks along with where we setup the targetname and key I assume.
Now the problem is I get in game "Power needs to be on", Like anyother.(Which is clear sign of it working at least) but when I use the switch for power, They still say the same thing. And Also if I gather enough points too purchase one of the perks, It just prompts me with the same vocal line, telling me i don't have enough points. I also tried under the assumption that i would have too add "zombie_vending_"MY PERK NAME", after it, Just under currosity, i even tried using the specialty as well. but then it went back too just being a Hand symbol again. Not sure what I could have missed, maybe something not in the tutorial, or maybe just simple knowledge that most beginner scripters would know, that i do not. Unsure at this point, Sorry to bother you with this all, im sure it is something on my side I missed or somewhere I didn't include the perks or something. Thanks for all your help again gympie, you have an insane amount of talent man!:)
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Yeah, its just funny how he messed up like twice and still managed to get it too work lol. I also don't quite understand how he got this variable "zombie_vending_black_ops" since he doesn't really show any where that would have been written down as a vari.. But anyways, I tried getting rid of some custom prices, but no luck, so i'll either figure it out myself somehow or ill just scrap that and keep the original 4 onlyThanks again gympie sorry for being so annoying here!