• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to remove description if monster is level 0?

I just used chatgpt for this one so...

Certainly! If you want to display the level information only when the level is greater than or equal to 1, you can use an if statement to conditionally include the level information in the string. Here's an example in C++:

Lua:
if (level >= 1) {
return strDescription + ", it is level " + std::to_string(level) + '.';
} else {
return strDescription;
}

This code checks if the level is greater than or equal to 1. If it is, it includes the level information in the string; otherwise, it just returns the strDescription without the level information.
 
Back
Top