okay so i was amaze on how kaimonkey's MP script. the way of having different MP per class... however, i was expecting that it is still the same mp just renamed vocab mp and vocab mp_a... so why not make it quite simplier without the different potion usage...
how to use so how to use it? you can refer to my other scripts but to say it here, i uses hash most for the modules... so quite easy to use...
credit goes to me and some to kaimonkey for the idea...
here comes the script Scripts
Copy this into a new place on your scripts... preferable below all...
script
CODE
#ASCIIgod rename MP Vocab each class Lv:3 # # a simpler MP rename script without the same function as the one in the net # # Lv:1 = Initial coding. Name Functions # Lv:2 = choose from 2 characters or name # Lv:3 = recoulor gauges depending on what you chooses ################################################################################
def draw_actor_mp(actor, x, y, width = 120) draw_actor_mp_gauge(actor, x, y, width) self.contents.font.color = system_color case ASCIIGOD::RENAME_MP::TYPE_NAME when 0 text = ASCIIGOD::RENAME_MP::NAME_MP_CLASS_A[actor.class.id] when 1 text = ASCIIGOD::RENAME_MP::NAME_MP_CLASS[actor.class.id] else text = ASCIIGOD::RENAME_MP::NAME_MP_CLASS[actor.class.id] end
self.contents.draw_text(x, y, 30, WLH, text) self.contents.font.color = mp_color(actor) last_font_size = self.contents.font.size xr = x + width if width < 120 self.contents.draw_text(xr - 44, y, 44, WLH, actor.mp, 2) else self.contents.draw_text(xr - 99, y, 44, WLH, actor.mp, 2) self.contents.font.color = normal_color self.contents.draw_text(xr - 55, y, 11, WLH, "/", 2) self.contents.draw_text(xr - 44, y, 44, WLH, actor.maxmp, 2) end end
def draw_actor_mp_gauge(actor, x, y, width = 120) gw = width * actor.mp / [actor.maxmp, 1].max gc1 = text_color(ASCIIGOD::RENAME_MP::GAUGE_COULOR_1[actor.class.id]) gc2 = text_color(ASCIIGOD::RENAME_MP::GAUGE_COULOR_2[actor.class.id]) self.contents.fill_rect(x, y + WLH - 8, width, 6, gauge_back_color) self.contents.gradient_fill_rect(x, y + WLH - 8, gw, 6, gc1, gc2) end end
Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed
You know, it would be easier to make your script use the default value and only replace it if an entry exists, rather than forcing the user to fill a name for all the classes.
__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.
as i said the basis is kaimonkey's mp script but i omitted the feature of using different potions since what kaimonkey's script does is like this, rename the vocab mp and vocab mp_a and why i did not make the way you expected kread is that some class uses the same material for casting spells like for example, a wizard gather mana particle around his surrounding converting it to elemental particles but a necromancer gather mana just to convert into negative life force(zombie lifeforce if you put it that way)