|
| 05 Jun 2015 01:44 AM |
what is equal to or less than
and what is equal to or more than ??????????????????? |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 05 Jun 2015 02:11 AM |
| nQqzRYVpIKA5jLP is op tho. he's one of the best scripters here! |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 02:27 AM |
Or, you know.. Google: http://wiki.roblox.com/index.php?title=Operator |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 02:28 AM |
| Pretty confusing huh?, but you'll get it over time. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 05 Jun 2015 02:38 AM |
'and what is equal to or more than ???????????????????' your second question
this is the answer >= |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 05 Jun 2015 02:58 AM |
| also, by 2nd question, i meant my post after nQqz |
|
|
| Report Abuse |
|
|
|
| 05 Jun 2015 03:06 AM |
| Is "BountyQuest1" a value? Because it sounds like it is a tool. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|