Original Post
Hello, I would first like to point out, that I am new on the gaming scene, but I have been programming for quite some time.
I know that C# scripting is possible, as I have seen examples of it, although they are somewhat confusing to me and leave out key ideas.
Here is what I am in need for and why:
1) I need a scripting system for low level users to script game aspects.
2) The language needs to be completely managed so it is not too technical
3) I would like if the language was compatible with XNA and XBOX (meaning they must be compiled)
thus I have deduced that I need C# for these needs.
now, I have seen plenty of scripting systems that require you to include, create classes...etc which is a bit too hard for what I will require for my user-base to do.
I would love if it is possible to create a system to where the script can look along the lines of...
I imagine that Map_142 would have to extend another class to work correctly.
Mind you, I am just giving an example, I wouldn't mind it if there has to be a parameter passed or some inheritance as I can do this automatically, but as long as it is close to this format, that would be awesome.
I know what I want, but I don't have the first clue of how to make a scripting language in C# to work in this manner. I will in worst case scenario use a language like lua and sacrifice XBOX compatibility if need be.
I have been looking around, but I can't seem to find a clear cut example of what I am looking for. I am just sorta lost when it comes to C# and scripting.
any help is appreciated!
Thank you for your time!
I know that C# scripting is possible, as I have seen examples of it, although they are somewhat confusing to me and leave out key ideas.
Here is what I am in need for and why:
1) I need a scripting system for low level users to script game aspects.
2) The language needs to be completely managed so it is not too technical
3) I would like if the language was compatible with XNA and XBOX (meaning they must be compiled)
thus I have deduced that I need C# for these needs.
now, I have seen plenty of scripting systems that require you to include, create classes...etc which is a bit too hard for what I will require for my user-base to do.
I would love if it is possible to create a system to where the script can look along the lines of...
class Map_142{ public override void OnEnter() { Player.ShowMessage("You entered map" + this.Map.Number + "!"); }}I imagine that Map_142 would have to extend another class to work correctly.
Mind you, I am just giving an example, I wouldn't mind it if there has to be a parameter passed or some inheritance as I can do this automatically, but as long as it is close to this format, that would be awesome.
I know what I want, but I don't have the first clue of how to make a scripting language in C# to work in this manner. I will in worst case scenario use a language like lua and sacrifice XBOX compatibility if need be.
I have been looking around, but I can't seem to find a clear cut example of what I am looking for. I am just sorta lost when it comes to C# and scripting.
any help is appreciated!
Thank you for your time!