Jump to content

Quick Questions, Quick Answers


Mattiewagg

Recommended Posts

  • Replies 2.6k
  • Created
  • Last Reply

Top Posters In This Topic

Scriptname TrainingFormula extends ObjectReference  


Actor Property PlayerRef auto


float count


Event oninit()


count = 0




while PlayerRef.GetActorValue("Stamina")<=PlayerRef.GetBaseActorValue("Stamina")


if count==0
float y=PlayerRef.GetBaseActorValue("Stamina")
float x = 1
count=1
endif


if PlayerRef.GetActorValue("Stamina")<y
float x = x + (y-PlayerRef.GetActorValue("Stamina"))
float y = PlayerRef.GetActorValue("Stamina")
endif


if y<PlayerRef.GetActorValue("Stamina")
float y = PlayerRef.GetActorValue("Stamina")
endif


if x>PlayerRef.GetLevel()*100
PlayerRef.SetActorValue("Stamina",PlayerRef.GetBaseActorValue("Stamina")+2)
float x = 1
endif


endwhile




endevent

How can I make this work correctly?

 

Explanation:

 

When I lose stamina, I want the lost value to be recorded inside a variable, making it add up every time it does that.

 

When that variable goes over a certain value some other variable will be changed.

 

and

 

2. How can I find out what NPC's are in a certain Encounter Zone?

For example, I want to know what NPC's are in the below Encounter Zone.

http://i.gyazo.com/84f76d7b397ead4b20f74b2f82b90a27.png

Edited by Kerberus14
Link to comment
Share on other sites

Looking for a way of telling when the player has opened / closed showracemenu. (Specifically, to use as a tell for when their head shape may have changed.) Thanks.

I believe this is the correct function for this, without SKSE or some crazy Papyrus stuff :P

 

http://www.creationkit.com/OnRaceSwitchComplete_-_Actor

Link to comment
Share on other sites

 

Looking for a way of telling when the player has opened / closed showracemenu. (Specifically, to use as a tell for when their head shape may have changed.) Thanks.

I believe this is the correct function for this, without SKSE or some crazy Papyrus stuff :tongue:

 

Thanks. Yeah, what a weirdly specific function. Since it seems to come packaged with some unpredictable behavior, I'd be more than happy to know what SKSE has up its sleeve. (My mods pretty much demand it anyway.)

Link to comment
Share on other sites

Can anyone give me the link to the CK where all the sourcetypes are? I have been searching for it for almost 1 hour and I haven't found it.

Closest I got was this:

http://www.creationkit.com/GetWeaponType_-_Weapon

http://www.creationkit.com/GetEquippedItemType_-_Actor

Those are it AFAIK. Source types for what?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...