Difference between revisions of "Journal"

From Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
−
__NOTOC__
+
{{header|Extended|ro|The #journal system variable determines the journal line selected using the [[scanJournal]] command.}}
−
== #journal ==
+
−
'''Extended System Variables'''
+
−
=== Description ===
+
−
{{ro}}
+
−
 
+
−
The [[Var_journal|#journal]] system variable determines the journal line selected using the [[scanJournal]] command
+
  
 
==== Example ====
 
==== Example ====
 
<pre>
 
<pre>
−
loop:
+
; example 1 (old way)
−
scanJournal 1
+
 
 +
waitForAttack:
 +
scanjournal 1
 
if is_attacking_you in #journal
 
if is_attacking_you in #journal
−
{
+
  msg guards $
−
  msg Guards$
+
goto waitForAttack
−
  call recallme
+
</pre>
−
}
+
<pre>
−
delteJournal
+
; example 2 (new way) (won't skip lines like the old way will)
−
goto loop
+
  
 +
set %jrnl #jindex
 +
while true
 +
  {
 +
  if #jindex > %jrnl
 +
      {
 +
      set %jrnl %jrnl + 1
 +
      scanjournal %jrnl
 +
      if is_attacking_you in #journal
 +
        event macro 1 0 Guards
 +
      }
 +
  }
 
</pre>
 
</pre>
−
==== See Also ====
+
 
−
{|
+
=See Also=
−
| Width=200px | [[deleteJournal]] || Width=200px | [[scanJournal]] || Width=200px | [[Var_jIndex|&#0035;jIndex]] || Width=200px | [[Var_jColor|&#0035;jColor]]
+
{{Extended}}
−
|}
+
−
----
+
−
{|
+
−
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px | [[Documentation#Extended|Extended System Variables]]
+
−
|}
+

Latest revision as of 10:17, 7 September 2007

⇒ The #journal system variable determines the journal line selected using the scanJournal command.

Example

; example 1 (old way)

waitForAttack:
scanjournal 1
if is_attacking_you in #journal
  msg guards $
goto waitForAttack
; example 2 (new way) (won't skip lines like the old way will)

set %jrnl #jindex
while true
   {
   if #jindex > %jrnl
      {
      set %jrnl %jrnl + 1
      scanjournal %jrnl
      if is_attacking_you in #journal
         event macro 1 0 Guards
      }
   }

See Also

Extended

  • Extended system variables show information about various systems in the Ultima Online client that can be gained by using certain commands.
#skill ⇒ Returns the current skill level for a skill chosen with chooseSkill command
#skillCap ⇒ Returns the current skill cap for a skill chosen with chooseSkill command
#skillLock ⇒ Returns the current lock status of the skill chosen with chooseSkill command
#journal ⇒ Returns the journal line selected using the scanJournal command
#jIndex ⇒ Returns the index of the current journal entry
#jColor ⇔ Returns the color of the text in the journal
#sysMsg ⇒ Returns the current system message
#sysMsgCol ⇔ Returns the current system message color
#targCurs ⇔ Returns if cursor is a target cursor
#cursKind ⇒ Returns the facet where the character is