Jump to content

Recommended Posts

Posted

;Start the quest

bool
if (game.getplayer().getrace() == valkyrieRace=true
if (game.getplayer().getrace() == valkyrieRace_upper=true
if game.getplayer().getlevel() == 5
endif
endif
endif
alias_note.ForceRefto(Game.GetPlayer().placeatme(Note))
(WICourier as WICourierScript).AddAliasToContainer(Alias_Note)

 

 

Getting this for compile, trying to make the start here race specific and level requirement!!!

Not understanding no viable alternatnative input, r...n? looked it up on papyrus ref,

 

 

Starting 1 compile threads for 1 files...

 

Compiling "QF_Valkyrie_CourierQuest_0100CA01"...

 

C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_Valkyrie_CourierQuest_0100CA01.psc(45,4): no viable alternative at input '\\r\\n'

 

No output generated for QF_Valkyrie_CourierQuest_0100CA01, compilation failed.

 

Batch compile of 1 files finished. 0 succeeded, 1 failed.

 

Failed on QF_Valkyrie_CourierQuest_0100CA01

 

Posted

What Ceruulean said would help allow it to compile. You'd also need to drop the word bool. You'd need to move the actions you want to take place inside the IF statement rather than after them.

 

 

 

if (game.getplayer().getrace() == valkyrieRace)
if (game.getplayer().getrace() == valkyrieRace_upper)
if game.getplayer().getlevel() == 5
alias_note.ForceRefto(Game.GetPlayer().placeatme(Note))
(WICourier as WICourierScript).AddAliasToContainer(Alias_Note)
endif
endif
endif 

 

 

 

But since you are using the stock courier, why not add your quest as another node in the WICourierNodeSharesEvent of the Story Manager? It is under Change Location Event. You can apply these as conditions to the node. No need to hassle with a script fragment then.

 

Failing that you can probably use the conditions on the starting stage of your courier quest.

Posted

checked out the WIC courier node, not sure what to put there, but I don't want to screw anything else there.

But thanks.

 

but when I moved the endif I got a Missing Rparen r//n... I tried looking for Rparen on papyrus ref nothing?

Posted (edited)

it means "right parentheses," I think. Hard to tell without a full script.

 

Also, level requirement should be >= 5, right? Unless the player can only get the message at level 5?

Edited by Ceruulean
Posted

;Start the quest

if (game.getplayer().getrace() == valkyrieRace)
if (game.getplayer().getrace() == valkyrieRace_upper)
if (game.getplayer().getlevel() >= 5)

alias_note.ForceRefto(Game.GetPlayer().placeatme(Note))
(WICourier as WICourierScript).AddAliasToContainer(Alias_Note)
endif
endif
endif

 

here is what I got now, but the races are undefined? when I put bool in then I get the no viable input again?

 

This is all put in at my first stage.

Posted (edited)

You need to set up properties for those races and make sure they are properly filled with the correct data. Go to the stage in question, press the properties button, a new window appears. Press Add Property, a new window appears. For Type select Race. For Name enter valkyrieRace. Leave Initial Value & Documentation String empty. Press OK and repeat for the 2nd race. After they have appeared in the main properties window, double check that they values are correct. If you used the same name as the race's record then it should have auto-filled. If not assign the correct race.

 

The bool is not needed. You only use 'bool' if you are defining a property or local variable that will be used as a bool within the script or script fragment.

 

EDIT: Forgot, since you've not been able to get the script fragment to compile yet, you will need to do an additional step.

 

On the quest stage in question, press the Edit button where the script fragment code would display. In the new window type in a comment string line, something like

;Fragment Placeholder

Then press Build followed by File > Save, after that File > Exit. Press OK and close the quest form, then reopen it. The script has to be existing before you can add properties as outlined above.

Edited by IsharaMeradin
Posted

already had the properties set, just wen I named them I didnt I had race after valkyrie, but not in the property

 

I got it compiled without error now

just got to test it

thnx again

  • Recently Browsing   0 members

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