-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDurielClassesScript
More file actions
2196 lines (1974 loc) · 75.4 KB
/
DurielClassesScript
File metadata and controls
2196 lines (1974 loc) · 75.4 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
scriptName DurielClassesScript extends ObjectReference
; Variables are declared here ----------------------------------------------------------
int jobChoiceNumber = 0
bool jobSmith
bool jobEnchanter
bool jobAlchemist
bool jobAdventurer
bool jobMercenary
bool jobBard
bool jobMerchant
bool jobHunter
; Properties are declared here ---------------------------------------------------------
message property DurielClassesFirstMessage auto
message property DurielClassesFinalMessage auto
message property DurielClassesRaceMessage01 auto
message property DurielClassesRaceMessage02 auto
message property DurielClassesGenderMessage auto
message property DurielClassesChoiceMessage00 auto
message property DurielClassesChoiceMessage011 auto
message property DurielClassesChoiceMessage012 auto
message property DurielClassesChoiceMessage02 auto
message property DurielClassesChoiceMessage03 auto
message property DurielClassesChoiceMessage04 auto
message property DurielClassesChoiceMessage04Mage auto
message property DurielClassesJobMessage auto
message property DurielClassesJobMessageEmpty auto
message property DurielClassesJobDelete auto
message property DurielClassesJobMessageFull auto
message property DurielClassesWealthMessage auto
message property DurielClassesWealthConfirmation auto
message property DurielClasses01Enforcer auto
message property DurielClasses01EnforcerConfirmed auto
message property DurielClasses02Ranger auto
message property DurielClasses02RangerConfirmed auto
message property DurielClasses03Knight auto
message property DurielClasses03KnightConfirmed auto
message property DurielClasses04Berserker auto
message property DurielClasses04BerserkerConfirmed auto
message property DurielClasses05Samurai auto
message property DurielClasses05SamuraiConfirmed auto
message property DurielClasses06Swordmaster auto
message property DurielClasses06SwordmasterConfirmed auto
message property DurielClasses07Sniper auto
message property DurielClasses07SniperConfirmed auto
message property DurielClasses08Thief auto
message property DurielClasses08ThiefConfirmed auto
message property DurielClasses09Assassin auto
message property DurielClasses09AssassinConfirmed auto
message property DurielClasses10Ronin auto
message property DurielClasses10RoninConfirmed auto
message property DurielClasses11Templar auto
message property DurielClasses11TemplarConfirmed auto
message property DurielClasses12Paladin auto
message property DurielClasses12PaladinConfirmed auto
message property DurielClasses13DreadKnight auto
message property DurielClasses13DreadKnightConfirmed auto
message property DurielClasses14Duelist auto
message property DurielClasses14DuelistConfirmed auto
message property DurielClasses15NightBlade auto
message property DurielClasses15NightBladeConfirmed auto
message property DurielClasses16Monk auto
message property DurielClasses16MonkConfirmed auto
message property DurielClasses17Pilgrim auto
message property DurielClasses17PilgrimConfirmed auto
message property DurielClasses18NatureArcher auto
message property DurielClasses18NatureArcherConfirmed auto
message property DurielClasses19Priest auto
message property DurielClasses19PriestConfirmed auto
message property DurielClasses20Warlock auto
message property DurielClasses20WarlockConfirmed auto
message property DurielClasses21Mageknight auto
message property DurielClasses21MageknightConfirmed auto
message property DurielClasses22Battlemage auto
message property DurielClasses22BattlemageConfirmed auto
message property DurielClasses23Guardian auto
message property DurielClasses23GuardianConfirmed auto
message property DurielClasses24Witchhunter auto
message property DurielClasses24WitchhunterConfirmed auto
message property DurielClasses25Mage auto
message property DurielClasses25MageConfirmed auto
message property DurielClasses26Sage auto
message property DurielClasses26SageConfirmed auto
message property DurielClasses27Druid auto
message property DurielClasses27DruidConfirmed auto
message property DurielClasses28Necromancer auto
message property DurielClasses28NecromancerConfirmed auto
message property DurielClasses29Divinity auto
message property DurielClasses29DivinityConfirmed auto
message property DurielClasses001JobBlacksmith auto
message property DurielClasses001JobBlacksmithConfirmed auto
message property DurielClasses002JobEnchanter auto
message property DurielClasses002JobEnchanterConfirmed auto
message property DurielClasses003JobAlchemist auto
message property DurielClasses003JobAlchemistConfirmed auto
message property DurielClasses004JobAdventurer auto
message property DurielClasses004JobAdventurerConfirmed auto
message property DurielClasses005JobMercenary auto
message property DurielClasses005JobMercenaryConfirmed auto
message property DurielClasses006JobBard auto
message property DurielClasses006JobBardConfirmed auto
message property DurielClasses007JobMerchant auto
message property DurielClasses007JobMerchantConfirmed auto
message property DurielClasses008JobHunter auto
message property DurielClasses008JobHunterConfirmed auto
message property DurielClassesRaceAltmer auto
message property DurielClassesRaceBosmer auto
message property DurielClassesRaceDunmer auto
message property DurielClassesRaceKhajiit auto
message property DurielClassesRaceArgonian auto
message property DurielClassesRaceNord auto
message property DurielClassesRaceRedguard auto
message property DurielClassesRaceImperial auto
message property DurielClassesRaceBreton auto
message property DurielClassesRaceOrc auto
message property DurielClassesGenderMale auto
message property DurielClassesGenderFemale auto
spell property SparksSpell auto
spell property FurySpell auto
spell property ConjureFamiliarSpell auto
miscobject property Gold001 auto
miscobject property iLute auto
miscobject property IronIngot auto
miscobject property IronOre auto
miscobject property CorundumIngot auto
miscobject property SteelIngot auto
miscobject property Leather auto
miscobject property Tusk auto
miscobject property DeerHide auto
potion property Venison auto
potion property HorkerMeat auto
soulgem property GemPetty auto
soulgem property GemPettyFilled auto
soulgem property GemLesser auto
soulgem property GemLesserFilled auto
soulgem property GemGreater auto
soulgem property GemGreaterFilled auto
soulgem property GemGrand auto
soulgem property GemGrandFilled auto
ingredient property MountainFlowerBlue auto
ingredient property MountainFlowerPurple auto
ingredient property MountainFlowerRed auto
ingredient property Mush01 auto
ingredient property Mush02 auto
ingredient property Mush03 auto
ingredient property Mush04 auto
ingredient property Mush06 auto
ingredient property ingJazBay auto
ingredient property ingJuniperBerries auto
ingredient property ingNirnroot auto
ingredient property fishScales auto
ingredient property Cotton auto
ingredient property ingFireflyThorax auto
ingredient property Sap auto
ingredient property ingTaproot auto
ingredient property Antlers auto
armor property IronBoots auto
armor property IronCuirass auto
armor property IronGauntlets auto
armor property IronShield auto
armor property SteelBoots auto
armor property SteelCuirass auto
armor property SteelGauntlets auto
armor property SteelShield auto
armor property SteelHelmet auto
armor property SteelPlateBoots auto
armor property SteelPlateCuirass auto
armor property SteelPlateGauntlets auto
armor property SteelPlateHelmet auto
armor property LeatherBoots auto
armor property LeatherCuirass auto
armor property LeatherGauntlets auto
armor property LeatherHelmet auto
armor property ScaledBoots auto
armor property ScaledCuirass auto
armor property ScaledGauntlets auto
armor property ScaledHelmet auto
armor property BladesBoots auto
armor property BladesCuirass auto
armor property BladesGauntlets auto
armor property BladesHelmet auto
armor property HideBoots auto
armor property HideCuirass auto
armor property HideGauntlets auto
armor property HideShield auto
armor property EbonyShield auto
armor property MonkRobesRed auto
armor property ChefShoes auto
armor property MonkRobes auto
armor property MonkBoots auto
weapon property wIronSword auto
weapon property wIronGreatSword auto
weapon property wEbonySword auto
weapon property Katana auto
weapon property wIronDagger auto
weapon property wLongBow auto
weapon property wHuntingBow auto
weapon property CrossBow auto
ammo property aIronArrow auto
ammo property aSteelArrow auto
ammo property Bolt auto
book property TomeHealingHands auto
book property TomeBoundSword auto
book property TomeBoundBow auto
book property TomeFlames auto
book property TomeFrostbite auto
book property TomeSparks auto
book property TomeZombie auto
book property descBook auto
; Initialization function for when you open the book ------------------------------------
Event OnRead()
self.OnReading()
EndEvent
; This function will make a proper base for classes to be assigned ----------------------
function OnReading()
int firstButton = DurielClassesFirstMessage.show()
if firstButton == 0
; Here carryweight will be reduced by 100
game.Getplayer().modav("carryweight", -100)
; Here all skills will be set to 5
game.Getplayer().setav("illusion", 5)
game.Getplayer().setav("conjuration", 5)
game.Getplayer().setav("destruction", 5)
game.Getplayer().setav("restoration", 5)
game.Getplayer().setav("alteration", 5)
game.Getplayer().setav("enchanting", 5)
game.Getplayer().setav("smithing", 5)
game.Getplayer().setav("heavyarmor", 5)
game.Getplayer().setav("block", 5)
game.Getplayer().setav("lightarmor", 5)
game.Getplayer().setav("twohanded", 5)
game.Getplayer().setav("onehanded", 5)
game.Getplayer().setav("marksman", 5)
game.Getplayer().setav("sneak", 5)
game.Getplayer().setav("lockpicking", 5)
game.Getplayer().setav("pickpocket", 5)
game.Getplayer().setav("speechcraft", 5)
game.Getplayer().setav("alchemy", 5)
; Here the racial starting spells are removed ------------------------------------
game.Getplayer().removespell(SparksSpell)
game.Getplayer().removespell(FurySpell)
game.Getplayer().removespell(ConjureFamiliarSpell)
; Here the multipliers for regenerations are cut to 5 instead of 100 -------------
game.Getplayer().setav("healratemult", 5)
game.Getplayer().setav("staminaratemult", 5)
game.Getplayer().setav("magickaratemult", 5)
; Here all inventory items are removed -------------------------------------------
game.GetPlayer().removeallitems()
; And readd the book -------------------------------------------------------------
game.Getplayer().additem(descBook, 1,true)
; Function call to begin choose your class following RP needs --------------------
self.RaceMenu01(0)
else
game.Getplayer().additem(descBook, 1,true)
debug.messagebox("Ne tardez pas trop !")
endif
endFunction
; Here are the functions to choose if you want to confirm the race of the character -------
function RaceMenu01 (Int choiceButton)
choiceButton = DurielClassesRaceMessage01.Show()
if choiceButton == 0
self.Altmer(0)
elseif choiceButton == 1
self.Bosmer(0)
elseif choiceButton == 2
self.Dunmer(0)
elseif choiceButton == 3
self.Khajiit(0)
elseif choiceButton == 4
self.Argonian(0)
elseif choiceButton == 5
self.RaceMenu02(0)
endif
endFunction
function RaceMenu02 (Int choiceButton)
choiceButton = DurielClassesRaceMessage02.Show()
if choiceButton == 0
self.RaceMenu01(0)
elseif choiceButton == 1
self.Nord(0)
elseif choiceButton == 2
self.Redguard(0)
elseif choiceButton == 3
self.Imperial(0)
elseif choiceButton == 4
self.Breton(0)
elseif choiceButton == 5
self.Orc(0)
endif
endFunction
; Here are the race functions that are called on confirmation -----------------------------
function Altmer (Int ibutton)
; Bonus for this race are as follows --------------------------------------------------
game.Getplayer().setav("healratemult", 10)
game.Getplayer().setav("magickaratemult", 30)
game.Getplayer().setav("health", 120)
game.Getplayer().setav("stamina", 20)
game.Getplayer().setav("magicka", 210)
game.Getplayer().modav("carryweight", -70)
game.Getplayer().modav("unarmeddamage", 5)
game.Getplayer().setav("illusion", game.Getplayer().getav("illusion") + 10)
game.Getplayer().setav("conjuration", game.Getplayer().getav("conjuration") + 5)
game.Getplayer().setav("destruction", game.Getplayer().getav("destruction") + 5)
game.Getplayer().setav("alteration", game.Getplayer().getav("alteration") + 5)
game.Getplayer().setav("restoration", game.Getplayer().getav("restoration") + 5)
game.Getplayer().setav("enchanting", game.Getplayer().getav("enchanting") + 5)
game.Getplayer().modav("destructionmod", 50)
game.Getplayer().modav("restorationmod", 50)
game.Getplayer().modav("alterationmod", 50)
game.Getplayer().modav("conjurationmod", 50)
game.Getplayer().modav("illusionmod", 50)
ibutton = DurielClassesRaceAltmer.Show()
if ibutton == 0
self.GenderMenu(0)
endif
endFunction
function Bosmer (Int ibutton)
; Bonus for this race are as follows --------------------------------------------------
game.Getplayer().setav("healratemult", 10)
game.Getplayer().setav("staminaratemult", 20)
game.Getplayer().setav("magickaratemult", 15)
game.Getplayer().setav("health", 90)
game.Getplayer().setav("stamina", 120)
game.Getplayer().setav("magicka", 90)
game.Getplayer().modav("carryweight", -50)
game.Getplayer().modav("unarmeddamage", 5)
game.Getplayer().setav("marksman", game.Getplayer().getav("marksman") + 10)
game.Getplayer().setav("sneak", game.Getplayer().getav("sneak") + 5)
game.Getplayer().setav("lockpicking", game.Getplayer().getav("lockpicking") + 5)
game.Getplayer().setav("pickpocket", game.Getplayer().getav("pickpocket") + 5)
game.Getplayer().setav("lightarmor", game.Getplayer().getav("lightarmor") + 5)
game.Getplayer().setav("alchemy", game.Getplayer().getav("alchemy") + 5)
game.Getplayer().modav("destructionmod", 10)
game.Getplayer().modav("restorationmod", 10)
game.Getplayer().modav("alterationmod", 10)
game.Getplayer().modav("conjurationmod", 10)
game.Getplayer().modav("illusionmod", 10)
ibutton = DurielClassesRaceBosmer.Show()
if ibutton == 0
self.GenderMenu(0)
endif
endFunction
function Dunmer (Int ibutton)
; Bonus for this race are as follows --------------------------------------------------
game.Getplayer().setav("healratemult", 15)
game.Getplayer().setav("staminaratemult", 10)
game.Getplayer().setav("magickaratemult", 20)
game.Getplayer().setav("health", 90)
game.Getplayer().setav("stamina", 70)
game.Getplayer().setav("magicka", 140)
game.Getplayer().modav("carryweight", -30)
game.Getplayer().modav("unarmeddamage", 5)
game.Getplayer().setav("destruction", game.Getplayer().getav("destruction") + 10)
game.Getplayer().setav("sneak", game.Getplayer().getav("sneak") + 5)
game.Getplayer().setav("illusion", game.Getplayer().getav("illusion") + 5)
game.Getplayer().setav("alteration", game.Getplayer().getav("alteration") + 5)
game.Getplayer().setav("lightarmor", game.Getplayer().getav("lightarmor") + 5)
game.Getplayer().setav("alchemy", game.Getplayer().getav("alchemy") + 5)
game.Getplayer().modav("destructionmod", 30)
game.Getplayer().modav("restorationmod", 30)
game.Getplayer().modav("alterationmod", 30)
game.Getplayer().modav("conjurationmod", 30)
game.Getplayer().modav("illusionmod", 30)
ibutton = DurielClassesRaceDunmer.Show()
if ibutton == 0
self.GenderMenu(0)
endif
endFunction
function Khajiit (Int ibutton)
; Bonus for this race are as follows --------------------------------------------------
game.Getplayer().setav("healratemult", 20)
game.Getplayer().setav("staminaratemult", 15)
game.Getplayer().setav("magickaratemult", 10)
game.Getplayer().setav("health", 120)
game.Getplayer().setav("stamina", 120)
game.Getplayer().setav("magicka", 60)
game.Getplayer().modav("carryweight", 20)
game.Getplayer().modav("unarmeddamage", 10)
game.Getplayer().setav("sneak", game.Getplayer().getav("sneak") + 10)
game.Getplayer().setav("marksman", game.Getplayer().getav("marksman") + 5)
game.Getplayer().setav("onehanded", game.Getplayer().getav("onehanded") + 5)
game.Getplayer().setav("lockpicking", game.Getplayer().getav("lockpicking") + 5)
game.Getplayer().setav("pickpocket", game.Getplayer().getav("pickpocket") + 5)
game.Getplayer().setav("alchemy", game.Getplayer().getav("alchemy") + 5)
ibutton = DurielClassesRaceKhajiit.Show()
if ibutton == 0
self.GenderMenu(0)
endif
endFunction
function Argonian (Int ibutton)
; Bonus for this race are as follows --------------------------------------------------
game.Getplayer().setav("healratemult", 20)
game.Getplayer().setav("staminaratemult", 15)
game.Getplayer().setav("magickaratemult", 10)
game.Getplayer().setav("health", 140)
game.Getplayer().setav("stamina", 120)
game.Getplayer().setav("magicka", 40)
game.Getplayer().modav("carryweight", 20)
game.Getplayer().modav("unarmeddamage", 15)
game.Getplayer().setav("lockpicking", game.Getplayer().getav("lockpicking") + 10)
game.Getplayer().setav("sneak", game.Getplayer().getav("sneak") + 5)
game.Getplayer().setav("restoration", game.Getplayer().getav("restoration") + 5)
game.Getplayer().setav("alteration", game.Getplayer().getav("alteration") + 5)
game.Getplayer().setav("pickpocket", game.Getplayer().getav("pickpocket") + 5)
game.Getplayer().setav("lightarmor", game.Getplayer().getav("lightarmor") + 5)
ibutton = DurielClassesRaceArgonian.Show()
if ibutton == 0
self.GenderMenu(0)
endif
endFunction
function Nord (Int ibutton)
; Bonus for this race are as follows --------------------------------------------------
game.Getplayer().setav("healratemult", 20)
game.Getplayer().setav("staminaratemult", 20)
game.Getplayer().setav("magickaratemult", 5)
game.Getplayer().setav("health", 150)
game.Getplayer().setav("stamina", 130)
game.Getplayer().setav("magicka", 20)
game.Getplayer().modav("carryweight", 50)
game.Getplayer().modav("unarmeddamage", 15)
game.Getplayer().setav("twohanded", game.Getplayer().getav("twohanded") + 10)
game.Getplayer().setav("onehanded", game.Getplayer().getav("onehanded") + 5)
game.Getplayer().setav("smithing", game.Getplayer().getav("smithing") + 5)
game.Getplayer().setav("lightarmor", game.Getplayer().getav("lightarmor") + 5)
game.Getplayer().setav("block", game.Getplayer().getav("block") + 5)
game.Getplayer().setav("speechcraft", game.Getplayer().getav("speechcraft") + 5)
game.Getplayer().modav("smithingpowermod", 10)
ibutton = DurielClassesRaceNord.Show()
if ibutton == 0
self.GenderMenu(0)
endif
endFunction
function Redguard (Int ibutton)
; Bonus for this race are as follows --------------------------------------------------
game.Getplayer().setav("healratemult", 15)
game.Getplayer().setav("staminaratemult", 20)
game.Getplayer().setav("magickaratemult", 10)
game.Getplayer().setav("health", 110)
game.Getplayer().setav("stamina", 130)
game.Getplayer().setav("magicka", 60)
game.Getplayer().modav("carryweight", 40)
game.Getplayer().modav("unarmeddamage", 12)
game.Getplayer().setav("onehanded", game.Getplayer().getav("onehanded") + 10)
game.Getplayer().setav("marksman", game.Getplayer().getav("marksman") + 5)
game.Getplayer().setav("smithing", game.Getplayer().getav("smithing") + 5)
game.Getplayer().setav("alteration", game.Getplayer().getav("alteration") + 5)
game.Getplayer().setav("block", game.Getplayer().getav("block") + 5)
game.Getplayer().setav("destruction", game.Getplayer().getav("destruction") + 5)
game.Getplayer().modav("smithingpowermod", 10)
ibutton = DurielClassesRaceRedguard.Show()
if ibutton == 0
self.GenderMenu(0)
endif
endFunction
function Imperial (Int ibutton)
; Bonus for this race are as follows --------------------------------------------------
game.Getplayer().setav("healratemult", 20)
game.Getplayer().setav("staminaratemult", 15)
game.Getplayer().setav("magickaratemult", 10)
game.Getplayer().setav("health", 120)
game.Getplayer().setav("stamina", 90)
game.Getplayer().setav("magicka", 90)
game.Getplayer().modav("carryweight", 30)
game.Getplayer().modav("unarmeddamage", 15)
game.Getplayer().setav("restoration", game.Getplayer().getav("restoration") + 10)
game.Getplayer().setav("onehanded", game.Getplayer().getav("onehanded") + 5)
game.Getplayer().setav("enchanting", game.Getplayer().getav("enchanting") + 5)
game.Getplayer().setav("heavyarmor", game.Getplayer().getav("heavyarmor") + 5)
game.Getplayer().setav("destruction", game.Getplayer().getav("destruction") + 5)
game.Getplayer().setav("block", game.Getplayer().getav("block") + 5)
game.Getplayer().modav("restorationmod", 20)
ibutton = DurielClassesRaceImperial.Show()
if ibutton == 0
self.GenderMenu(0)
endif
endFunction
function Breton (Int ibutton)
; Bonus for this race are as follows --------------------------------------------------
game.Getplayer().setav("healratemult", 15)
game.Getplayer().setav("staminaratemult", 10)
game.Getplayer().setav("magickaratemult", 20)
game.Getplayer().setav("health", 90)
game.Getplayer().setav("stamina", 70)
game.Getplayer().setav("magicka", 140)
game.Getplayer().modav("unarmeddamage", 10)
game.Getplayer().setav("conjuration", game.Getplayer().getav("conjuration") + 10)
game.Getplayer().setav("speechcraft", game.Getplayer().getav("speechcraft") + 5)
game.Getplayer().setav("alchemy", game.Getplayer().getav("alchemy") + 5)
game.Getplayer().setav("alteration", game.Getplayer().getav("alteration") + 5)
game.Getplayer().setav("illusion", game.Getplayer().getav("illusion") + 5)
game.Getplayer().setav("restoration", game.Getplayer().getav("restoration") + 5)
game.Getplayer().modav("destructionmod", 20)
game.Getplayer().modav("restorationmod", 20)
game.Getplayer().modav("alterationmod", 20)
game.Getplayer().modav("conjurationmod", 20)
game.Getplayer().modav("illusionmod", 20)
ibutton = DurielClassesRaceBreton.Show()
if ibutton == 0
self.GenderMenu(0)
endif
endFunction
function Orc (Int ibutton)
; Bonus for this race are as follows --------------------------------------------------
game.Getplayer().setav("healratemult", 25)
game.Getplayer().setav("staminaratemult", 15)
game.Getplayer().setav("magickaratemult", 5)
game.Getplayer().setav("health", 160)
game.Getplayer().setav("stamina", 120)
game.Getplayer().setav("magicka", 20)
game.Getplayer().modav("carryweight", 80)
game.Getplayer().modav("unarmeddamage", 20)
game.Getplayer().setav("onehanded", game.Getplayer().getav("onehanded") + 10)
game.Getplayer().setav("marksman", game.Getplayer().getav("marksman") + 5)
game.Getplayer().setav("smithing", game.Getplayer().getav("smithing") + 5)
game.Getplayer().setav("alteration", game.Getplayer().getav("alteration") + 5)
game.Getplayer().setav("block", game.Getplayer().getav("block") + 5)
game.Getplayer().setav("destruction", game.Getplayer().getav("destruction") + 5)
game.Getplayer().modav("smithingpowermod", 30)
ibutton = DurielClassesRaceOrc.Show()
if ibutton == 0
self.GenderMenu(0)
endif
endFunction
; Here are the gender choice functions ---------------------------------------------------
function GenderMenu (Int choiceButton)
choiceButton = DurielClassesGenderMessage.Show(0)
if choiceButton == 0
DurielClassesGenderMale.Show()
game.Getplayer().modav("carryweight", 20)
game.Getplayer().modav("unarmeddamage", 2)
self.ClassMenu(0)
elseif choiceButton == 1
DurielClassesGenderFemale.Show()
game.Getplayer().modav("carryweight", -20)
game.Getplayer().modav("unarmeddamage", -2)
self.ClassMenu(0)
endif
endFunction
; Here are the class functions -----------------------------------------------------------
function ClassMenu (Int choiceButton)
choiceButton = DurielClassesChoiceMessage00.Show()
if choiceButton == 0
self.Force(0)
elseif choiceButton == 1
self.Agility(0)
elseif choiceButton == 2
self.PhysMag(0)
elseif choiceButton == 3
self.MagPhys(0)
elseif choiceButton == 4
self.Magic(0)
endif
endFunction
; Functions for class branches -----------------------------------------------------------
function Force (Int choiceButton)
choiceButton = DurielClassesChoiceMessage011.Show()
if choiceButton == 0
choiceButton = DurielClasses01Enforcer.Show()
if choiceButton == 0
self.Enforcer(0)
elseif choiceButton == 1
self.Force(0)
endif
elseif choiceButton == 1
choiceButton = DurielClasses02Ranger.Show()
if choiceButton == 0
self.Ranger(0)
elseif choiceButton == 1
self.Force(0)
endif
elseif choiceButton == 2
choiceButton = DurielClasses03Knight.Show()
if choiceButton == 0
self.Knight(0)
elseif choiceButton == 1
self.Force(0)
endif
elseif choiceButton == 3
choiceButton = DurielClasses04Berserker.Show()
if choiceButton == 0
self.Berserker(0)
elseif choiceButton == 1
self.Force(0)
endif
elseif choiceButton == 4
choiceButton = DurielClasses05Samurai.Show()
if choiceButton == 0
self.Samurai(0)
elseif choiceButton == 1
self.Force(0)
endif
elseif choiceButton == 5
self.ClassMenu(0)
endif
endFunction
function Agility (Int choiceButton)
choiceButton = DurielClassesChoiceMessage012.Show()
if choiceButton == 0
choiceButton = DurielClasses06Swordmaster.Show()
if choiceButton == 0
self.Swordmaster(0)
elseif choiceButton == 1
self.Agility(0)
endif
elseif choiceButton == 1
choiceButton = DurielClasses07Sniper.Show()
if choiceButton == 0
self.Sniper(0)
elseif choiceButton == 1
self.Agility(0)
endif
elseif choiceButton == 2
choiceButton = DurielClasses08Thief.Show()
if choiceButton == 0
self.Thief(0)
elseif choiceButton == 1
self.Agility(0)
endif
elseif choiceButton == 3
choiceButton = DurielClasses09Assassin.Show()
if choiceButton == 0
self.Assassin(0)
elseif choiceButton == 1
self.Agility(0)
endif
elseif choiceButton == 4
choiceButton = DurielClasses10Ronin.Show()
if choiceButton == 0
self.Ronin(0)
elseif choiceButton == 1
self.Agility(0)
endif
elseif choiceButton == 5
self.ClassMenu(0)
endif
endFunction
function PhysMag (Int choiceButton)
choiceButton = DurielClassesChoiceMessage02.Show()
if choiceButton == 0
choiceButton = DurielClasses11Templar.Show()
if choiceButton == 0
self.Templar(0)
elseif choiceButton == 1
self.PhysMag(0)
endif
elseif choiceButton == 1
choiceButton = DurielClasses12Paladin.Show()
if choiceButton == 0
self.Paladin(0)
elseif choiceButton == 1
self.PhysMag(0)
endif
elseif choiceButton == 2
choiceButton = DurielClasses13DreadKnight.Show()
if choiceButton == 0
self.DreadKnight(0)
elseif choiceButton == 1
self.PhysMag(0)
endif
elseif choiceButton == 3
choiceButton = DurielClasses14Duelist.Show()
if choiceButton == 0
self.Duelist(0)
elseif choiceButton == 1
self.PhysMag(0)
endif
elseif choiceButton == 4
choiceButton = DurielClasses15NightBlade.Show()
if choiceButton == 0
self.NightBlade(0)
elseif choiceButton == 1
self.PhysMag(0)
endif
elseif choiceButton == 5
choiceButton = DurielClasses16Monk.Show()
if choiceButton == 0
self.Monk(0)
elseif choiceButton == 1
self.PhysMag(0)
endif
elseif choiceButton == 6
choiceButton = DurielClasses17Pilgrim.Show()
if choiceButton == 0
self.Pilgrim(0)
elseif choiceButton == 1
self.PhysMag(0)
endif
elseif choiceButton == 7
self.ClassMenu(0)
endif
endFunction
function MagPhys (Int choiceButton)
choiceButton = DurielClassesChoiceMessage03.Show()
if choiceButton == 0
choiceButton = DurielClasses18NatureArcher.Show()
if choiceButton == 0
self.NatureArcher(0)
elseif choiceButton == 1
self.MagPhys(0)
endif
elseif choiceButton == 1
choiceButton = DurielClasses19Priest.Show()
if choiceButton == 0
self.Priest(0)
elseif choiceButton == 1
self.MagPhys(0)
endif
elseif choiceButton == 2
choiceButton = DurielClasses20Warlock.Show()
if choiceButton == 0
self.Warlock(0)
elseif choiceButton == 1
self.MagPhys(0)
endif
elseif choiceButton == 3
choiceButton = DurielClasses21Mageknight.Show()
if choiceButton == 0
self.Mageknight(0)
elseif choiceButton == 1
self.MagPhys(0)
endif
elseif choiceButton == 4
choiceButton = DurielClasses22Battlemage.Show()
if choiceButton == 0
self.Battlemage(0)
elseif choiceButton == 1
self.MagPhys(0)
endif
elseif choiceButton == 5
choiceButton = DurielClasses23Guardian.Show()
if choiceButton == 0
self.Guardian(0)
elseif choiceButton == 1
self.MagPhys(0)
endif
elseif choiceButton == 6
choiceButton = DurielClasses24Witchhunter.Show()
if choiceButton == 0
self.Witchhunter(0)
elseif choiceButton == 1
self.MagPhys(0)
endif
elseif choiceButton == 7
self.ClassMenu(0)
endif
endFunction
function Magic (Int choiceButton)
choiceButton = DurielClassesChoiceMessage04.Show()
if choiceButton == 0
choiceButton = DurielClasses25Mage.Show()
if choiceButton == 0
self.Mage(0)
elseif choiceButton == 1
self.Magic(0)
endif
elseif choiceButton == 1
choiceButton = DurielClasses26Sage.Show()
if choiceButton == 0
self.Sage(0)
elseif choiceButton == 1
self.Magic(0)
endif
elseif choiceButton == 2
choiceButton = DurielClasses27Druid.Show()
if choiceButton == 0
self.Druid(0)
elseif choiceButton == 1
self.Magic(0)
endif
elseif choiceButton == 3
choiceButton = DurielClasses28Necromancer.Show()
if choiceButton == 0
self.Necromancer(0)
elseif choiceButton == 1
self.Magic(0)
endif
elseif choiceButton == 4
choiceButton = DurielClasses29Divinity.Show()
if choiceButton == 0
self.Divinity(0)
elseif choiceButton == 1
self.Magic(0)
endif
elseif choiceButton == 5
self.ClassMenu(0)
endif
endFunction
; Functions for classes ------------------------------------------------------------------
function Enforcer (Int ibutton)
; Class bonus are as follows ---------------------------------------------------------
game.Getplayer().modav("twohanded", 20)
game.Getplayer().modav("heavyarmor", 20)
game.Getplayer().modav("marksman", 20)
game.Getplayer().setav("health", game.Getplayer().getav("health") + 20)
game.Getplayer().setav("stamina", game.Getplayer().getav("stamina") + 40)
; Class penalties are as follows -----------------------------------------------------
game.Getplayer().modav("pickpocket", -10)
game.Getplayer().modav("sneak", -10)
game.Getplayer().modav("block", -10)
; Class skills are the following -----------------------------------------------------
game.Getplayer().modav("speedmult", -20) ; Slow Walk
game.Getplayer().setav("reflectdamage", 50) ; Thorn Shell
game.Getplayer().modav("twohandedpowermod", 50) ; Heavy Weaponry Training
game.Getplayer().modav("damageresist", 200) ; Steel Skin
; Class starting items are the following ---------------------------------------------
game.Getplayer().additem(SteelBoots, 1, true)
game.Getplayer().additem(SteelCuirass, 1, true)
game.Getplayer().additem(SteelGauntlets, 1, true)
game.Getplayer().additem(SteelHelmet, 1, true)
ibutton = DurielClasses01EnforcerConfirmed.Show()
if ibutton == 0
self.JobMenu(0)
endif
endFunction
function Ranger (Int ibutton)
; Class bonus are as follows ---------------------------------------------------------
game.Getplayer().modav("marksman", 20)
game.Getplayer().modav("lightarmor", 15)
game.Getplayer().modav("onehanded", 15)
game.Getplayer().modav("block", 10)
game.Getplayer().setav("health", game.Getplayer().getav("health") + 30)
game.Getplayer().setav("stamina", game.Getplayer().getav("stamina") + 30)
; Class penalties are as follows -----------------------------------------------------
game.Getplayer().modav("destruction", -10)
game.Getplayer().modav("twohanded", -10)
game.Getplayer().modav("heavyarmor", -10)
; Class skills are the following -----------------------------------------------------
game.Getplayer().modav("speedmult", 20) ; Fast Walk
game.Getplayer().setav("blockpowermod", 20) ; Solid Guard
game.Getplayer().modav("attackdamagemult", 1.20) ; Natural Force
; Class starting items are the following ---------------------------------------------
game.Getplayer().additem(LeatherBoots, 1, true)
game.Getplayer().additem(LeatherCuirass, 1, true)
game.Getplayer().additem(LeatherGauntlets, 1, true)
game.Getplayer().additem(HideShield, 1, true)
ibutton = DurielClasses02RangerConfirmed.Show()
if ibutton == 0
self.JobMenu(0)
endif
endFunction
function Knight (Int ibutton)
; Class bonus are as follows ---------------------------------------------------------
game.Getplayer().modav("twohanded", 15)
game.Getplayer().modav("onehanded", 15)
game.Getplayer().modav("lightarmor", 10)
game.Getplayer().modav("heavyarmor", 10)
game.Getplayer().modav("block", 10)
game.Getplayer().setav("health", game.Getplayer().getav("health") + 20)
game.Getplayer().setav("stamina", game.Getplayer().getav("stamina") + 40)
; Class penalties are as follows -----------------------------------------------------
game.Getplayer().modav("destruction", -5)
game.Getplayer().modav("illusion", -5)
game.Getplayer().modav("alteration", -5)
game.Getplayer().modav("conjuration", -5)
game.Getplayer().modav("restoration", -5)
game.Getplayer().modav("pickpocket", -5)
; Class skills are the following -----------------------------------------------------
game.Getplayer().setav("blockpowermod", 50) ; Aegis
game.Getplayer().modav("weaponspeedmult", 0.3) ;
game.Getplayer().modav("leftweaponspeedmult", 0.3) ; Reflexes
game.Getplayer().modav("twohandedpowermod", 30) ;
game.Getplayer().modav("onehandedpowermod", 30) ; Justice Strength
; Class starting items are the following ---------------------------------------------
game.Getplayer().additem(IronBoots, 1, true)
game.Getplayer().additem(IronCuirass, 1, true)
game.Getplayer().additem(IronGauntlets, 1, true)
game.Getplayer().additem(IronShield, 1, true)
game.Getplayer().additem(wIronSword, 1, true)
ibutton = DurielClasses03KnightConfirmed.Show()
if ibutton == 0
self.JobMenu(0)
endif
endFunction
function Berserker (Int ibutton)
; Class bonus are as follows ---------------------------------------------------------
game.Getplayer().modav("twohanded", 20)
game.Getplayer().modav("onehanded", 20)
game.Getplayer().modav("lightarmor", 20)
game.Getplayer().setav("health", game.Getplayer().getav("health") + 40)
game.Getplayer().setav("stamina", game.Getplayer().getav("stamina") + 20)
; Class penalties are as follows -----------------------------------------------------
game.Getplayer().modav("destruction", -5)
game.Getplayer().modav("illusion", -5)
game.Getplayer().modav("conjuration", -5)
game.Getplayer().modav("restoration", -5)
game.Getplayer().modav("block", -5)
game.Getplayer().modav("marksman", -5)
; Class skills are the following -----------------------------------------------------
game.Getplayer().modav("attackdamagemult", 1.50) ; Brute Force
game.Getplayer().setav("health", game.Getplayer().getav("health") + 100); Vitality
game.Getplayer().modav("critchance", 20) ; Brutal Aim
game.Getplayer().modav("twohandedpowermod", 25) ; Muscular Balance
; Class starting items are the following ---------------------------------------------
game.Getplayer().additem(ScaledBoots, 1, true)
game.Getplayer().additem(ScaledCuirass, 1, true)
game.Getplayer().additem(ScaledGauntlets, 1, true)
game.Getplayer().additem(ScaledHelmet, 1, true)