Jump to content

Armour craft conditions on book read.


Guest deleted162293063

Recommended Posts

Guest deleted162293063

I would like to create a recipe for armour to appear in forge on condition only after a specific book was read. Is there any way to do that. I'm new to modding by the way.

So it would look like this: Book 'Iron armour of bandit' is read by player > it's recipe appears on forge and is able to be crafted.

Link to comment
Share on other sites

Guest deleted162293063

Ok so i'm going to assign status effect on reading a book and then make it hidden in ui and thats it. And in recipe set its condition for HasMagicEffect. If thats not right then please correct me

Edited by GaeaNexusMods
Link to comment
Share on other sites

1) Create a 'Global Variable' with initial value of '0'

2) In your recipe add the condition:

GetGlobalValue > Your Add Here Your Global = 1

3) On your book you add this simple script:


GlobalVariable Property MyGlobal Auto

EVENT OnRead()
MyGlobal.SetValue( 1 )
GoToState("AllDone")
ENDEVENT

STATE AllDone
ENDSTATE

And You Are Done.


* Don't forget to fill in the property's of the script, you need to assign in the script the 'Global Variavle' you created in step '1'

Link to comment
Share on other sites

Many armor mods (such as DX Succubus ) simply require that the book is in your inventory. Just need to add a 'GetItemCount' conditional to the recipes, no need for any scripts.

 

But if you want it as stated initially, you can just look at any book that starts a quest, I.e. in CK 'Book' section, look for 'LegendofRedEagle'

You can see that it has a script attached that sets stage of a quest.

So you can:

Create a small Quest of type Miscellaneous, run once, not 'start game enabled'

Add stages 0 (start up) and 10(shut down, Complete Quest). Add quest objective (10):'You have gained the knowledge to forge Armor of Bandit'

On stage 10, add a new log entry (can be empty) and add a fragment: SetObjectiveCompleted(10)

on your book, attach same exact script as the Red Eagle book, fill its properties with your Quest, and stage 10.

Then on Constructibles, you can set a conditional: GetQuestCompleted (your quest) == 1

Link to comment
Share on other sites

Guest deleted162293063

Many armor mods (such as DX Succubus ) simply require that the book is in your inventory. Just need to add a 'GetItemCount' conditional to the recipes, no need for any scripts.

 

But if you want it as stated initially, you can just look at any book that starts a quest, I.e. in CK 'Book' section, look for 'LegendofRedEagle'

You can see that it has a script attached that sets stage of a quest.

So you can:

Create a small Quest of type Miscellaneous, run once, not 'start game enabled'

Add stages 0 (start up) and 10(shut down, Complete Quest). Add quest objective (10):'You have gained the knowledge to forge Armor of Bandit'

On stage 10, add a new log entry (can be empty) and add a fragment: SetObjectiveCompleted(10)

on your book, attach same exact script as the Red Eagle book, fill its properties with your Quest, and stage 10.

Then on Constructibles, you can set a conditional: GetQuestCompleted (your quest) == 1

You know I could bound my quest to start after you end another quest of blacksmith with that dagger and helm tutorial. How could I start a new quest when other quest ends?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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