Jump to content

Quick Questions, Quick Answers


Mattiewagg

Recommended Posts

I want to add a http://www.creationkit.com/Sleep_(Procedure) to the player, I want the player to go to sleep whenever he is near a bed and a globalvariable is below a certain value, the person who controls the character(the player) will have his controls disabled until 8 hours of ingametime have passed.

Then during that time I want the timescale to advance quickly until 8 hours have passed. I know how to do the timescale and disable controls part, but I don't know how to do the sleep procedure.

 

This is actually good timing; I'm trying to do something in a script based on a GlobalVariable called PlayerFollowerCount, and my script won't let me cast the GlobalVariable value to an int to use in my script. I'm getting this error:

Script.psc(7,5): type mismatch while assigning to a int (cast missing or types unrelated)

Anyone know how to use globalvariables to make decisions in script?

Link to comment
Share on other sites

  • Replies 2.6k
  • Created
  • Last Reply

Top Posters In This Topic

 

 

I want to add a http://www.creationkit.com/Sleep_(Procedure) to the player, I want the player to go to sleep whenever he is near a bed and a globalvariable is below a certain value, the person who controls the character(the player) will have his controls disabled until 8 hours of ingametime have passed.

Then during that time I want the timescale to advance quickly until 8 hours have passed. I know how to do the timescale and disable controls part, but I don't know how to do the sleep procedure.

This is actually good timing; I'm trying to do something in a script based on a GlobalVariable called PlayerFollowerCount, and my script won't let me cast the GlobalVariable value to an int to use in my script. I'm getting this error:

Script.psc(7,5): type mismatch while assigning to a int (cast missing or types unrelated)
Anyone know how to use globalvariables to make decisions in script?

You can use Get/SetValueInt, or:

 

GetValue == 1.0

 

Or GetValue() as Int - might not work, don't remember

Link to comment
Share on other sites

I hope this is the right place to ask, I've looked all over and even started digging around in the script. I've been playing SkyRe for a year without problems. Decided to finally try a blood magic person from the alteration tree. The 75% magic cost reduction applies but the feedback 25% of base cost damage to health does not happen. Trying to fix this to work normally (get health damage feedback).

I reordered Skyre in the plugins appropriately as well as turned every other mod off except Skyre with no progress.

Any ideas?

Link to comment
Share on other sites

I've been making my own leveled loot barrels of food so that the ingredients for recipes are levelled to match the recipes, and for some reason, I am picking up an exhorbitant amount of flour. There is only the one in my loot table, but I get the feeling that they have added it somewhere else. I have followed the user trail from the flour and cannot find where it could be being added. Does Hearthfires BYOH have a script that could be sneaking it in somehow? How do I find this flour and remove it?!

Link to comment
Share on other sites

Hmm, well I can't imagine why it's appearing so much, then. I already checked all the users, and none of them contribute to the barrels, but the ones I added myself - 1 Litem per barrel (containing 1 definite item, and four 75% items - the same as all of the other ingredients that I have added). I may just have some really obscure 'luck' in often receiving flour over other ingredients, though they are all leveled the same (except those that are a higher level and not meant to show, and do not as yet).

Link to comment
Share on other sites

I decided to extract all of the HF scripts and look through them with Notepad++ to see if I could find the culprit. The only script I can find is attached to the house building quest (scripts\byoh_qf_byohhousebuilding_0100305d.pex) though I can't read the script properly (notepad++)- there are a lot of nuls in it, and I can't copy the text. There are six mentions of flour in there, and a couple of mentions of the food barrels, though I couldn't say if they are specific instances of the barrels inside the houses, or whether that is how the game is adding the extra flour everywhere. If it is, is there a way to counter it (and do I need an addon for Notepad++ for the pex files?)?

 

This script uses the LitemBarrelFoodSame70 via quest. Could I remove it from the use list without any repercussions?

Edited by Ellorienne
Link to comment
Share on other sites

Ah yes, thank you. Yes, that is indeed the culprit!

 

; add flour to food containers
LItemBarrelFoodSame70.AddForm(BYOHLItemFoodFlour, 1, 1)
LItemBarrelFoodSameSmall.AddForm(BYOHLItemFoodFlourSmall, 1, 1)

 

Can I remove those lines from the script? Or what would the previous way be better, removing the quest (to which the script is attached) from the barrels? I need it to be a part of the mod I'm creating.

Edited by Ellorienne
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...