Event for whan a shield gets damaged?
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
I had a mod idea and need to know if there is an event you can call when a shield is hit, similar to the <OnDamageShields> but that can be used in shield items.
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
- alterecco
- Fleet Officer
- Posts: 1658
- Joined: Wed Jan 14, 2009 3:08 am
- Location: Previously enslaved by the Iocrym
It's all on the wiki: http://wiki.neurohack.com/transcendence ... ds_devices
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
Ok thanks. I was looking in the Events part of the wiki.
Also, I was looking on Xelerus, and I couldn't find out if there was a command to damage the shields. If there is not one, I'll make a ticket.
Also, I was looking on Xelerus, and I couldn't find out if there was a command to damage the shields. If there is not one, I'll make a ticket.
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
about the function, there isn't a function to directly damage a shield (like the one we have for armors: shpDamageArmor), and Betelgeuse already opened a ticket for it:
http://wiki.neurohack.com/transcendence/trac/ticket/13
About an event for shields, we have <OnShieldDamage>, which is quite a powerful event for making custom shields and it's called every time a projectile hits the shield bearing the event.
http://wiki.neurohack.com/transcendence ... ds_devices
(don't get confused with <OnDamageShields>, which is a weapon event and it's called when the weapon bearing the event hits a shield)
http://wiki.neurohack.com/transcendence/trac/ticket/13
About an event for shields, we have <OnShieldDamage>, which is quite a powerful event for making custom shields and it's called every time a projectile hits the shield bearing the event.
http://wiki.neurohack.com/transcendence ... ds_devices
(don't get confused with <OnDamageShields>, which is a weapon event and it's called when the weapon bearing the event hits a shield)
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
Thanks. Just one more thing, is there a way to do an eq for damage type? I tried using both the number for damage and the string, but neither seemed to work.
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
-
- Fleet Officer
- Posts: 1036
- Joined: Wed Feb 03, 2010 4:28 am
- Location: Researching how to make St. Kats star go supernova.
- Contact:
I dbgLoged it and got "ion"
Play in over 100 systems in a network. Play the 2011 Mod Of the Year
and the highest rated mod on Xelerus, The Network.
Play the July Mod of the Month, Fellow Pilgrims!
Play My other mods as well
(Drako Slyith)* I am a person
(Eliza chatbot)> Do you believe it is normal to be a person?
- alterecco
- Fleet Officer
- Posts: 1658
- Joined: Wed Jan 14, 2009 3:08 am
- Location: Previously enslaved by the Iocrym
In that case you should be comparing string damage types.
is true is somestring is "ion".
Code: Select all
(eq somestring "ion")