Author Topic: [XP] Element Attack Armors  (Read 11486 times)

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
[XP] Element Attack Armors
« on: February 23, 2010, 05:30:29 AM »
Element Attack Armors
Authors: game_guy
Version: 1.0
Type: Armor Add-On
Key Term: Actor Add-on

Introduction

All armors setup in the database just allows you to make them guard against elements. This scripts makes it possible to allow them to add elements to your attack. Ex: You have Fiery Ring = Weapons do fire-typed damage when equipped.

Features

  • Adds elements to your attacks according to armor wearing.

Screenshots

N/A

Demo

N/A (Unless you really want one. Ask me.)

Script

(click to show/hide)

Instructions

In the script.

Compatibility

Not tested with SDK.
Compatibility made with Guillaume777's multi equip script.

Credits and Thanks

  • game_guy ~ For making it
  • jragyn00 ~ For requesting it

Author's Notes

Enjoy!
« Last Edit: February 27, 2010, 04:55:20 AM by Hellfire's G_G »

Offline Spaceman McConaughey

  • Legit Poo Poo Man
  • Lexima Warrior
  • *******
  • Posts: 2002
  • LV: 46
  • Gender: Male
  • muh murph
    • View Profile
    • Titties, titties, and more titties!
Re: [XP] Element Attack Armors
« Reply #1 on: February 23, 2010, 05:32:10 AM »
Nice.

Offline WhiteRose

  • Trying to code in Ruby
  • Moderator
  • Lexima Warrior
  • ***
  • Posts: 2341
  • LV: 127
  • Gender: Female
  • <3
    • View Profile
Re: [XP] Element Attack Armors
« Reply #2 on: February 23, 2010, 05:33:14 AM »
Another fantastic script masterpiece by G_G. Great work, like always. *Levels up!*

Offline Landith

  • Astral Trancist
  • *****
  • Posts: 947
  • LV: 59
  • Gender: Male
    • View Profile
Re: [XP] Element Attack Armors
« Reply #3 on: February 24, 2010, 01:02:57 AM »
Very nice. Good job.

[offtopic]

And gratz to WhiteRose for reaching post 69.

Offline WhiteRose

  • Trying to code in Ruby
  • Moderator
  • Lexima Warrior
  • ***
  • Posts: 2341
  • LV: 127
  • Gender: Female
  • <3
    • View Profile
Re: [XP] Element Attack Armors
« Reply #4 on: February 24, 2010, 01:07:06 AM »
Why thank you. It is indeed a momentous occasion.

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Element Attack Armors
« Reply #5 on: February 27, 2010, 02:49:16 AM »
 8)
Your scripting technique works, and works well.
You are welcome to add the compatibility of BlizzABS to this as well (if it matters) as it works there too!

I thank you again for making this script!
I will make certain to harass you specifically for scripting methods again in the future   :)


--JeR
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Online Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19929
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Element Attack Armors
« Reply #6 on: February 28, 2010, 01:08:29 PM »
I see no reason why it shouldn't be working with Blizz-ABS already.
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 Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Element Attack Armors
« Reply #7 on: March 01, 2010, 04:48:22 AM »
No no no, I mean...
add the wordage that states its compatible with Blizz-ABS in the original post, so people know! :D

My mistake for the miscommunication.

I know it werks with BlizzABS, it was the first thing I verified upon posting.  :ninja:
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Element Attack Armors
« Reply #8 on: March 15, 2010, 05:40:18 AM »
Okay, so I suppose I didn't think to bother trying this, but I noticed a err, bug perhaps?

Upon equipping the armor, it does indeed grant the element, and it works just fine.
However, if you pull the armor off that granted the elemental effect, the effect persists.

Its like equipping the Fire Ring once was all it took! Now my attacks are forever fire-typed even IF I unequip the ring! nuuuuuuuuuuu.

I imagine the fix will be like, a single line, adding an else statement or something to nil the element that was .pushed...but I dunno.

boss?

A bright light can either illuminate or blind, but how will you know which until you open your eyes?

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] Element Attack Armors
« Reply #9 on: March 15, 2010, 05:43:33 AM »
I just tested it with and without the multi equipment script. The fire element does not stay. Are you sure you don't have the ring equipped twice? Or perhaps a weapon or another armor with the fire element on it?

Offline Kett Shee

  • Badass
  • Astral Trancist
  • *****
  • Posts: 579
  • LV: 23
  • Gender: Male
  • Stay Zen.
    • View Profile
Re: [XP] Element Attack Armors
« Reply #10 on: March 15, 2010, 05:45:21 AM »
neat script G_G. *puts in my closet of favorite scripts*
You're all daft cunts. I love you. <3

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] Element Attack Armors
« Reply #11 on: March 15, 2010, 05:49:44 AM »
neat script G_G. *puts in my closet of favorite scripts*

Ha ha thanks :D

Offline Kett Shee

  • Badass
  • Astral Trancist
  • *****
  • Posts: 579
  • LV: 23
  • Gender: Male
  • Stay Zen.
    • View Profile
Re: [XP] Element Attack Armors
« Reply #12 on: March 15, 2010, 05:54:28 AM »
Your Welcome! *levels up* This already fills my head with random names for elements.
You're all daft cunts. I love you. <3

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Element Attack Armors
« Reply #13 on: March 15, 2010, 06:04:48 AM »
oh, actually I DO use G777, in conjunction with BlizzABS, so perhaps it is what is making the difference... On that note, I am quite certain that I have only one equipment piece that grants such an effect. X_X Oh its a sad day.


--JeR
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

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] Element Attack Armors
« Reply #14 on: March 15, 2010, 03:27:52 PM »
Make an event and use this script call.
Code: [Select]
p $game_actors[id].element_setCall that script when the fire ring is equipped.
Then remove the ring and call the script again.

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Element Attack Armors
« Reply #15 on: March 16, 2010, 07:49:23 AM »
Upon following your instructions, this is what printed before the ring was equipped:

[]

Then while the ring was equipped:

[1]

And after the ring was removed:

[1]


Judging by this, I'd say that removing the ring doesn't remove the element.
Whats next?
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

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] Element Attack Armors
« Reply #16 on: March 16, 2010, 02:58:50 PM »
Its probably another script conflicting with it. I just tested it again on multi equip. The only option I can think of is try placing this script below the Multi Equip script.

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Element Attack Armors
« Reply #17 on: March 16, 2010, 09:39:08 PM »
I tested it tooooo.
I opened a brand new project, no scripts save the G777 and your element script, and it commits the same grave sin. What are you doing that I am not?

Here are my steps, correct me if I made a mistake:

-->new game! walk on event that calls the script as you requested involving .element_set

-->equip a piece of armor that grants an elemental attribute. Step again on the event involving the .element_set to verify that actor[ID1] does infact have the fire element in his attack set. He does.

-->take the armor off and step once more on the event that calls .element_set of actor[ID1] to see
what he has, and sure enough the .element_set includes the [1]-element still.

Am I missing something?
Would you like a brief demo showing these steps?

A bright light can either illuminate or blind, but how will you know which until you open your eyes?

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] Element Attack Armors
« Reply #18 on: March 17, 2010, 12:22:40 AM »
The only problem I see is that you're not using the latest mutli equip script. The one I'm using and testing with is 6.2.2. Here's a demo. Talk to the guy it'll show that you do have elements in your attack. Remove the shield talk to him again and it'll show you that its empty.

http://www.sendspace.com/file/cmngwm

If you're not using 6.2.2 use the script from the demo.

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Element Attack Armors
« Reply #19 on: March 17, 2010, 09:18:37 AM »
but I am using the latest script. 6.2.2, spot on.

here, take a look at this:
http://www.sendspace.com/file/5vhsl6
Its my demo. You begin with a fireshield in your inventory. Step on the flower to view elements.
I even made a feign battle so you could make sure maybe by some offchange the element.set wasn't updating or something.

I can't possibley view anything that is wrong.
Maybe I just missed something.

btw, I dunno if err its you or sendspace, but its claiming I can't download it from some error.


--JeR

PS_Thanks for your continued support, I do appreciate you barreling through my dilemma after dilemma.
A bright light can either illuminate or blind, but how will you know which until you open your eyes?