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 Help Check if Statements

HOT
broken avatar :(
Created 10 years ago
by pashan
0 Members and 1 Guest are viewing this topic.
6,986 views
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 3 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
Signature
×
pashan's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
How do i script to tell the computer to make a trigger activable if a certain trigger has been activated?
Marked as best answer by pashan 10 years ago
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
first disable the trigger at the very start of the function with
Code Snippet
Plaintext
disable_trigger();
and after the player use the first trigger set a falg like this
Code Snippet
Plaintext
flag_set("stop_wait");
and make the trigger that you disabled to wait till the flag has been set up to show it to the players like
Code Snippet
Plaintext
flag_wait("stop_wait");
enable_trigger();
it would be easier to understand if you could post your code to make the required changes
Last Edit: March 31, 2014, 01:47:28 am by jjbradman
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 3 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
×
pashan's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
first disable the trigger at the very start of the function with
Code Snippet
Plaintext
disable_trigger();
and after the player use the first trigger set a falg like this
Code Snippet
Plaintext
flag_set("stop_wait");
and make the trigger that you disabled to wait till the flag has been set up to show it to the players like
Code Snippet
Plaintext
flag_wait("stop_wait");
enable_trigger();
it would be easier to understand if you could post your code to make the required changes

what if i have multiple triggers to disable and enable:

What i mean:

( player uses trigger 1 = makes trigger 2 usable
 player uses trigger 2 = makers trigger 3 usable

and so on.....)

can i keep on changing "stop_wait"

to stop_wait_two

stop_wait_three

and so on..... ?!?!

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
everytrigger must wait for the last trigger to notify the flag. yeah you should be fine
broken avatar :(
×
broken avatar :(
RadihaX
Location: caCanada
Date Registered: 2 September 2012
Last active: 3 years ago
Posts
978
Respect
Forum Rank
The Decider
Primary Group
Community Mapper Elite
My Groups
More
My Contact & Social Links
More
Signature
Overrun
Lockdown
Overrun (Black Ops Mod)
Snowglobe
Leviathan
Abandoned School
Ski Resort
Leviathan Redux
×
JBird632'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.
Community Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
JBird632's Contact & Social LinksJBird632JBird632JBird632JBird632JBird632Mapper
Yes, you can set it up to do that.
Personally I wouldn't use flags, I would just set it up like this:
Code Snippet
Plaintext
trigger1 waittill("trigger", player);
// do stuff
trigger2 waittill("trigger", player);
// do stuff
trigger3 waittill("trigger", player);
// do stuff
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 3 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
×
pashan's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
how would i make a trigger display a meassage
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
jbrid wouldnt that way the triggers stay active all the time?  ???

Code Snippet
Plaintext
trig SetHintString( "YOLO!!!\o/" );
Last Edit: March 31, 2014, 02:05:48 am by jjbradman
broken avatar :(
×
broken avatar :(
RadihaX
Location: caCanada
Date Registered: 2 September 2012
Last active: 3 years ago
Posts
978
Respect
Forum Rank
The Decider
Primary Group
Community Mapper Elite
My Groups
More
My Contact & Social Links
More
×
JBird632'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.
Community Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
JBird632's Contact & Social LinksJBird632JBird632JBird632JBird632JBird632Mapper
jbrid wouldnt that way the triggers stay active all the time?  ???
you hide them and show them where I said "do stuff"
also to set the hintstring you simply put:
Code Snippet
Plaintext
trigger1 SetHintString( "What ever you want it to say" );
Last Edit: March 31, 2014, 02:06:19 am by JBird632
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
you hide them and show them where I said "do stuff"
also to set the hintstring you simply put:
Code Snippet
Plaintext
trigger1 SetHintString( "What ever you want it to say" );
well i prefer using flags cause i've had bad memories using waittill player but i think it might work the same  :o
if you want the hint string to have something like "press F" you put
Code Snippet
Plaintext
press &&1
inside the hinstring, also if ou want the text to be yellow you put
Code Snippet
Plaintext
press ^3&&1^7
ex:
Code Snippet
Plaintext
    level.storagecost = 500; 		
trig setHintString("Press ^3&&1^7 to store your weapon["+level.storagecost+"]");
Last Edit: March 31, 2014, 02:10:24 am by jjbradman
broken avatar :(
×
broken avatar :(
RadihaX
Location: caCanada
Date Registered: 2 September 2012
Last active: 3 years ago
Posts
978
Respect
Forum Rank
The Decider
Primary Group
Community Mapper Elite
My Groups
More
My Contact & Social Links
More
×
JBird632'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.
Community Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
JBird632's Contact & Social LinksJBird632JBird632JBird632JBird632JBird632Mapper
well i prefer using flags cause i've had bad memories using waittill player but i think it might work the same  :o
your way should work, however flags can be a bit buggy and not always work.
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
your way should work, however flags can be a bit buggy and not always work.
buggy?  :o i've never had problems with them and i like that you wait fotr the flag in another script :P
Last Edit: March 31, 2014, 02:13:40 am by jjbradman
broken avatar :(
×
broken avatar :(
RadihaX
Location: caCanada
Date Registered: 2 September 2012
Last active: 3 years ago
Posts
978
Respect
Forum Rank
The Decider
Primary Group
Community Mapper Elite
My Groups
More
My Contact & Social Links
More
×
JBird632'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.
Community Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
JBird632's Contact & Social LinksJBird632JBird632JBird632JBird632JBird632Mapper
buggy?  :o i've never had problems with them and i like that you wait fotr the flag in another script :P
Well if I wanted something from another script to begin, then I would rather call it,
or use a level notify
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
well but thats just personal choice :P
broken avatar :(
×
broken avatar :(
RadihaX
Location: caCanada
Date Registered: 2 September 2012
Last active: 3 years ago
Posts
978
Respect
Forum Rank
The Decider
Primary Group
Community Mapper Elite
My Groups
More
My Contact & Social Links
More
×
JBird632'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.
Community Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
JBird632's Contact & Social LinksJBird632JBird632JBird632JBird632JBird632Mapper
well but thats just personal choice :P
The stuff I said about flags is not a personal choice, that is how the game engine works.
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 3 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
×
pashan's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
you hide them and show them where I said "do stuff"
also to set the hintstring you simply put:
Code Snippet
Plaintext
trigger1 SetHintString( "What ever you want it to say" );


dosn't sethintstring make if so when your near the trigger it will display a little message

then thing i want is a message to show up after i use the trigger (like an objective thing on the top left corner)

 
Loading ...