Script to reward all perks after finding all hidden items

broken avatar :(
Created 501 days ago
by BIGCountrysTV
0 Members and 1 Guest are viewing this topic.
488 views
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 23 August 2013
Last active: 442 days ago
Posts
10
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
BIGCountrysTV's Groups
BIGCountrysTV's Contact & Social LinksBIGCountrysTV
Hello! I have been looking all over to figure out how to give all players all perks after they complete the task of finding the items I want them to find. I have 13 perks in the map but only 6 can be bought. I want the rest to be rewarded for completeing the EE. Anyone can help point me in the right direction?

Thanks
-BC

P.S

If it wasnt obvious, this is for my custom zombies map for BO3
broken avatar :(
×
broken avatar :(
Location: englandlondon
Date Registered: 16 November 2020
Last active: 4 hours ago
Posts
35
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Phil168912's Groups
Phil168912's Contact & Social Links
you could have 

all_items_acquired = 0;

and then when a item is picked up do-
all_items_acquired = all_items_acquired + 1;

2nd item-
all_items_acquired  = all_items_acquired  + 1;

3rd item-
all_items_acquired  = all_items_acquired  + 1;

then you could do-

if(all_items_acquired == 3)
{
    //place the non_buyable perk trigs here
    //when true, triggers should auto trigger therefor giving the player each of the perks without going up to the perk machines

    revive_trig = getent("w.e the revive trig is called(can be found in _zombiemode_perks. probs zm_perks in bo3)", "targetname")
    revive trig waittill ("trigger", player);

    //then same for other trigs
}


something like that. should be fairly easy

add a wait 2; or something between each trig. otherwise itll try and give all perks at same time and probs crash
Last Edit: January 31, 2021, 10:44:58 pm by Phil168912

 

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
Loading ...