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 » Roblox » Suggestions & Ideas
Home Search
 

Re: APIs?

Previous Thread :: Next Thread 
Delorean225 is not online. Delorean225
Joined: 28 Aug 2010
Total Posts: 111
26 Feb 2013 02:50 PM
As a scripter, I find it a bit annoying that a function I make in one script can't be called in another. I mean, say I wanted to code source code for an OS and write a window manager over it. I can't call up the source functions! If you could do like:
script.Parent.Source.Function Attach(text, script.Parent.Source.table1)
or something like that. Just an example, but we could do so much more by calling up functions from the other scripts we wrote to make better game engines and such. Just a thought.
Report Abuse
Delorean225 is not online. Delorean225
Joined: 28 Aug 2010
Total Posts: 111
28 Feb 2013 02:12 PM
Bump! Still no supporters?
Report Abuse
rocksrolling749 is not online. rocksrolling749
Joined: 11 Jul 2010
Total Posts: 20896
28 Feb 2013 02:14 PM
I'm not a scripter so I don't have the most knowledge on scripting...

I support because I get what you're trying to say.

god dangit why did you have to do that
Report Abuse
GepGun is not online. GepGun
Joined: 16 Nov 2012
Total Posts: 157
28 Feb 2013 02:15 PM
have you checked out the wiki?

http://wiki.roblox.com/index.php/Global_Functions
Report Abuse
edgecutter is not online. edgecutter
Joined: 27 Dec 2008
Total Posts: 1415
28 Feb 2013 02:16 PM
...Man I'm rusty on my scripting, but if I get it correctly, you want one of your scripts to be able to tell your other scripts when to work?

I support this idea.
So very much.
In fact, I love it.

Put a beat on it and I'll buy it. -Alex Agnew, Belgian comedian
Report Abuse
Alex4897 is not online. Alex4897
Joined: 06 Aug 2008
Total Posts: 14517
28 Feb 2013 02:28 PM
One way I know of to make scripts trigger other scripts is to have the original script trigger a Value by changing the number of the value. Then you make the secondary scripts trigger only when that value is set to the correct number.

I am an eggspert in the eggcelent art of egg puns.
Report Abuse
dom2d2 is not online. dom2d2
Joined: 11 Apr 2008
Total Posts: 6397
28 Feb 2013 02:46 PM
Even though I am not a scripter, I completely support this. It is a great idea and would open many opportunities.
Report Abuse
SurfKing12 is not online. SurfKing12
Joined: 23 Jun 2011
Total Posts: 7935
28 Feb 2013 02:55 PM
Excellent idea.
Full Support.
Report Abuse
StealthKing95 is not online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
28 Feb 2013 03:17 PM
There are bindablefunctions in the object browser, use them, they exist.
Report Abuse
Delorean225 is not online. Delorean225
Joined: 28 Aug 2010
Total Posts: 111
01 Mar 2013 07:41 AM
Thank you for the support!
Report Abuse
Delorean225 is not online. Delorean225
Joined: 28 Aug 2010
Total Posts: 111
02 Mar 2013 07:21 AM
bumpity bump!
Report Abuse
StealthKing95 is not online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
04 Mar 2013 07:17 AM
what I said ^^
Report Abuse
StealthKing95 is not online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
04 Mar 2013 07:24 AM
--create this in a localscript inside startergui:

Instance.new("BindableFunction", script)
local func = script.BindableFunction

func.OnInvoke =
function(arg)
print(arg)
end


--and this into a normal script in workspace:
local plrs = game.Players:children()
for i = 1, #plrs do
local func = plrs[i].PlayerGui.LocalScript.BindableFunction
if func then
func:Invoke("YAY IT WORKS")
end
end


as you see, you can access localscripts from global, and the other way around, only with bindablefunctions
Report Abuse
StealthKing95 is not online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
04 Mar 2013 07:27 AM
that script wouldnt work as there are a few errors, that was just an example of how they operate
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • 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