So this is just a simple little script I put together that allows players to buy an extra perk slot. This is very simple and easy to do, so nobody should have any problems with it
NOTE: Due to some issues people have been having, I highly reccomend installing Bam's perks the manual way (i.e. adding the scripts yourself and not using script placer z for them). Now, I only say this because I believe there may be a problem in the script if you do not install them the manual way or do not have them installed. I will re-write the script with the necessary changes and checks when I have the time and will update this topic. Thank you.
Step 1: Open your map in radiant and place a script model of a perk bottle (or you can use a different model if you'd like), and give it this KVP: Now place a trigger around the perk bottle (or whatever model you used), and give it the KVP: Save and close your map.
Step 2: Go into WaWroot/mods/yourmapname/maps and open up YourMapName.gsc
Step 3: Find this: And directly under that line, paste this: Now, paste this at the very bottom of the file: **PLEASE NOTE**
If you have Bam's BO perks in your map, make sure to go into _zombiemode.gsc and delete the level.perk_limit line in there. If you dont, it will cause bugs in the script.
I hope some people find this tutorial helpful, and please let me know if you encounter any problems.
Thanks to PROxFTW and Arceus for letting me know of syntax errors
Last Edit: May 14, 2015, 09:28:01 pm by AlecKeaneDUB
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
Nice job man, I may use this How would I have "Perk Limit: #" in the top left corner of the screen, like zombie counter style. Would it be a simple modification?
Nice job man, I may use this How would I have "Perk Limit: #" in the top left corner of the screen, like zombie counter style. Would it be a simple modification?
Thanks! And here's a hud elem I put together: Just put that after the buyable_perk_slot() function.
Then inside the buyable_perk_slot() function, add this: Directly under this: And you should be good to go You'll have to mess with the hud elem positions though, I'm not sure what the xy values are for the top left of the screen. I'll see if I can figure them out and if I do I'll post another reply
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
Thanks man! I'll test all this tomorrow When I get a chance
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
Edit: Make sure somewhere on onPlayerSpawned you add self.perk_limit = (some_amount);
i would also add this under where it defines "perk_limit"
and also change "play_no_money_perk_dialog()" to "maps\_zombiemode_perks::play_no_money_perk_dialog()". Because that function is only in _zombiemode_perks.gsc
Can anyone help me? I have the "more efficient" part of the script along with the other scripts above it that are not included in the more efficient part. I have Bam's perks installed and I took out the level.perk_limit in my _zombiemode.gsc. When I load the map with it like I described, the perk HUD is there (It says perk limit = (no number), and it lets me buy all 8 perks without buying more slots, even though I can still buy the perk bottle. If I leave Bam's level.perk_limit in the _zombiemode.gsc It says perk limit = 4 on the HUD and the game limits me to 4 perks and I can buy slots but not more actual perks. Any help would be great!
Thank you, works well only it still allows me to buy more perks but I fixed it EDIT: For some reason it still lets me buy after I thought I fixed it, I am using Bams perks and got them through Scriptplacer Z. I have searched for the level.perk_limit but haven't found it.
Last Edit: May 12, 2015, 12:08:56 pm by Andy Whelan
These errors you guys are getting are odd to me. It may he because I added in Bam's perks manually, as I dont use script placer Z. That could be the problem...something with the script placer, because the script and everything I posted works 110% perfect for me ???