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

FEARxReaper's Bonfire Sale Script Help

broken avatar :(
Created 7 years ago
by BrandynNew
0 Members and 1 Guest are viewing this topic.
4,353 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 9 December 2015
Last active: 2 years ago
Posts
68
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
BrandynNew's Groups
BrandynNew's Contact & Social Links
Hello, I recently came across FEARxReaper's Bonfire Sale script (http://www.zombiemodding.com/index.php?topic=18785.msg165524#msg165524) and was wanting to use it, but wanted to know if there was a way to set it to where it will only spawn past round 12 or something, you know, so people don't have PaP'ed Colts on round 3 that they got for 1000 points. Any help would be appreciated, his post didn't have a reply button at the bottom (sometimes it does, sometimes it doesn't, I haven't figured out when it is avaliable.)
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 3 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
respect the dead

donates greatly appreciated :) paypal.me/F3ARxReaper666
discord server:
https://discord.gg/tsGHW99
×
death_reaper0's Groups
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.
1. youve posted this in the wrong section, nothing you can do about it, need a mod to move it
2. if a topic is locked you cant reply to it, which happened to my script
3. this should do it, but its untested
in _zombiemode powerups find
Code Snippet
Plaintext
	while( powerup == "carpenter" && get_num_window_destroyed() < 5)
{
if( level.zombie_powerup_index >= level.zombie_powerup_array.size )
{
level.zombie_powerup_index = 0;
randomize_powerups();
}
powerup = level.zombie_powerup_array[level.zombie_powerup_index];
level.zombie_powerup_index++;

if( powerup != "carpenter" )
return powerup;

wait(0.05);
}
and place this under it
Code Snippet
Plaintext
 
while( powerup == "bonfire" && level.round_number < 12)
{
if( level.zombie_powerup_index >= level.zombie_powerup_array.size )
{
level.zombie_powerup_index = 0;
randomize_powerups();
}
powerup = level.zombie_powerup_array[level.zombie_powerup_index];
level.zombie_powerup_index++;

if( powerup != "bonfire" )
return powerup;
wait(0.05);
}
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 9 December 2015
Last active: 2 years ago
Posts
68
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
BrandynNew's Groups
BrandynNew's Contact & Social Links
Looks great, thank you for the help and for the script.
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
Why have a wait in there?

You "want" that to instantly repeat until finding a valid power up if the returned one is invalid
broken avatar :(
×
broken avatar :(
Senpai
Location: us
Date Registered: 28 September 2013
Last active: 3 years ago
Posts
605
Respect
Forum Rank
Zombie Enslaver
Primary Group
Box Mappers Elite
My Groups
More
My Contact & Social Links
More
×
arceus's Groups
Box Mappers Elite
Box Mappers Elite
arceus's Contact & Social LinksarceusNT
Why have a wait in there?

You "want" that to instantly repeat until finding a valid power up if the returned one is invalid
to avoid a little thing called a infinite loop.
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
It'll never "be" a infinite loop - and in either case it would cause issues

This is computational - it shouldn't have any delay, and it would need to cycle that loop failing each time a significant number of times in s row for that to happen anyway - even with the wait that would still mean this function would get stuck or even in success it would potentially be delayed significantly

If it did and infinite looped then there would need to be a serious mistake in the logic here
Last Edit: October 26, 2016, 02:44:09 pm by Harry Bo21
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 3 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
death_reaper0's Groups
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.
It'll never "be" a infinite loop - and in either case it would cause issues

This is computational - it shouldn't have any delay, and it would need to cycle that loop failing each time a significant number of times in s row for that to happen anyway - even with the wait that would still mean this function would get stuck or even in success it would potentially be delayed significantly

If it did and infinite looped then there would need to be a serious mistake in the logic here

i just used what treyarch used to skip the carpenter powerup, i dont think the wait is too much of an issue since it will most likely settle on a powerup before you can notice
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 9 December 2015
Last active: 2 years ago
Posts
68
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
BrandynNew's Groups
BrandynNew's Contact & Social Links
(this may be the end of my highly underlived mapping career)

Well, I finally got around to adding the bonfire sale script, not even the round-base I originally had a question on, and I receive the error:

Quote
Couldn't find the bsp for this map. Please build the fast file associated with maps/haashallacademy.d3dbsp and try again.

I don't know man. I'm just trying to have an above-average map with custom content. I just did exactly as you said. I don't try to be complicated. I'm sorry.

 
Loading ...