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

script_noteworthy confliction (in_water and find_flesh)

broken avatar :(
Created 8 years ago
by Psych
0 Members and 1 Guest are viewing this topic.
2,759 views
broken avatar :(
×
broken avatar :(
Location: usunited states
Date Registered: 19 August 2012
Last active: 2 years ago
Posts
215
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Personal Quote
Mapper
Signature
Maker of Contrivance
×
Psych's Groups
Psych's Contact & Social Links
In my map I need risers to spawn out of the water using the KVP's

[script_noteworthy]
[find_flesh] and [in_water]

at the same time so zombies can rise out of the water and chase the player without a barricade like in shi no numa. Any tutorials on this (as I couldn't find any) or any help anyone can offer? The two script_noteworthys do not work together at the same time. Thanks!

I will make a tutorial after it is solved because there does not seem to be one yet
Marked as best answer by Psych 8 years ago
broken avatar :(
×
broken avatar :(
Location: usCali(fornia)
Date Registered: 21 December 2013
Last active: 4 years ago
Posts
418
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Signature
The sound of God is the screech of tires, lights and magnets, bolts and wires. Strayed from the road, this very one, still to come. The sound of tires is the sound of God, the electric version.
×
mrpeanut188's Groups
mrpeanut188's Contact & Social Linksmrpeanut1881337p34nutmrpeanut188
You'll have to combine the two effects of in_water and find_flesh. Relatively simple:

1. Copy _zombiemode_spawner.gsc from raw/maps to mod/maps IF it doesn't already exist.

2. Find the following line (line 359 for unchanged file)
Code Snippet
Plaintext
( IsDefined(rise_struct_string) && rise_struct_string == "find_flesh") )
Change it to this:
Code Snippet
Plaintext
( IsDefined(rise_struct_string) && (rise_struct_string == "find_flesh" || rise_struct_string == "find_flesh_water")) )

3. Find the following line (line 3498 for unchanged file)
Code Snippet
Plaintext
if(IsDefined(self.script_noteworthy) && self.script_noteworthy == "in_water")
Change it to this:
Code Snippet
Plaintext
if(IsDefined(self.script_noteworthy) && (self.script_noteworthy == "in_water") || self.script_noteworthy == "find_flesh_water")

4. For your script_noteworthy, use "find_flesh_water".

That should be it, any problems just reply back or PM.
Last Edit: January 11, 2016, 06:41:48 am by mrpeanut188
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
You'll have to combine the two effects of in_water and find_flesh. Relatively simple:

Nice! If I may, I would like to suggest using IsSubStr instead of the || with another kvp. Not that there is anything wrong with what you did, just a suggestion to see if you like that way.

For example:
Code Snippet
Plaintext
( IsDefined(rise_struct_string) && IsSubStr(rise_struct_string,"in_water")) )

//and

if(IsDefined(self.script_noteworthy) && IsSubStr(self.script_noteworthy, "in_water"))

Then they could use both kvps together... find_flesh in_water
Last Edit: January 11, 2016, 02:35:39 pm by MakeCents
broken avatar :(
×
broken avatar :(
Location: usunited states
Date Registered: 19 August 2012
Last active: 2 years ago
Posts
215
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Personal Quote
Mapper
×
Psych's Groups
Psych's Contact & Social Links
You'll have to combine the two effects of in_water and find_flesh. Relatively simple:

1. Copy _zombiemode_spawner.gsc from raw/maps to mod/maps IF it doesn't already exist.

2. Find the following line (line 359 for unchanged file)
Code Snippet
Plaintext
( IsDefined(rise_struct_string) && rise_struct_string == "find_flesh") )
Change it to this:
Code Snippet
Plaintext
( IsDefined(rise_struct_string) && (rise_struct_string == "find_flesh" || rise_struct_string == "find_flesh_water")) )

3. Find the following line (line 3498 for unchanged file)
Code Snippet
Plaintext
if(IsDefined(self.script_noteworthy) && self.script_noteworthy == "in_water")
Change it to this:
Code Snippet
Plaintext
if(IsDefined(self.script_noteworthy) && (self.script_noteworthy == "in_water") || self.script_noteworthy == "find_flesh_water")

4. For your script_noteworthy, use "find_flesh_water".

That should be it, any problems just reply back or PM.

Nice! If I may, I would like to suggest using IsSubStr instead of the || with another kvp. Not that there is anything wrong with what you did, just a suggestion to see if you like that way.

For example:
Code Snippet
Plaintext
( IsDefined(rise_struct_string) && IsSubStr(rise_struct_string,"in_water")) )

//and

if(IsDefined(self.script_noteworthy) && IsSubStr(self.script_noteworthy, "in_water"))

Then they could use both kvps together... find_flesh in_water

Thanks a ton for the help I will get started on this right now and I'll make a tutorial with both of you fully credited after I get it working! +1 to both of you  :gusta:
Last Edit: January 11, 2016, 04:09:16 pm by Psych
broken avatar :(
×
broken avatar :(
Location: usCali(fornia)
Date Registered: 21 December 2013
Last active: 4 years ago
Posts
418
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
mrpeanut188's Groups
mrpeanut188's Contact & Social Linksmrpeanut1881337p34nutmrpeanut188
Nice! If I may, I would like to suggest using IsSubStr instead of the || with another kvp. Not that there is anything wrong with what you did, just a suggestion to see if you like that way.
That's probably a better solution, I haven't scripted enough to know all the functions and I haven't taken any classes on coding so everything could probably be more efficient.

 
Loading ...