generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: OPERATORS

Previous Thread :: Next Thread 
theninjaguy987 is not online. theninjaguy987
Joined: 21 Jun 2013
Total Posts: 766
05 Jun 2015 01:44 AM
what is equal to or less than


and what is equal to or more than ???????????????????
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
05 Jun 2015 01:45 AM
<=
>=
Report Abuse
theninjaguy987 is not online. theninjaguy987
Joined: 21 Jun 2013
Total Posts: 766
05 Jun 2015 01:50 AM
then why, if the value of BountyQuest1 is 2, does it register as it's <= 1????


elseif plyr.Backpack:findFirstChild(tostring(nameoftoolA)).Value <= 1 then

Exchange.ResponseDialog = (tostring(responseC))

elseif plyr.Backpack:findFirstChild(tostring(nameoftoolA)) ~= nil and plyr.Backpack:findFirstChild(tostring(nameoftoolA)).Value >= 2 then





SOOOOOO frusterating
Report Abuse
lateregistration is not online. lateregistration
Joined: 02 Apr 2013
Total Posts: 2630
05 Jun 2015 01:53 AM
Operators:

Greater Than or Equal to:

if x >= 1 then

if x is more than or equal to one then

Less Than or Equal to:

if x <= 1 then

if x is less than or equal to one then

Equal to:

if x == 1 then

if x equals 1 then

Not Equal to:

if x ~= 1 then

if x doesn't equal 1 then

Greater Than:

if x > 1 then

if x is more than one then

Less Than:

if x < 1 then

if x is less than one then
Report Abuse
theninjaguy987 is not online. theninjaguy987
Joined: 21 Jun 2013
Total Posts: 766
05 Jun 2015 01:55 AM
yeah i was just making sure and i'm right but how come the script i entered above won't work??
Report Abuse
lateregistration is not online. lateregistration
Joined: 02 Apr 2013
Total Posts: 2630
05 Jun 2015 01:55 AM
Im not sure
Report Abuse
theninjaguy987 is not online. theninjaguy987
Joined: 21 Jun 2013
Total Posts: 766
05 Jun 2015 02:11 AM
nQqzRYVpIKA5jLP is op tho. he's one of the best scripters here!
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
05 Jun 2015 02:27 AM
Or, you know.. Google:
http://wiki.roblox.com/index.php?title=Operator
Report Abuse
Destroyerz21 is not online. Destroyerz21
Joined: 29 Apr 2013
Total Posts: 432
05 Jun 2015 02:28 AM
Pretty confusing huh?, but you'll get it over time.
Report Abuse
theninjaguy987 is not online. theninjaguy987
Joined: 21 Jun 2013
Total Posts: 766
05 Jun 2015 02:34 AM
***>>I already know what an operator is<<***


now, can someone help me with my second question? =c
Report Abuse
epicbreaker is not online. epicbreaker
Joined: 23 Apr 2011
Total Posts: 2791
05 Jun 2015 02:36 AM
elseif plyr.Backpack:findFirstChild(tostring(nameoftoolA)) ~= nil and plyr.Backpack:findFirstChild(tostring(nameoftoolA)).Value >= 2 then

What comes after this?
Report Abuse
Destroyerz21 is not online. Destroyerz21
Joined: 29 Apr 2013
Total Posts: 432
05 Jun 2015 02:38 AM
'and what is equal to or more than ???????????????????' your second question

this is the answer >=
Report Abuse
theninjaguy987 is not online. theninjaguy987
Joined: 21 Jun 2013
Total Posts: 766
05 Jun 2015 02:57 AM
----------------------------------------------------------
local nameoftoolA = "BountyQuest1"

local responseA = "Here is your reward!" --This is what it'll say when the player is given the reward.
local responseB = "You haven't started the quest..." --This is what it will say if you haven't already accepted the quest.
local responseC = "You don't have all of the bounties yet..." --This is what it'll say if the player has started the quest has not met the requirements.
local responseD = "You've already finished this quest!" --This is what it'll say if you've already finished the quest.

local removetool = true
----------------------------------------------------------

function onSelect(plyr,Exchange)

if Exchange.Name == "Exchange" then
if plyr.Backpack:FindFirstChild(tostring(nameoftoolA)) == nil then

Exchange.ResponseDialog = (tostring(responseB))

elseif plyr.Backpack:FindFirstChild(tostring(nameoftoolA)).Value <= 1 then

Exchange.ResponseDialog = (tostring(responseC))

elseif plyr.Backpack:FindFirstChild(tostring(nameoftoolA)) ~= nil and plyr.Backpack:findFirstChild(tostring(nameoftoolA)).Value >= 2 then

if removetool == true then
plyr.Backpack:FindFirstChild(tostring(nameoftoolA)):remove()
end

plyr.leaderstat.EXP.Value = plyr.leaderstat.EXP.Value + 180
plyr.leaderstat.Ryo.Value = plyr.leaderstat.Ryo.Value + 50
plyr.Backpack.nameoftoolA.Value = 3

Exchange.ResponseDialog = (tostring(responseA))


end
end
end

script.Parent.Parent.DialogChoiceSelected:connect(onSelect)

Report Abuse
theninjaguy987 is not online. theninjaguy987
Joined: 21 Jun 2013
Total Posts: 766
05 Jun 2015 02:58 AM
also, by 2nd question, i meant my post after nQqz
Report Abuse
Firebrand1 is not online. Firebrand1
Joined: 12 Feb 2009
Total Posts: 2692
05 Jun 2015 03:06 AM
Is "BountyQuest1" a value? Because it sounds like it is a tool.
Report Abuse
Firebrand1 is not online. Firebrand1
Joined: 12 Feb 2009
Total Posts: 2692
05 Jun 2015 03:08 AM
Also you'll want this:

plyr.Backpack[nameoftoolA].Value = 3

instead of this:

plyr.Backpack.nameoftoolA.Value = 3
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image