Jump to content

dontpanic

Members
  • Posts

    88
  • Joined

  • Last visited

Nexus Mods Profile

About dontpanic

Profile Fields

  • Country
    United States
  • Currently Playing
    Warframe
  • Favourite Game
    Titanfall

dontpanic's Achievements

Enthusiast

Enthusiast (6/14)

  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In
  • First Post

Recent Badges

0

Reputation

  1. Probably last bump, but if anyone can help I would appreciate it.
  2. What I am trying to accomplish is creating a separate inventory for storing stuff with an NPC without using their normal storage. The normal storage would be used for changing armor and weapons and the second storage used for everything else. This would prevent the NPC from equipping things I don't want them to. Can anyone help me with accomplishing this? I have seen it done with other mods, but don't know how. I have already created a custom companion.
  3. I have been trying to figure out what I need to do to add an Item I created to the player on loading a game. Does anyone have an idea on how to do this or link me to a tutorial on how to do this? I was thinking of creating a new quest that was started and somehow adding a script.
  4. Cipscis, Thanks a bunch for your help in making this script work. I appreciate the time you have given to explain everything to me.
  5. I was able to get the script to give me the item after 1 day (I set one day for testing), but it won't give me anything after that. I want it to continuously provide 300 gold every one week. Scriptname aaIncomeScript extends Quest MiscObject Property Gold Auto ;I set the gold from the game for this Quest Property InnQuest Auto ObjectReference Property PlayerSafe Auto Event OnInit() ; This event will run once, when the script is initialized RegisterForUpdateGameTime(24) GoToState ("polling") EndEvent State Running Event OnBeginState() Debug.Trace("Entered the running state!") EndEvent EndState auto State polling Event OnUpdateGameTime() if (InnQuest.GetStage() == 20) PlayerSafe.AddItem(Gold, 300, true) ; gives Safe 300 gold Debug.Trace("Got what we needed, so stop polling!") GotoState ("active") endif EndEvent EndState
  6. Did you mean adding auto at the end of the script like I did below? GotoState ("auto") I tried placing it in the first script and it didn't seem to have an effect. Scriptname aaIncomeScript extends Quest MiscObject Property Gold Auto ;I set the gold from the game for this Quest Property InnQuest Auto Event OnInit() ; This event will run once, when the script is initialized RegisterForUpdateGameTime(24) EndEvent State Running Event OnBeginState() Debug.Trace("Entered the running state!") EndEvent EndState State polling Event OnUpdateGameTime() if (InnQuest.GetStage() == 20) Game.GetPlayer().AddItem(Gold, 300, true) ; gives player 300 gold Debug.Trace("Got what we needed, so stop polling!") GotoState ("auto") endif EndEvent EndState I have the script above tied to a Quest. The quest is activated via initialization from a menu script, that seems to be working for it's other functions. This is the only thing stopping my progression in finishing... Thank you for coming this far with me. Hopefully I can find a solution soon.
  7. I tried modifying the script like so and still no progress. Not sure what I am doing wrong. I have the variables tied to there appropriate assets, but I can't get the script to give me 300 gold every 7 days. Scriptname aaIncomeScript extends Quest MiscObject Property Gold Auto ;I set the gold from the game for this Quest Property InnQuest Auto Event OnInit() ; This event will run once, when the script is initialized RegisterForUpdateGameTime(24) EndEvent State polling Event OnUpdateGameTime() if (InnQuest.GetStage() == 10) Game.GetPlayer().AddItem(Gold, 300, true) ; gives player 300 gold Debug.Trace("Got what we needed, so stop polling!") endif EndEvent EndState State active ; Do nothing in here EndState
  8. How does this look? Scriptname aaIncomeScript extends Quest MiscObject Property Gold Auto ;I set the gold from the game for this Function SomeFunction() RegisterForUpdateGameTime(24) ; Before we can use onUpdateGameTime() we must register. endFunction Event OnUpdateGameTime() ; because of how we registered, this event occurs every 30 minutes of game time. UnregisterForUpdateGameTime() ; Do some stuff Game.GetPlayer().AddItem(Gold, 300, true) ; gives player 300 gold Debug.Trace("Got what we needed, so stop polling!") endEvent I am trying to get the player to receive the amount of gold every 7 days. Unfortunately I can't seem to get the script to work very well.
  9. Basically I am trying to give the player an income similar to how your wife or husband gives you money when they open a shop. Unfortunately I have been unsuccessful understanding how to make the timer work. I tried using the following and it does not work. Can someone please help me with setting up the feature? Scriptname aaIncomeScript extends Quest MiscObject Property Gold Auto ;I set the gold from the game for this Event OnUpdateGameTime() ; Do some stuff RegisterForUpdateGameTime(24) Game.GetPlayer().AddItem(Gold) ;Unsure of how to give the player a certain amount. endEvent
×
×
  • Create New...