1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// TMW-2 Script
// Author:
// Jesusalva
// Description:
// Rebirth Utilities
// ChooseTrait()
function script ChooseTrait {
mesc l("Please select a trait.");
mesc l("This choice CANNOT be undone later."), 1;
menuint
l("Cancel"), 0,
rif(!(PCBONUS & PCB_ATKBONUS), l("Atk +25")), PCB_ATKBONUS,
rif(!(PCBONUS & PCB_DEFBONUS), l("Def +20")), PCB_DEFBONUS,
rif(!(PCBONUS & PCB_EVDBONUS), l("Evasion +20")), PCB_EVDBONUS,
rif(!(PCBONUS & PCB_HITBONUS), l("Accuracy +25")), PCB_HITBONUS,
rif(!(PCBONUS & PCB_HPBONUS), l("HP +500")), PCB_HPBONUS,
rif(!(PCBONUS & PCB_MPBONUS), l("MP +200")), PCB_MPBONUS,
rif(#TUTORIAL_DONE && !(PCBONUS & PCB_MATKBONUS), l("Matk +25")), PCB_MATKBONUS,
rif(#TUTORIAL_DONE && !(PCBONUS & PCB_MDEFBONUS), l("MDEF +10")), PCB_MDEFBONUS,
rif(#TUTORIAL_DONE && !(PCBONUS & PCB_CRITBONUS), l("Crit +5%")), PCB_CRITBONUS,
rif(#TUTORIAL_DONE && !(PCBONUS & PCB_DOUBLEATK), l("Double Attack +5%")), PCB_DOUBLEATK,
rif(#TUTORIAL_DONE && !(PCBONUS & PCB_ALLSTATS), l("All Stats +1")), PCB_ALLSTATS,
rif(#TUTORIAL_DONE && !(PCBONUS & PCB_ASPDBONUS), l("Atk. Speed +10")), PCB_ASPDBONUS,
rif(#TUTORIAL_DONE && !(PCBONUS & PCB_WSPDBONUS), l("Walk +5%")), PCB_WSPDBONUS,
rif(#TUTORIAL_DONE && !(PCBONUS & PCB_WEIGHTBONUS), l("Max Weight +1kg")), PCB_WEIGHTBONUS,
rif(#TUTORIAL_DONE && !(PCBONUS & PCB_EXPBONUS), l("EXP Gain +10%")), PCB_EXPBONUS,
rif(#TUTORIAL_DONE && !(PCBONUS & PCB_NOKNOCKBACK), l("Knockback Immunity")), PCB_NOKNOCKBACK,
rif(REBIRTH && !(PCBONUS & PCB_SPLASHMASTER), l("AoE (not stackable)")), PCB_SPLASHMASTER,
rif(REBIRTH && !(PCBONUS & PCB_RANGEMASTER), l("Atk Range +1")), PCB_RANGEMASTER,
rif(REBIRTH >= 5 && !(PCBONUS & PCB_LEGENDARY), l("No penalty against Legendary mobs")), PCB_LEGENDARY;
if (@menuret == 0) return false;
PCBONUS=PCBONUS|@menuret;
return true;
}
|