Difference between revisions of "User talk:AdiBeiElderScrolls"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>AdiBeiElderScrolls
 
imported>AdiBeiElderScrolls
 
(6 intermediate revisions by 3 users 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)


An answer to a special topic then set the RufVernommen variable.
[[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.


Here is a code summary of the horse (sorry, but comments are in german)
Thanks for writing up the [[Debug Scripts]] article, it's a good initiation.


<pre>ScriptName 0poScrPferdBegleiter01
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)


; Variable, die dem Pferd mitteilt, es wurde gerufen
: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)
short RufVernommen
short Unterwegs
float Entfernung
short Abstand1000
short Abstand2000
short Abstand3000
short Abstand4000
short Abstand5000
short Abstand10000
short Abstand15000
short Abstand20000
short Abstand25000
short Abstand30000
 
Begin GameMode
 
  If ( Abstand1000 == 0)
      Set Abstand1000 To 1000
      Set Abstand2000 To 2000
      Set Abstand3000 To 3000
      Set Abstand4000 To 4000
      Set Abstand5000 To 5000
      Set Abstand10000 To 10000
      Set Abstand15000 To 15000
      Set Abstand20000 To 20000
      Set Abstand25000 To 25000
      Set Abstand30000 To 30000
  EndIf
 
  If RufVernommen
      ; lade das Package, um den Besitzer aufzusuchen
      If ( GetIsCurrentPackage "0poAIBegleiter01Aufsuchen" == 0 )
        ; jedes Package entfernen, das nicht dafür sorgt, das der Begleiter aufgesucht wird
        RemoveScriptPackage
        ; das Package veranlasst das Pferd zum Besitzer zu reisen
        AddScriptPackage "0poAIBegleiter01Aufsuchen"
        ; damit die Änderung sofort wirksam wird
        EvaluatePackage
      EndIf
      Set Entfernung To GetDistance "0poBegleiter01Ref"
      Message "Fabians Schimmel hat den Ruf vernommen. Es ist %.0f entfernt", Entfernung
      ; setze die Variable zurück
      Set RufVernommen To 0
      Set Unterwegs To 1
  EndIf
 
  ;prüfen, ob wir unser Ziel erreicht haben
  If Unterwegs
 
      If ( GetDistance "0poBegleiter01Ref" < 1000 )
        Message "Fabians Schimmel ist weniger als %.0f entfernt", Abstand1000
      ElseIf ( GetDistance "0poBegleiter01Ref" < 2000 )
        Message "Fabians Schimmel ist weniger als %.0f entfernt", Abstand2000
      ElseIf ( GetDistance "0poBegleiter01Ref" < 3000 )
        Message "Fabians Schimmel ist weniger als %.0f entfernt", Abstand3000
      ElseIf ( GetDistance "0poBegleiter01Ref" < 4000 )
        Message "Fabians Schimmel ist weniger als %.0f entfernt", Abstand4000
      ElseIf ( GetDistance "0poBegleiter01Ref" < 5000 )
        Message "Fabians Schimmel ist weniger als %.0f entfernt", Abstand5000
      ElseIf ( GetDistance "0poBegleiter01Ref" < 10000 )
        Message "Fabians Schimmel ist weniger als %.0f entfernt", Abstand10000
      ElseIf ( GetDistance "0poBegleiter01Ref" < 15000 )
        Message "Fabians Schimmel ist weniger als %.0f entfernt", Abstand15000
      ElseIf ( GetDistance "0poBegleiter01Ref" < 20000 )
        Message "Fabians Schimmel ist weniger als %.0f entfernt", Abstand20000
      ElseIf ( GetDistance "0poBegleiter01Ref" < 25000 )
        Message "Fabians Schimmel ist weniger als %.0f entfernt", Abstand25000
      ElseIf ( GetDistance "0poBegleiter01Ref" < 30000 )
        Message "Fabians Schimmel ist weniger als %.0f entfernt", Abstand30000
      EndIf
 
      If ( GetDistance "0poBegleiter01Ref" < 350 )
        ; wir sind jetzt nahe genug, laden wir das PferdInDerWildnis Package
        If ( GetIsCurrentPackage "0poAIPferdInDerWildnis" == 0 )
            ; nicht benötigtes Package entfernen
            RemoveScriptPackage
            ; das Package veranlasst das Pferd zum Besitzer zu reisen
            AddScriptPackage "0poAIPferdInDerWildnis"
        EndIf
        ; setze die Variable zurück
        Set Unterwegs To 0
      EndIf
  EndIf
 
End</pre>
[[User:AdiBeiElderScrolls|AdiBeiElderScrolls]] 18:16, 7 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)