Welcome Guest
[Log In]
[Register]
| Welcome to Olympian. We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| [-Scripting-] Do things on Level Up; Stolen. | |
|---|---|
| Tweet Topic Started: Jun 29 2010, 11:30 PM (357 Views) | |
| Cylindrical | Jun 29 2010, 11:30 PM Post #1 |
|
Member Lv. 1
|
Do things on Level Up by Cylindrical I was looking for some things to somehow "remove" the Level Up system for my game. Ironically, I found this stuff out, and I'll be teaching you how to do things when an actor levels up. First of all, we will go to the Script Editor. Now, press Ctrl+Shift+F to search all of your scripts. You will be prompted to enter your keywords. In it, type in:
If you have no other scripts messing with the Level Ups, you'll see just one line:
Double-click on it and you will be sent directly on that line. What we will do is copy it from the def until the second end. Create a new blank space in the editor and paste your copied text. It shoul look like this now:
Then, on the beginning of the text, add this:
Then add some spaces on the last line and type in end.Your script should look like this:
Now, we're ready to mess with it! Lesson 1 - Recovery This is the most commonly sought after feature. This part will allow you to restore the actor when he/she levels up.
As quoted by Mithran, you can easily remove the states using the function remove_state(), like this:
I think that's all of it for recovery. Lesson 2 - Control Switch/Variable
Lesson 3 - Call Common Event
Lesson 4 - Advanced You can also check if the who is the levelling character. For example, you want to give [0001: Ralph] 6 points to [0081: Skill Points]. You would need to check if Ralph was the one levelling up, like so:
An easier way to do this is this:
Or this:
(Thanks to Mithos, corrected now dude) Of course, this will mean that if [0002: Ulrika] levels up, the variable [0082] will have its value increased by 6, too. If you want to do something only when a certain actor levels up:
For multiple actors, you can do this:
or this:
I think that's the rest of it! Have fun with your own level up system! Just for reference, your script should look like this:
|
| Cylindrical ****s this place. | |
![]() |
|
| Dawningstar | Jun 30 2010, 12:53 AM Post #2 |
|
Pet me!
|
Exellent! I esecially enjoyed the fact that you can get you person to recover after a level up! I have been looking for something like that! |
Don't walk in my footsteps, I walk into walls...
| |
![]() |
|
| Hyde | Jun 30 2010, 11:40 PM Post #3 |
|
Administrator
![]()
|
Ever find out how to remove leveling? I have the script for my game if you would like it. |
![]() |
|
| Dawningstar | Jul 1 2010, 01:24 PM Post #4 |
|
Pet me!
|
ACtually, could I have that? It would fix some of the problems im running into with my OTHER script! ![]() |
Don't walk in my footsteps, I walk into walls...
| |
![]() |
|
| Identity_Crisis | Jul 2 2010, 05:51 PM Post #5 |
|
LIKE A MODERATOR
![]()
|
*Bother Bother* |
Intelligence is not to make no mistakes, but quickly to see how to make them good.![]() ![]() ![]()
| |
![]() |
|
| Dawningstar | Jul 3 2010, 12:13 PM Post #6 |
|
Pet me!
|
WHAT? I could use it!
|
Don't walk in my footsteps, I walk into walls...
| |
![]() |
|
| Identity_Crisis | Jul 3 2010, 04:51 PM Post #7 |
|
LIKE A MODERATOR
![]()
|
Sure.. ..Has Hyde sent you it? |
Intelligence is not to make no mistakes, but quickly to see how to make them good.![]() ![]() ![]()
| |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Tutorials · Next Topic » |
| Track Topic · E-mail Topic |
9:00 PM Jul 10
|














9:00 PM Jul 10