Welcome, Guest. Please login or register.

Pages: [1]
Print
Author Topic: Scripting system feedback  (Read 2852 times)
Q_x
Admin
Community member

Posts: 553



View Profile
« on: February 19, 2012, 03:09:13 PM »

From what I understand, the scripting system uses now combined python and yaml syntax. Some of names are pythonic things.with.many.dots pointing into certain data structure.
From what I understand, there is set of conditions defined and (re-)action defined later.
Possible actions are (for now): ChangeMap,  Open, Close, Unlock, Lock, ExamineItem, Examine, Look, Read, Talk, Use, PickUp, DropFromInventory, BrewBeer, ExamineContents, RunScript, Say, None.

Now, what I'd imagine as a scripting system would be something a bit more robust (and simpler).
I'd rather see it as a tool comparable to what is javascript in web browser - basically "can do anything". Add a button to the GUI, add a stat to PC's set, add an NPC, modify it's behavior... We can even "borrow" an existing language - this may be anything (even python itself), as long, as it is really simple. I mean as simple, as for example Ren'Py is. (example code to be found here: http://www.renpy.org/wiki/renpy/doc/tutorials/Quickstart ).
Will it be easy or hard - no clues.

As for extending our current language - I'd add tests (like when jumping above a creek), more interactions with NPCs (fighting, stealing, making NPCs behave in a certain way, like dropping an item), and also extend it by whole lot - as said before.

What do you think about it?

Logged

Beliar
Community member

Posts: 71

KarstenBock@gmx.net
View Profile Email
« Reply #1 on: February 19, 2012, 04:05:50 PM »

Well, when I created the scripting system I never intended it to have the functionality to add buttons and such things. Also I don't know how much work such things would require.
Logged

Wing IDE - http://wingide.com/wingide - Free for OS use
Q_x
Admin
Community member

Posts: 553



View Profile
« Reply #2 on: February 19, 2012, 04:32:16 PM »

I don't think it's that important for now to extend it in GUI direction, at least not now. Just a dream. I hope other stuff will be more doable.
Edit: but tings like simple math would be cool (when testing PCs attributes, nothing more than +, -, *, / and sqrt - things like fractals and plasma would better be done in pure python anyway).

« Last Edit: February 19, 2012, 05:23:47 PM by Q_x » Logged

Beliar
Community member

Posts: 71

KarstenBock@gmx.net
View Profile Email
« Reply #3 on: February 22, 2012, 12:26:01 PM »

As already said in IRC, basic math (+, -, * ,/) is alread possible in conditions. Additional math functions, from the python math library are easy to add.

I just need to know what functions you think we will need.
Logged

Wing IDE - http://wingide.com/wingide - Free for OS use
Q_x
Admin
Community member

Posts: 553



View Profile
« Reply #4 on: February 24, 2012, 05:44:13 PM »

I don't know how the interface looks - quite possibly there isn't any - to access PC's or NPC's stats or calculate map data (like the distance between PC and a given target). But what I would do with it would be quite easy on math side - sqrt and log (modulo?) it's probably most advanced math I'd see used in any mechanics. Sqrt may be generalized to exponentiation.

Sorry for replaying you so late. I've been deadly busy (which hopefully is over for this month) and in the evenings I've been playing with USB linux distros, so my keychain was pretty much unavailable.
Logged

Pages: [1]
Print
Jump to: