Jump to content

sslActorAlias.psc(2326,4): experience is not a variable


Recommended Posts

Posted (edited)

Can someone tell me why the Papyrus compiler doesn't see the "experience" variable?

Below is line 2325. The errored line (2326), "if experience == -2", has the variable "experience" above it in the method signature but doesn't seem to detect it.

Quote
;orgasm stuff
function Orgasm(float experience = 0.0)
    if experience == -2

 

 

Same problem as this person here (@Kakabishan, July 23, 2022): https://www.loverslab.com/topic/194231-script-compiling-issue-sslactoraliaspsc/

 

sslActorAlias.psc is a source file from SexLab SE - Sex Animation Framework v1.6.3.

 

Edited by sixth of year
Posted

The papyrus compiler errors usually shouldn't be taken literally. The most typical error I see is it complaining about loops in code that doesn't even have them.

 

Quote

cannot compare a experience to a int (cast missing or types unrelated)

 

Suggest experience may be a type, so, change the variable name to "banana" and test again.

Posted (edited)
On 1/14/2024 at 5:10 PM, traison said:

Suggest experience may be a type, so, change the variable name to "banana" and test again.

 

LOL that actually worked.

 

Thanks so much!

Edited by sixth of year
Posted

"Experience" is also a mod. Part of it is "Experience.psc" file. So if you have "Experience.psc" installed, "experience" really is not a variable (coz its a script name).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...