Author Topic: [XP] Special Elements Script  (Read 6697 times)

Offline bigace

  • Transcended Spirit
  • ***
  • Posts: 211
  • LV: 16
  • Gender: Male
    • View Profile
    • Bigace Scripting World
[XP] Special Elements Script
« on: May 01, 2010, 07:20:13 PM »
Special Elements Script
Authors: Bigace
Version: 1.0
Type: Special Element-Add-on
Key Term: Add-on Collection

Introduction

First ever script done by me(bigace) and probably my last until my first game is done. This script allows it so for only certain enemies to be hurt by certain elements. Mostly for items that are supposed to target a certain type of enemy. Like If you have a Item called 'Dragoon Slayer'. That Item should only hurt dragons, other enemies would be uneffected by this item. You can do the same with skills to.

Screenshots

None needed....

Demo

If you need one, I'll make one for you.

Script

(click to show/hide)

Instructions

Plugin above main and then in the Database Under 'Items' add the type of element to an Item your using against a enemy, most preferably an animal type like demon or dragon, and then in this script add the monster ID for the one that certain element works on.

Compatibility

It works on my game and I have a wall of scripts, only thing I can tell you that it might have trouble with the Game_Enemy,but that's about it.

Credits and Thanks

  • It's a very small script so need to credit but some feedback would be nice


Use Dropbox to upload your files. Much simpler than other upload sites, you can simply place a folder on your desktop that will sync with your DropBox account.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Special Elements Script
« Reply #1 on: May 01, 2010, 07:57:03 PM »
Not to sound harsh on your first script but this could be done entirely through the database.

Make an element called Dragon.
Make an item that uses the element Dragon.
Make all enemies that are dragons effective against the Dragon element.
Make non dragon elements immune to the Dragon element.

Offline bigace

  • Transcended Spirit
  • ***
  • Posts: 211
  • LV: 16
  • Gender: Male
    • View Profile
    • Bigace Scripting World
Re: [XP] Special Elements Script
« Reply #2 on: May 01, 2010, 08:06:23 PM »
Ya I know but that takes way to long, this is just shorter for more lazier people like me  :^_^':.


Use Dropbox to upload your files. Much simpler than other upload sites, you can simply place a folder on your desktop that will sync with your DropBox account.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Special Elements Script
« Reply #3 on: May 01, 2010, 08:29:48 PM »
True. I'm quite lazy myself. I may use it, or make my own script like this. xP Anyways nice job.

Offline AresWarrior

  • Awakened Visionist
  • **
  • Posts: 51
  • LV: 3
    • View Profile
Re: [XP] Special Elements Script
« Reply #4 on: May 02, 2010, 05:42:59 AM »
nice i might use this for my game. ^_^ in Digimon there is a weapon/attack that destroys "Dramon", so this script will come in handy. nice for your first script.

Online Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19903
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Special Elements Script
« Reply #5 on: May 02, 2010, 10:29:51 AM »
*scratches head* Actually making the database work is a lot faster. -_-
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline bigace

  • Transcended Spirit
  • ***
  • Posts: 211
  • LV: 16
  • Gender: Male
    • View Profile
    • Bigace Scripting World
Re: [XP] Special Elements Script
« Reply #6 on: May 02, 2010, 06:30:54 PM »
Well in my game I have too many enemies to go through that I'm to lazy to change most of them to immune and the others to effective. Plus I have like 10 types of enemies. with like 500 (making up a number) enemes so far to configurate that I think just adding there number would be easier. I don't know I guess it just depends on the guy making it.


Use Dropbox to upload your files. Much simpler than other upload sites, you can simply place a folder on your desktop that will sync with your DropBox account.

Offline Starrodkirby86

  • Kirby de Varita Estelar
  • Guardian of Chaos
  • ********
  • Posts: 3282
  • LV: 194
  • Gender: Male
  • ~!
    • View Profile
    • The Archive of Starrodkirby86
Re: [XP] Special Elements Script
« Reply #7 on: May 02, 2010, 11:34:05 PM »
Well...in response to everyone saying that it's much better to do it on the Database...

Hm...at least this can be a nice start to a career of RGSS.  :D

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).



Online Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19903
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Special Elements Script
« Reply #8 on: May 03, 2010, 09:01:45 AM »
with like 500 enemes so far to configurate

You can make a small script that automatically changes the configuration of enemies in the database. It's much cleaner through the database. In fact, if you're intend to use this script, why bother with RMXP's database manager at all? Make everything through script if you're claiming that it's easier.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6585
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP] Special Elements Script
« Reply #9 on: May 03, 2010, 02:23:53 PM »
with like 500 enemes so far to configurate

You can make a small script that automatically changes the configuration of enemies in the database. It's much cleaner through the database. In fact, if you're intend to use this script, why bother with RMXP's database manager at all? Make everything through script if you're claiming that it's easier.

Blizz don't tempt me :V
But really I would be the person to use a script for EVERYTHING.

Online Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19903
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Special Elements Script
« Reply #10 on: May 03, 2010, 02:48:35 PM »
If I would expect that this procedure would have to be repeated in future, I'd make a tool instead.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.