home *** CD-ROM | disk | FTP | other *** search
- // RPGCRE01.ACS -- RPGCREAT.WAD script file for MAP01
- #define X_MapID 1
- #include "rpglib.acs"
-
- #define I_SetClass 51
- #define I_UnBar 52
- #define I_TeleportPlayer 53
- #define I_RandStat 54
- #define I_ReviewStats 55
- #define O_SetStats 240
-
- #define L_Teleport_1 1
- #define L_Bars 2
-
- #define T_T_1 1
-
- int Class;
-
- script I_SetClass (int ClassNum) {
- ACS_Execute(C_FTalkOn,X_MapID,0,0,0);
- Class = ClassNum;
- switch(Class) {
- case CLASS_Fighter: print(s: "YOU HAVE CHOSEN THE WAY OF THE FIGHTER!"); break;
- case CLASS_Mage: print(s: "YOU HAVE CHOSEN THE WAY OF THE MAGE!"); break;
- case CLASS_Cleric: print(s: "YOU HAVE CHOSEN THE WAY OF THE CLERIC!"); break;
- };
- setlinespecial(L_Teleport_1, SS_Teleport, T_T_1, 0, 0, 0, 0);
- setlinespecial(L_Bars, SS_UsePuzzleItem, 10+Class, I_UnBar, 0, 0, 0);
- delay(35);
- ACS_Execute(C_FTalkOff,X_MapID,0,0,0);
- }
-
- script I_Unbar (void) {
- setlineblocking(L_Bars, OFF);
- setlinetexture(L_Bars, SIDE_Front, TEXTURE_Middle, "-");
- ACS_Execute(C_FTalkOn,X_MapID,0,0,0);
- print(s: "YOUR PATH IS CLEAR");
- delay(35);
- ACS_Execute(C_FTalkOff,X_MapID,0,0,0);
- }
-
- script I_TeleportPlayer (void) {
- ACS_Execute(C_FTalkOn,X_MapID,0,0,0);
- Teleport(gameskill()+20);
- switch(gameskill()) {
- case SKILL_Very_Easy: printbold(s: "THE EASIEST ROUTE..."); delay(70);
- printbold(s: "IS THE CHOICE OF COWARDS."); break;
- case SKILL_Easy: printbold(s: "THE EASY ROUTES ARE THOSE..."); delay(70);
- printbold(s: "WHICH LACK SATISFACTION AFTER VICTORY."); break;
- case SKILL_Normal: printbold(s: "THE AVERAGE CAN NEVER TRIUMPH,"); delay(70);
- printbold(s: "AS THEY CAN ONLY SUCCEED."); break;
- case SKILL_Hard: printbold(s: "THE HARDER THE PATH..."); delay(70);
- printbold(s: "THE GREATER THE VICTORY!"); break;
- case SKILL_Very_Hard: printbold(s: "THE GREATEST CHALLENGE,"); delay(70);
- printbold(s: "CAN BRING IN THE GREATEST GLORY!"); break;
- };
- delay(35);
- ACS_Execute(C_FTalkOff,X_MapID,0,0,0);
- }
-
- int S_int, S_str, S_chr, S_con, S_dex, S_wis;
-
- script I_RandStat(int Stat) {
- int DieTotal, Die1, Die2, Die3, Die4;
- switch(Stat) {
- case V_int:
- if(Class==CLASS_Mage) {
- Die4 = random(1,6);
- Die3 = random(1,6);
- if(Die3<Die4) { DieTotal = Die4; Die4 = Die3; Die3 = DieTotal;};
- Die2 = random(1,6);
- if(Die2<Die4) { DieTotal = Die4; Die4 = Die2; Die2 = DieTotal;};
- Die1 = random(1,6);
- if(Die1<Die4) { DieTotal = Die4; Die4 = Die1; Die1 = DieTotal;};
- Die1 += 1;
- } else {
- Die4 = random(1,6);
- Die3 = random(1,6);
- if(Die3>Die4) { DieTotal = Die4; Die4 = Die3; Die3 = DieTotal;};
- Die2 = random(1,6);
- if(Die2>Die4) { DieTotal = Die4; Die4 = Die2; Die2 = DieTotal;};
- Die1 = random(1,6);
- if(Die1>Die4) { DieTotal = Die4; Die4 = Die1; Die1 = DieTotal;};
- };
- S_int = Die1+Die2+Die3;
- if(S_int>18) {S_int = 18;};
- print(s: "YOUR INTELLIGENCE IS ", d: S_int);
- break;
- case V_dex:
- if(Class==CLASS_Cleric) {
- Die4 = random(1,6);
- Die3 = random(1,6);
- if(Die3<Die4) { DieTotal = Die4; Die4 = Die3; Die3 = DieTotal;};
- Die2 = random(1,6);
- if(Die2<Die4) { DieTotal = Die4; Die4 = Die2; Die2 = DieTotal;};
- Die1 = random(1,6);
- if(Die1<Die4) { DieTotal = Die4; Die4 = Die1; Die1 = DieTotal;};
- Die1 += 1;
- } else {
- Die4 = random(1,6);
- Die3 = random(1,6);
- if(Die3>Die4) { DieTotal = Die4; Die4 = Die3; Die3 = DieTotal;};
- Die2 = random(1,6);
- if(Die2>Die4) { DieTotal = Die4; Die4 = Die2; Die2 = DieTotal;};
- Die1 = random(1,6);
- if(Die1>Die4) { DieTotal = Die4; Die4 = Die1; Die1 = DieTotal;};
- };
- S_dex = Die1+Die2+Die3;
- if(S_dex>18) {S_dex = 18;};
- print(s: "YOUR DEXTERITY IS ", d: S_dex);
- break;
- case V_str:
- if(Class==CLASS_Fighter) {
- Die4 = random(1,6);
- Die3 = random(1,6);
- if(Die3<Die4) { DieTotal = Die4; Die4 = Die3; Die3 = DieTotal;};
- Die2 = random(1,6);
- if(Die2<Die4) { DieTotal = Die4; Die4 = Die2; Die2 = DieTotal;};
- Die1 = random(1,6);
- if(Die1<Die4) { DieTotal = Die4; Die4 = Die1; Die1 = DieTotal;};
- Die1 += 1;
- } else {
- Die4 = random(1,6);
- Die3 = random(1,6);
- if(Die3>Die4) { DieTotal = Die4; Die4 = Die3; Die3 = DieTotal;};
- Die2 = random(1,6);
- if(Die2>Die4) { DieTotal = Die4; Die4 = Die2; Die2 = DieTotal;};
- Die1 = random(1,6);
- if(Die1>Die4) { DieTotal = Die4; Die4 = Die1; Die1 = DieTotal;};
- };
- S_str = Die1+Die2+Die3;
- if(S_str>18) {S_str = 18;};
- print(s: "YOUR STRENGTH IS ", d: S_str);
- break;
- case V_con:
- if(Class==CLASS_Fighter) {
- Die4 = random(1,6);
- Die3 = random(1,6);
- if(Die3<Die4) { DieTotal = Die4; Die4 = Die3; Die3 = DieTotal;};
- Die2 = random(1,6);
- if(Die2<Die4) { DieTotal = Die4; Die4 = Die2; Die2 = DieTotal;};
- Die1 = random(1,6);
- if(Die1<Die4) { DieTotal = Die4; Die4 = Die1; Die1 = DieTotal;};
- Die1 += 1;
- } else {
- Die4 = random(1,6);
- Die3 = random(1,6);
- if(Die3>Die4) { DieTotal = Die4; Die4 = Die3; Die3 = DieTotal;};
- Die2 = random(1,6);
- if(Die2>Die4) { DieTotal = Die4; Die4 = Die2; Die2 = DieTotal;};
- Die1 = random(1,6);
- if(Die1>Die4) { DieTotal = Die4; Die4 = Die1; Die1 = DieTotal;};
- };
- S_con = Die1+Die2+Die3;
- if(S_con>18) {S_con = 18;};
- print(s: "YOUR CONSTITUTION IS ", d: S_con);
- break;
- case V_chr:
- if(Class==CLASS_Mage) {
- Die4 = random(1,6);
- Die3 = random(1,6);
- if(Die3<Die4) { DieTotal = Die4; Die4 = Die3; Die3 = DieTotal;};
- Die2 = random(1,6);
- if(Die2<Die4) { DieTotal = Die4; Die4 = Die2; Die2 = DieTotal;};
- Die1 = random(1,6);
- if(Die1<Die4) { DieTotal = Die4; Die4 = Die1; Die1 = DieTotal;};
- Die1 += 1;
- } else {
- Die4 = random(1,6);
- Die3 = random(1,6);
- if(Die3>Die4) { DieTotal = Die4; Die4 = Die3; Die3 = DieTotal;};
- Die2 = random(1,6);
- if(Die2>Die4) { DieTotal = Die4; Die4 = Die2; Die2 = DieTotal;};
- Die1 = random(1,6);
- if(Die1>Die4) { DieTotal = Die4; Die4 = Die1; Die1 = DieTotal;};
- };
- S_chr = Die1+Die2+Die3;
- if(S_chr>18) {S_chr = 18;};
- print(s: "YOUR CHARM IS ", d: S_chr);
- break;
- case V_wis:
- if(Class==CLASS_Cleric) {
- Die4 = random(1,6);
- Die3 = random(1,6);
- if(Die3<Die4) { DieTotal = Die4; Die4 = Die3; Die3 = DieTotal;};
- Die2 = random(1,6);
- if(Die2<Die4) { DieTotal = Die4; Die4 = Die2; Die2 = DieTotal;};
- Die1 = random(1,6);
- if(Die1<Die4) { DieTotal = Die4; Die4 = Die1; Die1 = DieTotal;};
- Die1 += 1;
- } else {
- Die4 = random(1,6);
- Die3 = random(1,6);
- if(Die3>Die4) { DieTotal = Die4; Die4 = Die3; Die3 = DieTotal;};
- Die2 = random(1,6);
- if(Die2>Die4) { DieTotal = Die4; Die4 = Die2; Die2 = DieTotal;};
- Die1 = random(1,6);
- if(Die1>Die4) { DieTotal = Die4; Die4 = Die1; Die1 = DieTotal;};
- };
- S_wis = Die1+Die2+Die3;
- if(S_wis>18) {S_wis = 18;};
- print(s: "YOUR WISDOM IS ", d: S_wis);
- break;
- };
- }
-
- script I_ReviewStats (void) {
- ACS_Execute(C_FTalkOn,X_MapID,0,0,0);
- Teleport_NoFog(26);
- print(s: "THE GODS HAVE DEEMED YOU READY."); delay(70);
- print(s: "THEY START TO ENCODE YOUR STATS IN FLESH..."); delay(35);
- ACS_Execute(C_SetVar, X_MapID, V_class, Class, 0);
- scriptwait(C_SetVar);
- ACS_Execute(C_SetVar, X_MapID, V_int, S_int, 0);
- scriptwait(C_SetVar);
- ACS_Execute(C_SetVar, X_MapID, V_str, S_str, 0);
- scriptwait(C_SetVar);
- ACS_Execute(C_SetVar, X_MapID, V_chr, S_chr, 0);
- scriptwait(C_SetVar);
- ACS_Execute(C_SetVar, X_MapID, V_con, S_con, 0);
- scriptwait(C_SetVar);
- ACS_Execute(C_SetVar, X_MapID, V_dex, S_dex, 0);
- scriptwait(C_SetVar);
- ACS_Execute(C_SetVar, X_MapID, V_wis, S_wis, 0);
- scriptwait(C_SetVar);
- ACS_Execute(C_SetVar, X_MapID, V_MagiLevel, 1, 0);
- scriptwait(C_SetVar);
- delay(140);
- print(s: "IT HAS BEEN DONE."); delay(70);
- print(s: "YOU MULL OVER WHAT YOU HAVE BECOME..."); delay(70);
- ACS_Execute(C_GetVar, X_MapID, V_class, 0,0);
- scriptwait(C_GetVar);
- Class = C_Result;
- switch(Class) {
- case CLASS_Mage: print(s: "A MAGE,"); break;
- case CLASS_Fighter: print(s: "A FIGHTER,"); break;
- case CLASS_Cleric: print(s: "A CLERIC,"); break;
- default: print(s: "AN UNKOWN.."); break;
- };
- delay(70);
- ACS_Execute(C_GetVar, X_MapID, V_str,0,0);
- scriptwait(C_GetVar);
- S_str = C_Result;
- print(s: "...WITH A STRENGTH OF ", d: S_str, s:"..."); delay(70);
- ACS_Execute(C_GetVar, X_MapID, V_con,0,0);
- scriptwait(C_GetVar);
- S_con = C_Result;
- print(s: "...A CONSTITUTION OF ", d: S_con, s:"..."); delay(70);
- ACS_Execute(C_GetVar, X_MapID, V_dex,0,0);
- scriptwait(C_GetVar);
- S_dex = C_Result;
- print(s: "...A DEXTERITY OF ", d: S_dex, s:"..."); delay(70);
- ACS_Execute(C_GetVar, X_MapID, V_int,0,0);
- scriptwait(C_GetVar);
- S_int = C_Result;
- print(s: "...AN INTELLIGENCE OF ", d: S_int, s:"..."); delay(70);
- ACS_Execute(C_GetVar, X_MapID, V_wis,0,0);
- scriptwait(C_GetVar);
- S_wis = C_Result;
- print(s: "...A WISDOM OF ", d: S_wis, s:"..."); delay(70);
- ACS_Execute(C_GetVar, X_MapID, V_chr,0,0);
- scriptwait(C_GetVar);
- S_chr = C_Result;
- print(s: "...AND A CHARISMA OF ", d: S_chr, s:"."); delay(140);
- print(s: "YOUR SOUL IS INCARNATED..."); delay(35);
- ACS_Execute(C_FTalkOff,X_MapID,0,0,0);
- Teleport_NewMap(64, 0);
- }
-
- script O_SetStats OPEN {
- // stats_1 = 0;
- // stats_2 = 0;
- // experience = 0;
- // gold = 0;
- }
-