Author Topic: [XP] Power Word Shield  (Read 13203 times)

Offline Falcon

  • Trained Member
  • *
  • Posts: 43
  • LV: 7
    • View Profile
[XP] Power Word Shield
« on: September 05, 2008, 09:41:29 PM »
Power Word: Shield Status Effect
Authors: Falcon
Version: 1.0
Type: Status Effect
Key Term: Misc Add-on

Introduction

This script allows you to use the Power Word: Shield status. For those of you who never played WoW, the shield absorbs some damage before it goes away.

Features

  • Absorb Damage, including poisons.
  • Configure how much damage you want the shield to absorb.

Screenshots

Imagine the actor has a status effect called power word shield. Now imagine he takes no damage.

Demo

http://www.rmrevolution.com/138/power-word-shield-status-effect/

Script
(click to show/hide)


Instructions

Add the script under the SDK. Then you'll need to make a new state and change the PWS_ID in the script to the ID of the effect. Then make the skills and whatnot so you can use the new effect :)

Also, keep in mind, the shield is NOT meant to be dispelled, so any dispel effects will probably screw the system up a bit.

Compatibility

Tried to make this SDK Compliant and Compatible.

Credits and Thanks

  • Falcon

Author's Notes

Next version, I plan to add:
  • Ability to turn off poison damage absorb.
  • Fix any bugs/errors of course :P

Free to use for non-commerical use, with credit of course ;)
« Last Edit: June 12, 2009, 11:14:18 PM by Aqua »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Power Word Shield
« Reply #1 on: September 05, 2008, 09:57:55 PM »
*cough* ... new template... *cough*

http://forum.chaos-project.com/index.php?topic=17.0
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 Falcon

  • Trained Member
  • *
  • Posts: 43
  • LV: 7
    • View Profile
Re: [XP] Power Word Shield
« Reply #2 on: September 05, 2008, 10:32:09 PM »
I'd rather just delete this than remake it with a new template :P

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Power Word Shield
« Reply #3 on: September 05, 2008, 10:44:01 PM »
Took me 3 minutes, lazy ass. :P
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 Falcon

  • Trained Member
  • *
  • Posts: 43
  • LV: 7
    • View Profile
Re: [XP] Power Word Shield
« Reply #4 on: September 06, 2008, 04:36:50 AM »
There's a difference :P

All I see is some lines XD

Offline Starrodkirby86

  • Kirby de Varita Estelar
  • Guardian of Chaos
  • ********
  • Posts: 3281
  • LV: 194
  • Gender: Male
  • ~!
    • View Profile
    • The Archive of Starrodkirby86
Re: [XP] Power Word Shield
« Reply #5 on: September 06, 2008, 04:39:28 AM »
There's a difference :P

All I see is some lines XD
More like, bigger font, different arrangement, key term, and all that good stuff... :ninja:


This seems to be a very convenient script, like one that seems to be quick and all, but it does go a long way...Nice. I haven't played WoW so I'm not fully acquainted with this system. :/

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?).



Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] Power Word Shield
« Reply #6 on: March 29, 2009, 11:08:48 PM »
Mmm...
Site is down. >.<

Anyone have a copy or something? XD

Offline Jackolas

  • Ethereal Devastator
  • ****
  • Posts: 499
  • LV: 31
  • Gender: Male
  • Its just me
    • View Profile
    • My Clan
Re: [XP] Power Word Shield
« Reply #7 on: June 12, 2009, 10:56:30 PM »
was cleaning up my pc.
found shit loads of scripts that I collected in the time.
do you still need it?
and am I allowed to post here? (could not contact Falcon, I tried tough)

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] Power Word Shield
« Reply #8 on: June 12, 2009, 11:01:33 PM »
Yes, please.

I'll edit the 1st post with it... XD

Offline Jackolas

  • Ethereal Devastator
  • ****
  • Posts: 499
  • LV: 31
  • Gender: Male
  • Its just me
    • View Profile
    • My Clan
Re: [XP] Power Word Shield
« Reply #9 on: June 12, 2009, 11:05:52 PM »
Quote
Tried to make this SDK Compliant and Compatible.

it would be cool if someone could try to undo the Compatible with SDK.
tried SDK 1 time and will never have it invade my projects again, but love this script.
« Last Edit: June 13, 2009, 08:10:29 PM by Jackolas »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Power Word Shield
« Reply #10 on: June 13, 2009, 08:13:08 PM »
Compatible doens't mean dependent. o_o; Just try to use it. I don't think it requires SDK.
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 fugibo

  • World Conqueror
  • Chaos User
  • ******
  • Posts: 1966
  • LV: 44
    • View Profile
Re: [XP] Power Word Shield
« Reply #11 on: June 13, 2009, 08:37:12 PM »
We should make an SDK compatibility layer :V

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Power Word Shield
« Reply #12 on: June 13, 2009, 08:47:41 PM »
And promote its usage? No way! :V
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 Jackolas

  • Ethereal Devastator
  • ****
  • Posts: 499
  • LV: 31
  • Gender: Male
  • Its just me
    • View Profile
    • My Clan
Re: [XP] Power Word Shield
« Reply #13 on: June 14, 2009, 12:02:57 AM »
if you don't have SDK it crashes (like every SDK script)

line 25: name error occurred
uninitialized constant SDK

so its kinda SDK dependable
« Last Edit: June 14, 2009, 12:06:34 AM by Jackolas »

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] Power Word Shield
« Reply #14 on: June 14, 2009, 03:13:41 AM »
You can just delete those lines... :P

Offline Jackolas

  • Ethereal Devastator
  • ****
  • Posts: 499
  • LV: 31
  • Gender: Male
  • Its just me
    • View Profile
    • My Clan
Re: [XP] Power Word Shield
« Reply #15 on: June 14, 2009, 11:12:20 AM »
and than the shield won't work anymore :S

edit: NVM found the problem... needed to change 1 of my scripts :S
« Last Edit: June 14, 2009, 11:23:43 AM by Jackolas »

Inverse

  • Guest
Re: [XP] Power Word Shield
« Reply #16 on: January 19, 2010, 05:16:39 PM »
If it is not SDK dependant then how can I make it work ? I've tried to simply delete the lines with SDK but it doesn't work... any help ?

deadeye

  • Guest
Re: [XP] Power Word Shield
« Reply #17 on: November 10, 2012, 07:47:58 PM »
For anyone struggling with non-SDK versions of this script, because this script is AWESOME and I couldn't for the life of me figure out how to simply remove the SDK lines, I just edited a few things in the default battler_3 script in order to make this work fine (or fine thus far).

if you add this around line 8
Code: [Select]
attr_reader   :pws_hp           # Strength of PWS
  alias pws_init initialize
  def initialize
    pws_init
    @pws_hp = (how much HP you want the shield to have)
  end
Then continue down to where it says #subtract damage from HP and remove this:
Code: [Select]
# Substract damage from HP
      last_hp = self.hp
      self.hp -= self.damage
    end
You can simply add this in replacement:
Code: [Select]
# Substract damage from HP
      #If the shield has strength
    if state?(state of the power shield)
      if self.damage > 0
        if pws_hp > self.damage
          # Substract damage from the shield's strength
          @pws_hp -= self.damage
          self.damage = "Absorbed"
        else
          # Subtract shield's last strength from damage
          self.damage -= @pws_hp
          remove_state(31)
          last_hp = self.hp
          self.hp -= self.damage
          @pws_hp = (PWS original HP)
        end
      end
    else
      # Substract damage from HP
      last_hp = self.hp
      self.hp -= self.damage
    end

ALSO: my appologies, I can't figure out how to do the spoiler script thing :/ I'm new

Fixed it for ya. ~KK20
« Last Edit: November 11, 2012, 12:09:05 AM by KK20 »