![]() |
Running Scripts from Text Files
I was thinking, is there a way to run a script from a text file? Like having the script in a text file, then loading the text file into a class then joining the class?
Or something similar to that? |
As far as I know, the classes are text files.
|
I mean like uploading:
blahscript.txt The create a weapon, "-Test". Then using loadlines and it will read everything in the text file and run it in the "-Test" NPC. |
Would need eval().
|
all weapons/Classes/DB are .txt files
|
Quote:
I mean having a text file, like, "test.txt" in levels. Then in a script named: "-TestScript" Load the text from the .txt file and run everything in the text file as a script in the "-TestScript" weapon. |
Isn't putnpc's 2nd param the name of a text file which contains the script for that NPC?
Though it will only work for level NPCs. |
Quote:
|
Yeah, but I mean as far as a Databased and everything, it would be nice to have them all aptly named text files, like:
"Pointandclick.txt" containing a script for the movement system. Then open a weapon named, "-Movement". As a command name, something like, "runtextasscript("textfilename")". It would read all the contents of the text file and run the contents as script using the "-Movement" Weapon NPC. |
Question answered in future improvements. Nevermind. :p
|
If you're not using the default Graal Q Menu then don't name your weapons with anything but letter characters and numbers in them. That way you can reference the object name without funky stuff.
|
Quote:
|
Quote:
|
Hotrian made a GUI Window editor, in which when you save a Gui Control, it saves as a weapon text file. I still don't know how he made that Gui editor x.x
|
Invern >:O Thought you were Yen XD Oh wait are you trying to save a file then load it later?
|
Quote:
|
Quote:
|
GS2 GUIs have got to be the easiest to handle. If people need a GUI Editor for GS2 GUIs, I can just imagine how they managed in GS1, when they had to make everything custom x-x
|
A new improved version of the Gui Editor is in the making, will be added to the scripted RC once done.
|
add that to your list stefan for stuff in production
|
Quote:
|
| All times are GMT +2. The time now is 07:03 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.