Jrew Posted July 16, 2014 Posted July 16, 2014 ;Start the questboolif (game.getplayer().getrace() == valkyrieRace=trueif (game.getplayer().getrace() == valkyrieRace_upper=trueif game.getplayer().getlevel() == 5endifendifendifalias_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
IsharaMeradin Posted July 16, 2014 Posted July 16, 2014 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.
Jrew Posted July 16, 2014 Author Posted July 16, 2014 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?
Ceruulean Posted July 16, 2014 Posted July 16, 2014 (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 July 16, 2014 by Ceruulean
Jrew Posted July 16, 2014 Author Posted July 16, 2014 ok Ill change the level requirement, just got to figure out right parenthasese
Jrew Posted July 16, 2014 Author Posted July 16, 2014 ;Start the questif (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)endifendifendif 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.
IsharaMeradin Posted July 16, 2014 Posted July 16, 2014 (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 PlaceholderThen 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 July 16, 2014 by IsharaMeradin
Jrew Posted July 16, 2014 Author Posted July 16, 2014 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 nowjust got to test itthnx again
Recommended Posts