Croow
learning LUA :)
- Joined
- Aug 17, 2015
- Messages
- 25
- Reaction score
- 4
Welcome in my mini tutorial. I'll show you how to change name of skill displayed after "You advanced in ..."
I'll use for example: "You advanced in sword fighting"
I'm using for this TFS 0.3.6.
First open your project file and choose tools.cpp. It should look like this:
Then clik CTRL + F and find this:
After it you should see code like this:
Now you can change:
and
according to your needs.
Example:
Now just compile and you are done.
Then it will show in game "You advanced in sword skill." instead of "You advanced in sword fighting."
#edit
It's also works in items. I mean now on look on item it will say for example +5 sword skill.
I'll use for example: "You advanced in sword fighting"
I'm using for this TFS 0.3.6.
First open your project file and choose tools.cpp. It should look like this:
Then clik CTRL + F and find this:
Code:
case SKILL_SWORD:
Code:
case SKILL_SWORD:
{
std::string tmp = "sword";
if(suffix)
tmp += " fighting";
return tmp;
}
Code:
"sword"
Code:
" fighting"
Example:
Code:
case SKILL_SWORD:
{
std::string tmp = "sword";
if(suffix)
tmp += " skill";
return tmp;
}
Then it will show in game "You advanced in sword skill." instead of "You advanced in sword fighting."
#edit
It's also works in items. I mean now on look on item it will say for example +5 sword skill.
Last edited: