Mr.Stalin
Mildly Dipped
Yes, global script displays an additional message on the screen.Nirran posted an example global script years ago.
What if the macro is already included Swift Learner, global script will introduce some confusion when receiving the quest experiencedisplay_msg("You gain " + floor(math) + " experience from Swift Learner Perk.")
Code:
#define give_xp(x) give_exp_points(x); \
if has_trait(TRAIT_PERK, dude_obj, PERK_swift_learner) then \
global_temp:=x+(x*(5*(has_trait(TRAIT_PERK, dude_obj, PERK_swift_learner)))/100);\
else global_temp:=x; \
display_msg(message_str(SCRIPT_GENERIC,100)+global_temp+message_str(SCRIPT_GENERIC,101))
Last edited: