stevehalliwell / ulox

A bytecode interpreted scripting language for games in Unity.
MIT License
24 stars 0 forks source link

Some doubts #218

Open juliolitwin opened 1 year ago

juliolitwin commented 1 year ago

Hey @stevehalliwell, congrats on the project! Your project is incredible, I believe it's the best in C# that I've ever seen and also the most complete.

I'm wanting to use your project as scripting for npcs (serverside), but I'm not sure if it's possible.

For example, there is a famous ragnarok project (rAthena) that they have their own scripting.

Each header let's say is a function call for example

alberta,97,51,0 script Fabian 84,{ alberta,53,39,0 script Steiner 100,{ alberta,131,139,2 script Drunken Old Man 1_M_JOBGUIDER,{

and etc.

Within the serverside, I need to be able to call this function and also be able to recognize the necessary variables or functions, for example, in a part of the NPC, let's assume that he wanted to get the money from the current player, so scripting would have to have access or call a function to get the result.

Cheers.