fun with objFireItemEvent

This is a moderated forum that collects tutorials, guides, and references for creating Transcendence extensions and scripts.
Post Reply
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

To continue with my series showing some of the potential in functions. Today we look at objFireItemEvent.

Code: Select all

(objEnumItems ship "*" item (objFireItemEvent ship item "InWreck")) 
Now this code can be called every so often in the case of a item that when in a wreck destroys the wreck or when the player tries to loot the wreck for some traps.

Very nice you say? but that isn't all. Now think of a attacking system like shields down (sadly we can't use shields down exactly but I am guessing we can emulate it.)
Now there would be several ways to defend against it. One defense item would repair your armor when that event happens. A different one would get you away from there by some kind of jump system. A even different one would make the attackers shields go down also.

As you can see a great power of objFireItemEvent is that you can have different items with the same event doing different things.

Any comments? questions?

also would you like to see posts like this on older functions too?
Crying is not a proper retort!
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

Sure, just make a reference topic that contains links to all of these, and then have someone put it on xelerus.

By the way, Xelerus still has (sovSetDisposition) wrong. The example makes the two sovereigns enemies, not friends.
Post Reply