/-/S'pht-Translator-Active/-/


Re: Lua script question
Posted By: treellamaDate: 7/19/06 8:56 a.m.

In Response To: Re: Lua script question (Forrest of B.org)

: This is for Eternal, and just for solo maps. I'm trying to figure out a way
: to have the Pfhor weapons still be picked up from dead Pfhor, and yet for
: them to use ammo so you don't have to go find a dead body to get a new
: weapon every time the one you're using runs out. For netgames, there will
: be placed ammo and weapons like usual; but for most solo levels it doesn't
: make sense that the Pfhor would leave ammo just lying around somewhere,
: except for on Pfhor ship levels and the colony in Chapter 2.

Ah, sounds peachy then. The pick-up-weapons-to-get-ammo paradigm would be nice in net games, but current MML and Lua implementations aren't up to an elegant implementation of it.

The first step then is to put the MML in place, and see if you can actually pick up (e.g.) 2 assault rifles or 3 shotguns. I remember there being something nasty hardcoded about weapons still that couldn't be changed with MML.

: (And yes, it is possible to hold extra weapons. That's the current compromise
: in Eternal X: you can hold several of each weapon, and they use their own
: item type for ammo. But that doesn't look right in the Inventory display).

Oh, you have actually tried it :)

Writing the Lua should be really simple then. All you should need to do is implement got_item(), check for the item type, and if it's one of the excess weapons call remove_item to get rid of the weapon and add_item for some ammo.

[ Post a Reply | Message Index | Read Prev Msg | Read Next Msg ]
Pre-2004 Posts

Replies:

Lua script questionForrest of B.org 7/18/06 5:42 p.m.
     Re: Lua script questionBob-B-Q 7/19/06 4:22 a.m.
     Re: Lua script questiontreellama 7/19/06 5:03 a.m.
           Re: Lua script questionForrest of B.org 7/19/06 6:42 a.m.
                 Re: Lua script questiontreellama 7/19/06 8:56 a.m.
                       Re: Lua script questionForrest of B.org 7/19/06 9:49 a.m.
                             Re: Lua script questiontreellama 7/19/06 11:03 a.m.
                                   Re: Lua script questionblake37 7/19/06 2:30 p.m.
                                         Re: Lua script questiontreellama 7/19/06 3:02 p.m.
                                               Re: Lua script questionblake37 7/20/06 3:05 a.m.
                                   Re: Lua script questionForrest of B.org 7/20/06 7:42 p.m.
                                         Re: Lua script questionblake37 7/21/06 2:03 a.m.
                                               Re: Lua script questionForrest of B.org 7/22/06 2:40 p.m.
                                                     Re: Lua script questionblake37 7/22/06 3:10 p.m.
                                         Re: Lua script questiontreellama 7/21/06 3:38 a.m.
                                               Re: Lua script questionForrest of B.org 7/22/06 3:54 p.m.

[ Post a Reply | Message Index | Read Prev Msg | Read Next Msg ]
Pre-2004 Posts

 

 

Your Name:
Your E-Mail Address:
Subject:
Message:

If you'd like to include a link to another page with your message,
please provide both the URL address and the title of the page:

Optional Link URL:
Optional Link Title:

If necessary, enter your password below:

Password:

 

 

Problems? Suggestions? Comments? Email maintainer@bungie.org

Marathon's Story Forum is maintained with WebBBS 5.12.