Pink Petal Games

Game Editing And Additions => User Mods => Topic started by: CaptC on September 11, 2014, 10:51:18 AM

Title: Script requests
Post by: CaptC on September 11, 2014, 10:51:18 AM
I'm not sure if the "working on Whoremaster editor" means the script editor is being worked on as well. If so, I have a few suggestions for new abilities to add into the scripting capabilities.
Title: Re: Script requests
Post by: CaptC on September 11, 2014, 11:56:16 AM
Forogt an important one:


Add a button that will reformat the script with current indentation.  IE the same as writing the script out to disk, then re-reading it in again. Only faster.
Title: Re: Script requests
Post by: Morkar on September 11, 2014, 11:59:22 AM
Dungeon Scripts sould be good 

the options of ask sex  o force  sex  are boring
Title: Re: Script requests
Post by: 0nymous on September 11, 2014, 06:50:09 PM
I'm not even sure who exactly was responsible for the script editor and if they're around anymore. I know for a fact the player morality system was implemented by aevo and the editor itself goes way back than his work.
I think one of the original devs was trying to convert scripts to .lua support, which is why the Intro script is in that format. That was, well... four years ago. Whatever happened after that is a mystery.

That being said, I think aevo mentioned he's gonna work on scripts and script writing flexibility once a lot of other things are done first. 
Believe in aevo.
Title: Re: Script requests
Post by: aevojoey on September 12, 2014, 12:59:42 AM
First off, there is no known source code for the old script editor so nothing will be done with that unless it is found.

I started looking into how the game loads scripts and found that the game also contains the code to save scripts.
I was able to make the game save an existing script to a new file, and then use that file in place of the original.
I will be digging into the script code this weekend to see how hard it would be to convert the scripts to xml.

If I can, I may try to remake the script editor from scratch, but probably not.
Title: Re: Script requests
Post by: CaptC on September 12, 2014, 09:50:40 AM
Software archaeology is fun.


I didn't realize the code was lost, rewriting a poor system would be a waste of effort. Do it new and correctly, but please consider adding the capabilities suggested above when you do so.


I'll soldier on in the meantime - about halfway through a new Arena meet script.
Title: Re: Script requests
Post by: Romanul on February 08, 2015, 05:39:50 AM

I will be digging into the script code this weekend to see how hard it would be to convert the scripts to xml.




Any luck with that?


 And while we are on the subject, is there any way to edit the scripts at the moment? I want to add some interactions (nothing fancy) but i can't seem to open them properly.
Title: Re: Script requests
Post by: aevojoey on February 08, 2015, 09:53:42 AM
I will be digging into the script code this weekend to see how hard it would be to convert the scripts to xml.
Any luck with that?
 And while we are on the subject, is there any way to edit the scripts at the moment? I want to add some interactions (nothing fancy) but i can't seem to open them properly.
The existing script editor still works but it is kind of hard to master.

At the time I did that post, I didn't really know how the script editor worked.
I have since figured out how to add new options to it and a little about how it works.
Several things have been added to its capabilities and it is fairly easy to add new ones.


Moved the progress to its own thread - Script conversion to XML Progress (http://www.pinkpetal.org/index.php?topic=3557.0)