Author Topic: callings subs in diffrent scripts  (Read 3383 times)


  • Newbie
  • *
  • Posts: 15
callings subs in diffrent scripts
« on: April 10, 2006, 12:48:56 PM »
is it possible to do that in IC5?

i havent tested, thought i would ask before i start cleaning up the scripts


  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: callings subs in different scripts
« Reply #1 on: April 10, 2006, 01:47:05 PM »
If the sub is in the same file, you can call it.
If it is in a seperate file, you can not call it, as they each script is completely seperated from the others.

You can make a specific script a global one, that is accesable from all other scripts.
This is done from the Main Menu in the script editor, Make Script Global.
If you do this, you can not duplicate sub/function names, or you will get errors.
The IceChat God