Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> 


———
Before you ask! Read! ;)

You must have 30+ Posts to create a topic here!

Thanks for reading!
———

 
Reply to this topicStart new topic
> Experience Drain Script: Does it exist?
D2Modder
post Dec 27 2008, 01:22 PM
Post #1


Level 1
Group Icon

Group: Member
Posts: 9
Type: None
RM Skill: Undisclosed




Good Afternoon,

In Advanced Dungeons and Dragons, some undead monsters, like spectres, vampires and wights, are able to drain experience from a character. Is there a script to do this?

D2
Go to the top of the page
 
+Quote Post
   
sandy
post Dec 27 2008, 01:49 PM
Post #2


Level 17
Group Icon

Group: Revolutionary
Posts: 329
Type: None
RM Skill: Undisclosed




Not sure if anyone's done of these for VX yet D2Modder, but I wrote one of these for RMXP awhile back. You can take a look at how it worked and port it over quickly if you're familiar with RGSS smile.gif

http://www.gamebaker.com/rmxp/scripts/e/level-drain.php

The instructions aren't uploaded, but it's basically this:

CODE
  LevelDrainDeath = false
  LevelDrainStatus = 17
  
  LevelDrainAttacks[3] = 25
  LevelDrainAttacks[4] = 1
  LevelDrainSkills[16] = 1

Status = state added to characters once they've been drained
DrainDeath = kills a character at level 1 if true
"LevelDrainAttacks[4] = 1" Monster #4 will drain 1 level when it hits something
"LevelDrainSkills[16] = 1" Skill #16 will drain 1 level when it's used on something. Can be both good or bad, extra penalty for using skills if it's player cast

CODE
sg_levelrestore

Call script that restores all lost levels. Some other options in the script itself


__________________________
RPG Maker VX Resources - Blogthing updated daily with new stuff you can use
Temporarily not be updated daily. My bad!
Go to the top of the page
 
+Quote Post
   
TooManyToasters
post Dec 27 2008, 02:12 PM
Post #3


Level 5
Group Icon

Group: Member
Posts: 67
Type: Event Designer
RM Skill: Intermediate




You could do this SOOOOO easily with events. Make a common event that lowers a character's experience, and make a skill that links to it. Voila. You have a skill that subtracts experience.
If you want to be able to restore lost experience, set a variable to increase by 1 under the command that subtracts experience, and when you want to restore it, multiply the variable by how much the skill drains and add the variable to the player's experience.
Never underestimate events! You don't need to use scripting to be creative.

This post has been edited by TooManyToasters: Dec 27 2008, 02:15 PM
Go to the top of the page
 
+Quote Post
   
Knoll318
post Dec 27 2008, 02:44 PM
Post #4


Level 3
Group Icon

Group: Member
Posts: 30
Type: Event Designer
RM Skill: Skilled




Maybe he just wants their regular attacks to do that, not a skill.
Go to the top of the page
 
+Quote Post
   
D2Modder
post Dec 28 2008, 03:32 PM
Post #5


Level 1
Group Icon

Group: Member
Posts: 9
Type: None
RM Skill: Undisclosed




QUOTE (Knoll318 @ Dec 27 2008, 05:44 PM) *
Maybe he just wants their regular attacks to do that, not a skill.


Yep. Thinking about other special regular attacks as well (acid, item theft, etc.)...

D2
Go to the top of the page
 
+Quote Post
   
Kovu
post Dec 29 2008, 12:40 AM
Post #6


NEWB HUNTER
Group Icon

Group: Revolutionary
Posts: 361
Type: Event Designer
RM Skill: Masterful




Lol. Just make a skill called Attack(s) and link it with the common event.

Go to the monsters who will use it and set it as a normal attack. So no MP drain, and just set the base as if it were a normal physical attack.

Simple smile.gif


__________________________
All your cookies are belong yo us!
[Show/Hide] Puella Bellum

[Show/Hide] Starwars
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 11:06 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker