llde / xOBSE

Oblivion Script extender source
247 stars 35 forks source link

SetOwningFactionRequiredRank Not Accepting Integer #145

Closed opiter09 closed 2 years ago

opiter09 commented 2 years ago

As you can see from this picture, I am passing to SOFRR an integer (7) as its only parameter, along with a calling reference that seems to be acceptable. Nevertheless, it is trying to tell me that I am missing the integer parameter. Screenshot (358)

llde commented 2 years ago

Wrong Syntax. You don't use () to pass arguments in legacy/obScript it is SetOwningFactionRequiredRank 0

katawful commented 2 years ago

More specifically, parentheses in this language are for order of evaluation and for forcing the compiler to accept certain syntaxes. It is bad practice to do what you are doing for this language

opiter09 commented 2 years ago

Your suggestion, to no-one's surprise, fixed the problem.