About Store Forum Documentation Contact



Post Reply 
Simple Script Editor
Author Message
lucifer1101 Offline
Member

Post: #1
Simple Script Editor
I belive that it would be a good i dea to have your own scripting language with an editor, just to add some basic functions

e.g GetPlayerPos(index)
SetPlayerPos(index,0,0,0)

all different sorts of commands
like keypresses and calling functions etc etc....
12-25-2008 01:55 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
Re: Simple Script Editor
Hi, could you explain a little bit more what would be the purpose of such an editor?
Would it be a separate tool or something?
You can use these commands quite simply in C++ game code.
12-25-2008 02:40 PM
Find all posts by this user Quote this message in a reply
lucifer1101 Offline
Member

Post: #3
Re: Simple Script Editor
The point of this is to make some simple little scripts that can do simple functions with an easier to understand layout, similar to sadscript but for 3d..

e.g i wanted to make a spell heal a player for 100 hp

spell 1
if getplayermp(index) > 10
setplayerhp(index, 20)
setplayermp(index, -10)
call playermsg(index, "Youhave been healed 20 points", Green)
End

it would be used as a seperate tool and the scripts can be called upon in the game engine.

e.g
if (Kb.b(KB_SPACE)
call spell 1; //i dont know if thats how it would be called though....

its mostly just simplifying the commands to aneasier more understandable state and having them laid out making it very easy to understand what is going on.

Im an official Esenthel Nooblet
12-25-2008 11:48 PM
Find all posts by this user Quote this message in a reply
craksy Offline
Member

Post: #4
Re: Simple Script Editor
it would be easier to just put all your spells in a header file, and then call the functions, containing the spells?

to be honest i dont really see any use of a script editor, either :/
12-26-2008 04:07 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
Re: Simple Script Editor
to be honest I feel about it just like Craksy is

all the commands can be simply used in C++ game code, all you need is already what you've got in C++
scripts are always limited for their functionality, speed, and are troublesome to implement
12-26-2008 12:27 PM
Find all posts by this user Quote this message in a reply
Post Reply