From 5a597ebb8adeeb524b650b482a5835f0b90b7259 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 16 Oct 2018 22:45:22 -0300 Subject: Create a get_race() function. This way, if l() breaks stuff, I can remove it. --- npc/functions/main.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'npc/functions/main.txt') diff --git a/npc/functions/main.txt b/npc/functions/main.txt index 9446d218b..b1777cb3d 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -92,6 +92,11 @@ function script mesc { return; } +function script get_race { + .@g=getarg(0, Class); + return l($@allraces$[.@g]); +} + // Function to show narrator text. Accepts string args. // If first arg is a number N, then it represents bit flags. // Bit flags : -- cgit v1.2.3-70-g09d2