Synthetic Reality Forums   
my profile | directory login | register | search | faq | forum home

  next oldest topic   next newest topic
» Synthetic Reality Forums » Our Archives » WoS World Developer Tips » The Skill Script

   
Author Topic: The Skill Script
Merlin
Compulsive Member
Member # 181

Member Rated:
5
Icon 1 posted      Profile for Merlin   Author's Homepage   Email Merlin   Send New Private Message       Edit/Delete Post 
Well, after discovering my old skill script *didnt work* (You couldnt update it), I rewrote mine so that it is fully customizable (and its pretty cool in the end, as well). The "Search" Skill I use is just a token, and if they have that token, in seperate scenes down the line they get a higher R-- number than lower skills. My "Missile" skill in the example is mearly a spell with higher power each time.
Oh, erm, also, just ignore my notes to myself..

;-------
; Merls Special Skills
;-------
;NOTE: Tokens > 300 < 350 ARE DESIGNATED FOR SKILLS!
SCENE 72, skill, SCENE, "Skills"
ACTOR 1, "Teacher", joshroyalty, 12, 70, 70
1: So, you want the skills?
1: Please, tell me which skill you want to learn:
1: Searching (Keyword: Search)
1: Missile (Keyword: Missile)
1: .... and thats all I know to teach right now. Please type what you would like to learn now.
@ask
ASK 999999
IF Qsearch, @search1
IF Qmissile, @missile1
1: That is not a skill, please make your selection again.
GOTO @ask
END
;------
;BELOW THIS IS FOR THE MISSILE LEARN CODE. NOTHING ELSE GOES HERE.
@missile1
IF T304, @noskill
IF T303, @303
IF T302, @302
IF T301, @301
1: To learn this, you must be at least level 15 and have 20,000 Gold Coins.
IF -V15, @noreq
IF -G20000, @noreq
1: You can learn this. Do you want to? (YES/NO)
ASK 999999
IF No, @no
1: Excellent, I will teach you the ancient arts...
GIVE T301
TAKE G20000
GIVE S750
1: You learn quickly! This weapon now does 100 damage to any opponent.
;NOW D100, L1
END
@301
1: To learn this, you must be at least level 30 and have 50000 Gold Coins.
IF -V30, @noreq
IF -G50000, @noreq
1: You can learn this. Do you want to? (YES/NO)
ASK 9999999
IF No, @no
1: Excellent, prepare to be taught..
GIVE T302
TAKE 50000
TAKE S750
GIVE S757
1: You learn quickly! This weapon now does 200 damage to any opponent.
END
@302
1: To learn this, you must be at least level 40 and have 75000 Gold Coins.
IF -V40, @noreq
IF -G75000, @noreq
1: Excellent, you can learn. Do you still wish to? (YES/NO)
ASK 99999
IF No, @no
1: Prepare to be taught the arts...
TAKE S757
GIVE T303
GIVE S758
TAKE 75000
1: You learn quickly! This weapon now does 300 damage to any opponent.
END
@303
1: To learn this, you must be at least level 50 and have 100,000 Gold Coins.
IF -V50, @noreq
IF -G100000, @noreq
1: Do you wish to learn this?
ASK 99999
IF No, @no
1: Prepare to learn..
TAKE S758
GIVE T304
GIVE S759
TAKE G100000
1: Amazing, you have mastered this skill. Your missiles will now do 400 damage to any enemy.
END
;-----
;BELOW THIS IS FOR THE SEARCH LEARN CODE. NOTHING ELSE GOES HERE.
@search1
IF T125, @noskill
IF T124, @124
IF T123, @123
IF T122, @122
1: To learn this, you must be at least level 5 and have 2,000 Gold Coins.
1: This will bring your search skill to: 20%
IF V5+G2000, @s1234
1: You do not have the requirements. Please return with the basic requirements...
END
@s1234
1: Do you still wish to learn?
ASK 999999
IF No, @no
1: Excellent. You will now learn the ancient arts..
TAKE G2000
GIVE T122
1: You are a very fast learner! The knowledge is now known to you.
;NOW LEVEL 1 In search!
;-------------
END
@122
1: Your skill level in searching is currently 20%. In order to advance it, you need to be level 15 with 15,000 GP.
IF -V15, @noreq
IF -G35000
1: Excellent, you can learn this skill. Do you still wish to? (YES/NO)
ASK 999999
IF No, @no
1: Great! Prepare to be taught the ancient arts...
TAKE G15000
GIVE T123
1: You are a very fast learner! The knowledge is now known to you. Your search skill is now at 40%.
END
;NOW LEVEL 2 In search!
;-----------
@123
1: Your skill level in searching is currently 40%. In order to advance it, you need to be level 25 with 35,000 GP.
IF -V25, @noreq
IF -G35000, @noreq
1: You can learn this, do you still wish to? (YES/NO)
ASK 99999999
IF No, @no
1: Excellent. You will now learn the ancient arts..
TAKE G35000
GIVE T124
1: You are a very fast learner! The knowledge is now known to you. Your search skill is now at 50%.
; NOW LEVEL 3!
;----------
@124
1: Your skill level in searching is currently 50%. In order to advance it, you need to be level 35 with 50,000 GP.
IF -V35, @noreq
IF -G50000, @noreq
1: You can learn this, if you wish. (YES/NO)
If No, @no
1: Prepare to be taught the ancient arts...
TAKE G50000
GIVE T125
1: Excellent! You now have learned all of the search skill I can teach. Your search skill is at the maximum.
; NOW LEVEL 4, COMPLETE
;--------
END
@no
1: Okay, leave this place in peace.
END
@noreq
1: You do not have the required. Please return when you are ready.
END
@noskill
1: I have taught you all I can about this skill.
END
;---------------

There we goes.
-Merlin

[This message has been edited by Merlin (edited 04-15-2001).]


Posts: 2797 | From: Atlanta, Georgia | Registered: Nov 1999  |  IP: Logged
Lady Griffon
Verbose Member
Member # 189

Member Rated:
5
Icon 2 posted      Profile for Lady Griffon   Author's Homepage   Email Lady Griffon   Send New Private Message       Edit/Delete Post 
Awesome work, Merlin!

LGH


Posts: 1463 | From: Myzan | Registered: Dec 1999  |  IP: Logged
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Synthetic Reality

Copyright 2003 (c) Synthetic Reality Co.

Powered by UBB.classic™ 6.7.3