help binding?

Obsidian General.
DeathDealer
Vertex
Vertex
Posts: 7
Joined: Mon Mar 14, 2011 1:55 pm
Contact:

Re: help binding?

Post by DeathDealer »

Sorry to bump such an old thread but I'm having the same problem. None of those command you guys listed above work. Can anyone give the right syntax? I keep getting the same error the OP has when I try to bind relationship's for npc's. :(
User avatar
Andrax17
npc_combine_elite
npc_combine_elite
Posts: 451
Joined: Wed May 05, 2010 7:11 pm
Location: Finland
Contact:

Re: help binding?

Post by Andrax17 »

i dont think its possible to bind setrelationship at all (atleats not directly), because binds cant have quotations twice and setrelationship already has quotations at "player D_LI".
DeathDealer
Vertex
Vertex
Posts: 7
Joined: Mon Mar 14, 2011 1:55 pm
Contact:

Re: help binding?

Post by DeathDealer »

Andrax17 wrote:i dont think its possible to bind setrelationship at all (atleats not directly), because binds cant have quotations twice and setrelationship already has quotations at "player D_LI".


But the strange thing is it is possible because I've done it before in the past! I remember finding a way to easily press a key to activate my own custom made relationships via console at will like 3-4 years ago on Obsidian. Was really fun.


I forgot that special trick though, there's gotta be a way.
User avatar
Shana
Lead Developer
Lead Developer
Posts: 2971
Joined: Tue Aug 29, 2006 8:12 pm
Location: Germany
Contact:

Re: help binding?

Post by Shana »

You could try making it an alias and then bind the alias, or put the codes in cfgs and then bind exec cfgname.
DeathDealer
Vertex
Vertex
Posts: 7
Joined: Mon Mar 14, 2011 1:55 pm
Contact:

Re: help binding?

Post by DeathDealer »

W0rf0x wrote:You could try making it an alias and then bind the alias, or put the codes in cfgs and then bind exec cfgname.

How would I do that?


Also, the code I'm trying to use as an example is:


bind t "ent_fire npc_combine_s setrelationship "player d_HT 99"


Which obviously doesn't work via Console as it gives me the error displayed in the OP.
User avatar
Neico
Lead Coder
Lead Coder
Posts: 1799
Joined: Tue Aug 15, 2006 3:39 pm
Location: Germany
Contact:

Re: help binding?

Post by Neico »

bind t "ent_fire npc_combine_s setrelationship player d_HT 99"

alias playerrelationship "ent_fire npc_combine_s setrelationship player d_HT 99"
bind t playerrelationship

or something like that
Image
DeathDealer
Vertex
Vertex
Posts: 7
Joined: Mon Mar 14, 2011 1:55 pm
Contact:

Re: help binding?

Post by DeathDealer »

Neico wrote:bind t "ent_fire npc_combine_s setrelationship player d_HT 99"

alias playerrelationship "ent_fire npc_combine_s setrelationship player d_HT 99"
bind t playerrelationship

or something like that

No dice, gives me this error below:


___________________
Can't parse relationship info (player) - Expecting 'name [D_HT, D_FR, D_LI, D_NU] [1-99]'
___________________


Any ideas? :?
User avatar
Neico
Lead Coder
Lead Coder
Posts: 1799
Joined: Tue Aug 15, 2006 3:39 pm
Location: Germany
Contact:

Re: help binding?

Post by Neico »

alias playerrelationship ent_fire npc_combine_s setrelationship "player d_HT 99"

try that... if this doesn't work then make a new feature request on the bugtracker and me or MMa will look what we can do about it~
Image
DeathDealer
Vertex
Vertex
Posts: 7
Joined: Mon Mar 14, 2011 1:55 pm
Contact:

Re: help binding?

Post by DeathDealer »

Neico wrote:alias playerrelationship ent_fire npc_combine_s setrelationship "player d_HT 99"

try that... if this doesn't work then make a new feature request on the bugtracker and me or MMa will look what we can do about it~

But even if that does work, how can I bind it to a key?
User avatar
Shana
Lead Developer
Lead Developer
Posts: 2971
Joined: Tue Aug 29, 2006 8:12 pm
Location: Germany
Contact:

Re: help binding?

Post by Shana »

By binding the name of the alias, in this case "playerrelationship."
DeathDealer
Vertex
Vertex
Posts: 7
Joined: Mon Mar 14, 2011 1:55 pm
Contact:

Re: help binding?

Post by DeathDealer »

W0rf0x wrote:By binding the name of the alias, in this case "playerrelationship."

Yeah, doesn't work. Keeps giving me this error:


Can't parse relationship info (player) - Expecting 'name [D_HT, D_FR, D_LI, D_NU] [1-99]'
User avatar
Shana
Lead Developer
Lead Developer
Posts: 2971
Joined: Tue Aug 29, 2006 8:12 pm
Location: Germany
Contact:

Re: help binding?

Post by Shana »

Then you have to go the more complicated way of putting each code in a cfg and then bind exec cfgname.
DeathDealer
Vertex
Vertex
Posts: 7
Joined: Mon Mar 14, 2011 1:55 pm
Contact:

Re: help binding?

Post by DeathDealer »

W0rf0x wrote:Then you have to go the more complicated way of putting each code in a cfg and then bind exec cfgname.


Can you teach me how to do that, would be nice of you. :D
Post Reply