Difference between revisions of "User talk:AdiBeiElderScrolls"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>AdiBeiElderScrolls
imported>AdiBeiElderScrolls
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
I've learned a lot here, as this wiki provides a lot of helpful hints, but still some questions I can't solve.
I've learned a lot here, as this wiki provides a lot of helpful hints, but still some questions I can't solve.


I'm still fighting with a good solution for this companion thing. There is some helpful code for having companions with horses, that follow. But it doesn't really work well. Still timing problems may occur and the NPC is standing in front of his horse, without mounting it or time displays that it has elapsed ...
I'm still fighting with a good solution for this companion thing. But I have published meantime a relativly reliable solution under [[NPCs%2C_Horses%2C_and_you...|NPCs Horses and you]]. Hope to get some testing comments on it ;)


Moreover I would like to give the NPC companion a possibility to call his horse. I tried to add some AI package in the GameMode script of the horse, if a certain script variable is set. But it seems, that the horse, if it is out of sight, just doesn't react or evaluate any package (which makes sense, to keep the game performance).
[[User:AdiBeiElderScrolls|AdiBeiElderScrolls]] 15:09, 15 November 2006 (EST)
 
Here is a code summary of the horse
 
<pre>ScriptName CompanionHorse
 
short HeardCall
short OnTheWay
long OverallDistance
short Distance1000
short Distance2000
short Distance3000
short Distance4000
short Distance5000
short Distance10000
short Distance15000
short Distance20000
short Distance25000
short Distance30000
 
Begin GameMode
 
  If ( Distance1000 == 0)
      Set Distance1000 To 1000
      Set Distance2000 To 2000
      Set Distance3000 To 3000
      Set Distance4000 To 4000
      Set Distance5000 To 5000
      Set Distance10000 To 10000
      Set Distance15000 To 15000
      Set Distance20000 To 20000
      Set Distance25000 To 25000
      Set Distance30000 To 30000
  EndIf
 
  If HeardCall
      ; load package to travel to companion
      If ( GetIsCurrentPackage HorseTravelToCompanion == 0 )
        ; remove any currently running package
        RemoveScriptPackage
        ; get travel package
        AddScriptPackage HorseTravelToCompanion
        EvaluatePackage
      EndIf
      Set OverallDistance To GetDistance MyCompanion
      Message "Fabians Horse has heard the call, it is %.0f away", OverallDistance
      ; reset vars
      Set HeardCall To 0
      Set OnTheWay To 1
  EndIf
 
  ; check if we have arrived
  If OnTheWay
 
      If ( GetDistance MyCompanion < 1000 )
        Message "Fabians horse is less than %.0f away", Abstand1000
      ElseIf ( GetDistance MyCompanion < 2000 )
        Message "Fabians horse is less than %.0f away", Abstand2000
      ElseIf ( GetDistance MyCompanion < 3000 )
        Message "Fabians horse is less than %.0f away", Abstand3000
      ElseIf ( GetDistance MyCompanion < 4000 )
        Message "Fabians horse is less than %.0f away", Abstand4000
      ElseIf ( GetDistance MyCompanion < 5000 )
        Message "Fabians horse is less than %.0f away", Abstand5000
      ElseIf ( GetDistance MyCompanion < 10000 )
        Message "Fabians horse is less than %.0f away", Abstand10000
      ElseIf ( GetDistance MyCompanion < 15000 )
        Message "Fabians horse is less than %.0f away", Abstand15000
      ElseIf ( GetDistance MyCompanion < 20000 )
        Message "Fabians horse is less than %.0f away", Abstand20000
      ElseIf ( GetDistance MyCompanion < 25000 )
        Message "Fabians horse is less than %.0f away", Abstand25000
      ElseIf ( GetDistance MyCompanion < 30000 )
        Message "Fabians horse is less than %.0f away", Abstand30000
      EndIf
 
      If ( GetDistance MyCompanion < 350 )
        ; close enough to cancel travel package
        If ( GetIsCurrentPackage HorsePCStay == 0 )
            RemoveScriptPackage
            AddScriptPackage HorsePCStay
        EndIf
        ; reset var
        Set OnTheWay To 0
      EndIf
  EndIf
 
End</pre>
[[User:AdiBeiElderScrolls|AdiBeiElderScrolls]] 18:16, 7 November 2006 (EST)


[[User:Entim|Entim]] 14:52, 13 November 2006 (EST): Hi AdiBeiElderScrolls. I'd just like to draw your attention to the 'Show preview' button of the page editing screen. Please check the [[Welcome to Wiki Syntax]], [[Welcome to the Wiki]] articles and the [[Special:Recentchanges|Recent changes]] page if you haven't yet. Articles are not the place for questions or chatting, please use the article's Talk page instead.
[[User:Entim|Entim]] 14:52, 13 November 2006 (EST): Hi AdiBeiElderScrolls. I'd just like to draw your attention to the 'Show preview' button of the page editing screen. Please check the [[Welcome to Wiki Syntax]], [[Welcome to the Wiki]] articles and the [[Special:Recentchanges|Recent changes]] page if you haven't yet. Articles are not the place for questions or chatting, please use the article's Talk page instead.
Line 101: Line 13:
Hi Entim, suppose that you may have enriched my attempt. Thanks a lot. Sorry about the preview and all this. I use it, sincerly, but, when I read the article again, I discover errors or parts, that may be misinterpreted again. And so follows a new edit session ... sorry to be so imperfect to say everything at the first time ;)
Hi Entim, suppose that you may have enriched my attempt. Thanks a lot. Sorry about the preview and all this. I use it, sincerly, but, when I read the article again, I discover errors or parts, that may be misinterpreted again. And so follows a new edit session ... sorry to be so imperfect to say everything at the first time ;)
[[User:AdiBeiElderScrolls|AdiBeiElderScrolls]] 15:32, 13 November 2006 (EST)
[[User:AdiBeiElderScrolls|AdiBeiElderScrolls]] 15:32, 13 November 2006 (EST)
:I'm the one that edited your original article. Thanks for taking the time to write it up. FYI: Each article has a link to "Discussion" at the top of the page for discussing the contents, layout, etc...I moved your response to my edits there -> [[Talk:Debug_Scripts]]. [[User:Scruggs|Scruggs]] 15:41, 13 November 2006 (EST)

Latest revision as of 15:09, 15 November 2006

Hi out there, in this great Wiki!

I've learned a lot here, as this wiki provides a lot of helpful hints, but still some questions I can't solve.

I'm still fighting with a good solution for this companion thing. But I have published meantime a relativly reliable solution under NPCs Horses and you. Hope to get some testing comments on it ;)

AdiBeiElderScrolls 15:09, 15 November 2006 (EST)

Entim 14:52, 13 November 2006 (EST): Hi AdiBeiElderScrolls. I'd just like to draw your attention to the 'Show preview' button of the page editing screen. Please check the Welcome to Wiki Syntax, Welcome to the Wiki articles and the Recent changes page if you haven't yet. Articles are not the place for questions or chatting, please use the article's Talk page instead.

Thanks for writing up the Debug Scripts article, it's a good initiation.

Hi Entim, suppose that you may have enriched my attempt. Thanks a lot. Sorry about the preview and all this. I use it, sincerly, but, when I read the article again, I discover errors or parts, that may be misinterpreted again. And so follows a new edit session ... sorry to be so imperfect to say everything at the first time ;) AdiBeiElderScrolls 15:32, 13 November 2006 (EST)

I'm the one that edited your original article. Thanks for taking the time to write it up. FYI: Each article has a link to "Discussion" at the top of the page for discussing the contents, layout, etc...I moved your response to my edits there -> Talk:Debug_Scripts. Scruggs 15:41, 13 November 2006 (EST)