|
| 15 Dec 2011 12:17 PM |
I Was Wondering If I Could Do Somthing Like This
if Lft() or Die() then *Script* end
Lft() Is A Function, So Is Die().
So...
function Lft(jf) print('lol') end
function Die(fj) print('yay') end
if Lft() or Die() then *Script* end
Would That Kinda Work? Im Basicly An Advanced Noob. Good, But Horible. |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 15 Dec 2011 12:24 PM |
I think that's more stupid that advanced; or at least the way you explained it sounded stupid.
'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 15 Dec 2011 12:26 PM |
Or maybe you want to return something
local var="hi"
function check(str) var==str and return true or return false end
if check("hi") then print[[var is "hi"]] end
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2011 12:26 PM |
| It Is :) I Am Just Wondering If That Would Work Or Would Not. I Can Make Scripts :) Just Not.. Insane Scripts. Im Still Learning. |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2011 12:35 PM |
Well, I Will Be Making A Disaster-Like Game, Execpt Not Disasters. More A Challenge - As in building, fighting, races, ect. For The Fighting, If Sombody Dies, Or Leaves, A Value Goes Down, Or They Get Removed From A Table. (Though I Never Learned Tables T.T) Hmm.. Now That I Think.. I Could Just Make Them The Functions They Are.. But Still, Alot Of Mess. Meh.. Time To Learn Tables! (Lets Hope The Wiki Works For Me Now..) |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 15 Dec 2011 02:26 PM |
I cannot stand reading that with a capital on the first letter of every word.
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
oxcool1
|
  |
| Joined: 05 Nov 2009 |
| Total Posts: 15444 |
|
| |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 15 Dec 2011 02:56 PM |
Oops, my bad. No idea why I'd even use an if statement, or even "return true" in that case.
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 15 Dec 2011 03:11 PM |
return true or false*
not return true or return false, was tired when writing that.
<'+1 Post. Ujelly?'> |
|
|
| Report Abuse |
|
|
|
| 15 Dec 2011 05:50 PM |
| I'm making a game. There. Thats all I basicly said. |
|
|
| Report Abuse |
|
|