![]() |
Functions
ok ... i was wondering the exact way to test for functions and to apply functions ... can someone help me ....
|
Re: Functions
Quote:
you make functions like this NPC Code: |
k
i understood how to do fuctions but what i was unsure of was how to test using 'if' and i found out now ....
NPC Code: |
Re: k
Quote:
|
Re: Re: k
Quote:
|
while on functions.. i am not sure.. on Q basic a funcition does its action and returns a value but on graal useing a function is just like putting the whole function script there.. so it does it all right.. do you guys understand what i am saying..
|
Re: Re: k
Quote:
but what i was oing was just asking how when i do: NPC Code: how I would would use 'if' to check if it was occuring .... |
Re: Re: Re: k
Quote:
|
Re: Re: Re: Re: k
Quote:
Nyght, heres an example: if you use oh, say this: if (playertouchsme) { talk(); } function talk() { message Hello.; sleep 3; message ; } its the exact same thing as using this, the only difference is readability, and some performance issues: if (playertouchsme) { message Hello.; sleep 3; message ; } Got it? |
| All times are GMT +2. The time now is 07:26 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.