Welcome to the Builder Academy

Question Separating out Skills and Spells to two different functions

More
21 Nov 2024 22:26 - 21 Nov 2024 22:27 #10449 by zi
YES! adding sort_skills(); to db.c was the key.  THANK YOU THOMAS!

Here's what my output looks like
Code:
> programs   --- [PROGRAM DATABASE] --- animate dead         -----------------[+] armor                -----------------[+] bless                -----------------[+] blindness            -----------------[+] burning hands        -----------------[+] call lightning       -----------------[+] charm person         -----------------[+] chill touch          -----------------[+] clone                -----------------[+] color spray          -----------------[+] control weather      -----------------[+] create food          -----------------[+] create water         -----------------[+] cure blind           -----------------[+] cure critic          -----------------[+] cure light           -----------------[+] curse                -----------------[+] darkness             -----------------[+] detect alignment     -----------------[+] detect invisibility  -----------------[+] detect magic         -----------------[+] detect poison        -----------------[+] dispel evil          -----------------[+] dispel good          -----------------[+] earthquake           -----------------[+] enchant weapon       -----------------[+] energy drain         -----------------[+] fireball             -----------------[+] fly                  -----------------[+] group armor          -----------------[+] group heal           -----------------[+] harm                 -----------------[+] heal                 -----------------[+] identify             -----------------[+] infravision          -----------------[+] invisibility         -----------------[+] lightning bolt       -----------------[+] locate object        -----------------[+] magic missile        -----------------[+] poison               -----------------[+] protection from evil -----------------[+] remove curse         -----------------[+] remove poison        -----------------[+] sanctuary            -----------------[+] sense life           -----------------[+] shocking grasp       -----------------[+] sleep                -----------------[+] strength             -----------------[+] summon               -----------------[+] teleport             -----------------[+] waterwalk            -----------------[+] word of recall       -----------------[+]     - You have 0 downloads available - > ssss (this is my temp "skill" call)   --- [SKILL DATABASE] --- backstab             -----------------[+] bandage              -----------------[+] bash                 -----------------[+] fourth attack        -----------------[+] hide                 -----------------[+] kick                 -----------------[+] pick lock            -----------------[+] rescue               -----------------[+] second attack        -----------------[+] sneak                -----------------[+] steal                -----------------[+] third attack         -----------------[+] track                -----------------[+] whirlwind            -----------------[+]     - You have 0 practices available -


NOW I can have my tech classes train up and view spells (programs) with one call and the fighting/hands on stuff with another (skills).

_,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,_
Making 3M Great Again!
telnet://3m.funcity.org:3000
_,.-'~'-.,__,.-'~'-.,__,.-'~'-.,__,.-'~'-.,_
Last edit: 21 Nov 2024 22:27 by zi. Reason: pretend the formatting works for the output, it does IRL ;)

Please Log in or Create an account to join the conversation.

Time to create page: 0.362 seconds