$hotlinepos: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Aca20031 (talk | contribs)
mNo edit summary
 
Aca20031 (talk | contribs)
m Fixed hotlink link
 
Line 7: Line 7:
==Example==
==Example==


  [[On_hotlink:on ^1:HOTLINK]]:*help*:#:{
  [[On_hotlink|on ^1:HOTLINK]]:*help*:#:{
   echo -atg Someone said help. It was in the [[$ord]]([[$gettok]]($hotlinepos,1,32)) word of line number [[$ord]]([[$gettok]]($hotlinepos,2,32)) which read: [[$hotline]]
   echo -atg Someone said help. It was in the [[$ord]]([[$gettok]]($hotlinepos,1,32)) word of line number [[$ord]]([[$gettok]]($hotlinepos,2,32)) which read: [[$hotline]]
  }
  }

Latest revision as of 00:30, 31 May 2009

Returns the word position and line number of a hotlink trigger

$hotlinepos
  • Returns: Word Token Number <space> Line Number

Example

on ^1:HOTLINK:*help*:#:{
 echo -atg Someone said help. It was in the $ord($gettok($hotlinepos,1,32)) word of line number $ord($gettok($hotlinepos,2,32)) which read: $hotline
}

See Also