Jump to content

simple script compile error - help please


Recommended Posts

Posted

Beginning modder. Failing at basics. A little help appreciated. Getting frustrated because people ARE trying to help but I THINK they're all assuming I know more than I do! :)

 

I have this script:

 

Scriptname shirtoffmain extends Quest
SexLabFramework property SexLab auto
 
; Your function here
function ShirtOff()
 
    bool[] strip = new bool[33]
    ;  Strip chest
    bool[16] = true 
    ;  Strip chest secondary
    bool[26] = true
 
    ; Strip our actor of their shirt
    form[] ActorEquipment = SexLab.StripSlots(PlayerRef, strip)
 
; Your function end here
EndFunction
 
And when I try to compile it I get these errors:
 
Starting 1 compile threads for 1 files...
Compiling "shirtoffmain"...
C:\Games\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\shirtoffmain.psc(9,4): no viable alternative at input 'bool'
C:\Games\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\shirtoffmain.psc(9,4): no viable alternative at input 'bool'
C:\Games\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\shirtoffmain.psc(9,11): required (...)+ loop did not match anything at input ']'
C:\Games\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\shirtoffmain.psc(11,4): no viable alternative at input 'bool'
C:\Games\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\shirtoffmain.psc(11,4): no viable alternative at input 'bool'
C:\Games\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\temp\shirtoffmain.psc(11,11): required (...)+ loop did not match anything at input ']'
No output generated for shirtoffmain, compilation failed.
 
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on shirtoffmain
 

 

Posted

I think I figured out the 'bool' errors.

After the bool[] strip = new bool[33], I figured that looked like it was referring now to a boolean array called 'strip'.

So I changed the lines after that to :

strip[16] = true

and 

strip[26] = true

 

When I compiled I was only left with an error about PlayerRef not being defined.

Assuming that meant the instance of PlayerRef in the line:

form[] ActorEquipment = SexLab.StripSlots(PlayerRef, strip)

 

I changed PlayerRef to ActorRef and the compile completed.

 

My GOAL is to strip my player's chest piece. I THOUGHT I needed to refer to her as 'PlayerRef'. So if I leave 'ActorRef' in there, will it still strip my player or will it strip the NPC she's talking to?

 

 

 

Posted

I think I figured out the 'bool' errors.

After the bool[] strip = new bool[33], I figured that looked like it was referring now to a boolean array called 'strip'.

So I changed the lines after that to :

strip[16] = true

and 

strip[26] = true

 

When I compiled I was only left with an error about PlayerRef not being defined.

Assuming that meant the instance of PlayerRef in the line:

form[] ActorEquipment = SexLab.StripSlots(PlayerRef, strip)

 

I changed PlayerRef to ActorRef and the compile completed.

 

My GOAL is to strip my player's chest piece. I THOUGHT I needed to refer to her as 'PlayerRef'. So if I leave 'ActorRef' in there, will it still strip my player or will it strip the NPC she's talking to?

 

You need to define the PlayerRef in the propeties tab for the script.

 

Posted

I am not a scripter in this aspect.  I DO BELIEVE shane is correct!!  There are still two Refs covered that need defined:  Player or Actor ??? Player is you, Actor is who a call. to whom is affected.  <- I suck at more than 3 lines.  I would only look at modifying just one script within SexLab stuff, with research there can be something else that  will work for what you want, after a separate save of the original script and testing them, with protection to the original files, just for learning.

 

Only my 2 pennies. 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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