Good day gentlemen.
I am going to implement Squirrel in my RPG, but I have never used scripts before. So how can I link Squirell with my application?
For example, I have wrote class called "Unit" in C++ code. It has list of methods like:
- Kill
- SetMana
- SetHitPoints
- SetSpeed
- AddWeapon
etc. And now I want to have a function called "heal_unit" in my scripts, with arguments like:
heal_unit(UnitID, Percentage)
so I can play with untis trough Squirrel scripts, not C++ code. How can it be done?
The answer like "Oh my god, what a noob. Learn this: http://xxxxxx.com" will be greatly appriciated.