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

help with zones!

HOT
broken avatar :(
Created 10 years ago
by aster-99
0 Members and 1 Guest are viewing this topic.
6,729 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents'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.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
mmh... if i use your script what do i put in the doors trigger (script_flag)??

Step 3 explains the triggers. I'm not sure how to say this differently, but I will try.

Basically, when you select a trigger in game you are waving a flag to the game that says, hey, look at me. It looks at the flag and says, okay, I checked my dlc3_zone and it says these zones are adjacent so I am adding them to the list!

Not really, but you get the point? The flag for the trigger matches the <flag> in your script that connects your zones. So if zone A connects to zone B and you have a
Code Snippet
Plaintext
add_adjacent_zone("zone_A", "zone_B", "A_connects_B");
Then the KVP script_flag on the trigger that is on a door between those two zones would get A_connects_B, hence announcing there adjacentivityness. (That's not a word.)
broken avatar :(
×
broken avatar :(
Location: itPordenone
Date Registered: 19 January 2014
Last active: 4 years ago
Posts
64
Respect
Forum Rank
Rotting Walker
Primary Group
Member
Signature
is the quality of ours convictions to determine success
×
aster-99's Groups
aster-99's Contact & Social Links
sorry but that's no working  :'(
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents'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.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
sorry but that's no working  :'(

I'm afraid you will have to be more specific. I advise you to recheck your KVPs, compile if typo is found, refresh your mod and rebuild it, making sure not to have COD open at this time.
Trigger raises flag to activate zone. (make sure trigger flag matches script flag)
Zone activates spawners chance of spawning. (make sure script zone matches volume zone matches zone spawner)

This person had a similar problem the other day and was not able to resolve it without starting another map but couldn't find anything different between the two maps.

Good luck.
broken avatar :(
×
broken avatar :(
Former UGX Lead Asset Creator
Location: ca
Date Registered: 17 August 2012
Last active: 5 years ago
Posts
1,932
Respect
Forum Rank
Zombie Destroyer
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
Personal Quote
Eh?
Signature

(Click to enter portfolio)
×
SajeOne'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.
sorry, i've don't answered quickly but in italy was late and i've gone to sleep after posting that... however with that scrip zombies spawns only in te first room  :o
Code Snippet
Plaintext
dlc3_zone_init()
{
add_adjacent_zone( "initial_zone", "2a_zone", "enter_2a_zone_from_initial_zone" );
add_adjacent_zone( "initial_zone", "2b_zone", "enter_2b_zone_from_initial_zone" );
add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone_from_2a_zone" );
add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone_from_2b_zone" );
add_adjacent_zone( "2a_zone", "g_zone", "enter_g_zone_from_2a_zone" );
add_adjacent_zone( "2b_zone", "g_zone", "enter_g_zone_from_2b_zone" );
add_adjacent_zone( "g_zone", "2a_zone", "enter_2a_zone_from_g_zone" );
add_adjacent_zone( "g_zone", "2b_zone", "enter_2b_zone_from_g_zone" );
add_adjacent_zone( "g_zone", "6_zone", "enter_6_zone" );
add_adjacent_zone( "3_zone", "2a_zone", "enter_2a_zone_from_3_zone" );
add_adjacent_zone( "3_zone", "2b_zone", "enter_2b_zone_from_3_zone" );
/*
trigger use of the doors are perfect... i don't know where is the issue...
You've now been warned twice for not using code tags. It's a forum rule that when pasting code on the forum you must use code tags. Please do not fail to do this again.
broken avatar :(
×
broken avatar :(
Location: itPordenone
Date Registered: 19 January 2014
Last active: 4 years ago
Posts
64
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
aster-99's Groups
aster-99's Contact & Social Links
i'm so sorry, next time i will be more carefull...
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 9 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator 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.
i'm so sorry, next time i will be more carefull...
Thank you. In case you don't know how to use the code tags, you press the # button on the post toolbar to create code blocks in the textbox below, then you put your script between the two blocks. Like this:

[code]
script here {}
[/code]
broken avatar :(
×
broken avatar :(
Location: itPordenone
Date Registered: 19 January 2014
Last active: 4 years ago
Posts
64
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
aster-99's Groups
aster-99's Contact & Social Links
thanks trem :D! that's my first forum and i don't know a lot of things!
broken avatar :(
×
broken avatar :(
Location: ar
Date Registered: 12 August 2013
Last active: 9 years ago
Posts
14
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
kkrotto's Groups
kkrotto's Contact & Social Links

put in tiger_use a blocker?  key : script_flag   value : enter_yourzone  ??
broken avatar :(
×
broken avatar :(
Location: itPordenone
Date Registered: 19 January 2014
Last active: 4 years ago
Posts
64
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
aster-99's Groups
aster-99's Contact & Social Links
yes. now i've put in the map the debugger and when i open the 2b_zone it says that "2b, 3, g spawners are been activated" and zombies spawns everywhere!
broken avatar :(
×
broken avatar :(
Location: england
Date Registered: 29 August 2012
Last active: 5 years ago
Posts
366
Respect
Forum Rank
Perk Hacker
Primary Group
Member
×
haxman123's Groups
haxman123's Contact & Social Links
put in tiger_use a blocker?  key : script_flag   value : enter_yourzone  ??
Correction* Trigger_use not tiger_use lol
broken avatar :(
×
broken avatar :(
Location: itPordenone
Date Registered: 19 January 2014
Last active: 4 years ago
Posts
64
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
aster-99's Groups
aster-99's Contact & Social Links
oh, i don't remembered to answer to you. i put kvp in the triggers
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 4 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
just a little note. you can just declare adjacency like this

Code Snippet
Plaintext

add_adjacent_zone( "initial_zone", "2a_zone", "enter_2a" );
add_adjacent_zone( "initial_zone", "2b_zone", "enter_2b" );

add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone" );
add_adjacent_zone( "2a_zone", "g_zone", "enter_g_zone" );

add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone" );
add_adjacent_zone( "2b_zone", "g_zone", "enter_g_zone" );

add_adjacent_zone( "g_zone", "2a_zone", "enter_2" );
add_adjacent_zone( "g_zone", "2b_zone", "enter_2b" );
add_adjacent_zone( "g_zone", "6_zone", "enter_6_zone" );

add_adjacent_zone( "3_zone", "2a_zone", "enter_2a_zone" );
add_adjacent_zone( "3_zone", "2b_zone", "enter_2b_zone" );


like that independently of what zone you're in before buying a trigger, you just need one flag for all the triggers that activate that zone.
and @makecents no. it doesnt connect "a" with "b". ex
Code Snippet
Plaintext
add_adjacent_zone( "g_zone", "6_zone", "enter_6_zone" );
g zone is where the player is"supposedly an already active zone".  "6_zone" isnt active so it waits the flag "enter_6_zone" to activate it.

i say this cause i used to think of it that way and i got thousands of script runtime errors and non working zones :l
Last Edit: June 03, 2014, 05:59:45 pm by jjbradman
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
×
MakeCents'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.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
and @makecents no. it doesnt connect "a" with "b". ex
Code Snippet
Plaintext
add_adjacent_zone( "g_zone", "6_zone", "enter_6_zone" );
g zone is where the player is"supposedly an already active zone".  "6_zone" isnt active so it waits the flag "enter_6_zone" to activate it.

i say this cause i used to think of it that way and i got thousands of script runtime errors and non working zones :l
Yes it does "connect" a to b.
connect - bring together or into contact so that a real or notional link is established.
The link is that they are adjacent. I'm sure you are aware that what the string says doesn't matter, "connect", "enter", or "lady_gaga", as long as the flag isn't used somewhere else anyway.
I was merely using this word to help explain in a different way, that helped me, since the enter_zone way wasn't helping the OP.

Now for your example:
Where you do this kind of thing a couple times:
Code Snippet
Plaintext
add_adjacent_zone( "2a_zone", "g_zone", "enter_g_zone" );
add_adjacent_zone( "g_zone", "2a_zone", "enter_2" );
This is not necessary on simple 2-way zoning. You only need one flag to declare a zone adjacent to another and active. Using the word "enter" seems to make people believe that they have to enter each zone from another, but that usually leads to issues, like below. The zones are adjacent and do not matter which you are entering. If not active the zone manager will handle it and both will be adjacent to each other, unless declared otherwise.
Code Snippet
Plaintext
        add_adjacent_zone( "initial_zone", "2a_zone", "enter_2a" );
add_adjacent_zone( "initial_zone", "2b_zone", "enter_2b" );

add_adjacent_zone( "2a_zone", "3_zone", "enter_3_zone" );
add_adjacent_zone( "2a_zone", "g_zone", "enter_g_zone" ); 

//add_adjacent_zone( "2b_zone", "3_zone", "enter_3_zone" );  //will activate 2b, 3, and 2a
//add_adjacent_zone( "2b_zone", "g_zone", "enter_g_zone" );  //will activate 2a, g, and 2b

//add_adjacent_zone( "g_zone", "2a_zone", "enter_2" ); //change kvp in radiant to "enter_g_zone"
add_adjacent_zone( "g_zone", "2b_zone", "enter_2b" ); 
add_adjacent_zone( "g_zone", "6_zone", "enter_6_zone" );

//add_adjacent_zone( "3_zone", "2a_zone", "enter_2a_zone" ); //change kvp in radiant to "enter_3_zone"
add_adjacent_zone( "3_zone", "2b_zone", "enter_2b_zone" );

Please see my first reply for a more in depth explanation of what I was saying by "connect".
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 4 years ago
Posts
941
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
oh haha i understood wrong your post because of how his zones we're set up
and well im not sure i get what you're saying about the setup but i just removed useless flags. i didnt changed his setup although as you said there's some lines that dont need to be there
broken avatar :(
×
broken avatar :(
Location: itPordenone
Date Registered: 19 January 2014
Last active: 4 years ago
Posts
64
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
aster-99's Groups
aster-99's Contact & Social Links
YEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEAHHHHH! i made it! i use a different flag for all the doors and now the spawns works! thank to all you for the support  :D

 
Loading ...