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


Re: Possibilities in Forge
Posted By: doyDate: 3/12/05 6:25 p.m.

In Response To: Re: Possibilities in Forge (thermoplyae)

: : -Switch that locks certain doors.

function tag_switch( tag, player )
lock_switch = 1
door_poly = 53
if( tag == lock_switch ) then

set_platform_player_control( door_poly, get_tag_state( tag ) )

set_platform_monster_control( door_poly, get_tag_state( tag ) )
end
end

: Teleportation switch: probably not, though perhaps possible with Lua.

function tag_switch( tag, player )
teleport_switch = 2
teleport_to = 37
if( tag == teleport_switch ) then

for i = 1,number_of_players() do

teleport_player( i, teleport_to )

end
end
end

: : -Switch that randomly chooses between two things to do.

definitely possible in Lua, although providing code would be kinda difficult to do without a more concrete example.

Also, to use both of those functions together, just copy the function bodies into one function. And check out the link below for a list of things possible in Lua... its really quite extensive. Keep in mind, though, that currently Lua does not work in single player... (why is this?)

A1 Lua Scripting Guide


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

Replies:

Possibilities in ForgeEnder 3/10/05 5:31 p.m.
     Re: Possibilities in Forgethermoplyae 3/10/05 6:27 p.m.
           So.... what's lua? *NM*luke9 3/10/05 8:03 p.m.
                 Re: So.... what's lua?Johannes Gunnar 3/10/05 10:24 p.m.
                       Re: So.... what's lua?Bob-B-Q 3/11/05 3:20 a.m.
                             Re: So.... what's lua?doy 3/12/05 5:51 p.m.
           Re: Possibilities in ForgeEnder 3/11/05 2:25 a.m.
                 Re: Possibilities in ForgeJohannes Gunnar 3/11/05 4:26 a.m.
                 Re: Possibilities in ForgeAd Astra 3/11/05 4:28 a.m.
                       Re: Possibilities in ForgeEnder 3/11/05 4:45 a.m.
                             Re: Possibilities in ForgeJohannes Gunnar 3/11/05 7:13 a.m.
                                   Re: Possibilities in ForgeMe_43 3/11/05 12:49 p.m.
                                   Re: Possibilities in ForgeEnder 3/12/05 5:22 a.m.
                                         Re: Possibilities in ForgeJohannes Gunnar 3/12/05 6:20 a.m.
                                               Re: Possibilities in ForgeEnder 3/12/05 10:27 a.m.
                                                     Re: split poly vs real cilinders [img]•M 3/12/05 11:15 a.m.
                             Re: Possibilities in ForgeSteve Levinson 3/11/05 12:39 p.m.
           Re: Possibilities in Forgedoy 3/12/05 6:25 p.m.
                 Re: Possibilities in Forgedoy 3/12/05 6:29 p.m.
                       Re: Possibilities in ForgeEnder 3/15/05 1:37 a.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.