berkana_imperian_alias.xml 20.6 KB
Newer Older
1 2 3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MudletPackage>
<MudletPackage version="1.001">
Maiyannah Bishop's avatar
Maiyannah Bishop committed
4 5 6 7 8 9 10 11 12
	<TriggerPackage />
	<TimerPackage />
	<AliasPackage>
		<AliasGroup isActive="yes" isFolder="yes">
			<name>targetting</name>
			<script></script>
			<command></command>
			<packageName></packageName>
			<regex></regex>
13 14
			<Alias isActive="yes" isFolder="no">
				<name>switch targets</name>
15
				<script>Berkana.switchTargets()</script>
16 17 18 19
				<command></command>
				<packageName></packageName>
				<regex>^st$</regex>
			</Alias>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
20 21 22
			<Alias isActive="yes" isFolder="no">
				<name>single target</name>
				<script>-- Call targets out when we target them
23 24 25 26 27 28 29 30 31 32
-- Desired format same as old TF -
-- Now targetting: PersonA (v1) Also here: PersonB, PersonC, PersonD.

-- Assemble variables
Room = Room or {};
Room.Enemies = Room.Enemies or nil
Message = ""
Message_vNum = ""
Message_AlsoHere = ""

33 34 35 36 37 38 39
-- Is this a bodypart?  Then we're trying to target limbs, bail
if (matches[3]=="head") then
   send("target head")
   return
elseif (matches[3]=="torso") then
   send("target torso")
   return
40 41 42
elseif (matches[3]=="nothing") then
   send("target nothing")
   return
43 44
end

45 46 47
-- Set target
currTarget = matches[3]

48
-- Reset index
49
Valkryja.CurrIndex = 1
50

51 52 53 54 55 56 57 58 59
-- Do we know the vnum we're in?  If so, include it
if (Room.vNum) then
   Message_vNum = " (@ v"..tostring(Room.vNum)..")"
end

-- Assemble "also here"
if ((Room.Enemies) and (Room.Enemies.is_empty==false)) then
   Message_AlsoHere = " Also here: "
   for person in pairs(Room.Enemies) do
60 61
      Message_AlsoHere = Message_AlsoHere .. Room.Enemies[person]
   end
62 63 64 65
end

-- Assemble the complete call out for ring if it is enabled
Message = "Now targetting: "..currTarget..Message_vNum..Message_AlsoHere
66
Berkana.Message(Message)
67 68 69 70 71 72

if (Config.CallTargets==true) then
   send("rt "..Message)
end

-- Tell the server our current target
73
Berkana.setTarget(matches[3])
74 75 76 77

-- dealloc
Message = nil
Message_vNum = nil
78
Message_AlsoHere = nil
79 80 81 82
currTarget = nil

-- END OF SCRIPT
-- =============================================================================</script>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
83 84 85 86
				<command></command>
				<packageName></packageName>
				<regex>^(t|tar|target) ([A-Za-z]+)$</regex>
			</Alias>
87 88 89 90 91 92 93 94 95 96 97 98
			<Alias isActive="yes" isFolder="no">
				<name>two targets</name>
				<script>-- Call targets out when we target them
-- Desired format same as old TF -
-- Now targetting: PersonA (v1) Also here: PersonB, PersonC, PersonD.

-- Assemble variables
Room = Room or {};
Room.Enemies = Room.Enemies or nil
Message = ""
Message_vNum = ""
Message_AlsoHere = ""
99
Targets = {}
100

101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
-- Is this a bodypart?  Then we're trying to target limbs, bail
if (matches[3]=="right") and (matches[4]=="arm") then
   send("target right arm")
   return
elseif (matches[3]=="left") and (matches[4]=="arm") then
   send("target left arm")
   return
elseif (matches[3]=="right") and (matches[4]=="leg") then
   send("target right leg")
   return
elseif (matches[3]=="left") and (matches[4]=="leg") then
   send("target left leg")
   return   
end

116
-- Set target
117
-- Hacky, but lua is stupid with arrays
118 119
currTarget1 = matches[3]
currTarget2 = matches[4]
120 121 122 123
Valkryja.Targets[1] = currTarget1
Valkryja.Targets[2] = currTarget2

-- Reset index
Maiyannah Bishop's avatar
Maiyannah Bishop committed
124
Valkryja.CurrIndex = 1
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139

-- Do we know the vnum we're in?  If so, include it
if (Room.vNum) then
   Message_vNum = " (@ v"..tostring(Room.vNum)..")"
end

-- Assemble "also here"
if ((Room.Enemies) and (Room.Enemies.is_empty==false)) then
   Message_AlsoHere = " Also here: "
   for person in pairs(Room.Enemies) do
      Message_AlsoHere = Message_AlsoHere .. Room.Enemies[person]
   end
end

-- Assemble the complete call out for ring if it is enabled
140
Message = "Now targetting: ["..currTarget1.. "], " .. currTarget2 ..Message_vNum..Message_AlsoHere
141 142 143 144 145 146
Berkana.Message(Message)

if (Config.CallTargets==true) then
   send("rt "..Message)
end

147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
-- dealloc
Message = nil
Message_vNum = nil
Message_AlsoHere = nil
currTarget1 = nil
currTarget2 = nil

-- END OF SCRIPT
-- =============================================================================</script>
				<command></command>
				<packageName></packageName>
				<regex>^(t|tar|target) ([A-Za-z]+) ([A-Za-z]+)$</regex>
			</Alias>
			<Alias isActive="yes" isFolder="no">
				<name>three targets</name>
				<script>-- Call targets out when we target them
-- Desired format same as old TF -
-- Now targetting: PersonA (v1) Also here: PersonB, PersonC, PersonD.

-- Assemble variables
Room = Room or {};
Room.Enemies = Room.Enemies or nil
Message = ""
Message_vNum = ""
Message_AlsoHere = ""
Targets = {}

-- Set target
175
-- Hacky, but lua is stupid with arrays
176 177 178
currTarget1 = matches[3]
currTarget2 = matches[4]
currTarget3 = matches[5]
179 180
Valkryja.Targets[1] = currTarget1
Valkryja.Targets[2] = currTarget2
181 182 183
Valkryja.Targets[3] = currTarget3

-- Reset index
184
Valkryja.CurrIndex = 1
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206

-- Do we know the vnum we're in?  If so, include it
if (Room.vNum) then
   Message_vNum = " (@ v"..tostring(Room.vNum)..")"
end

-- Assemble "also here"
if ((Room.Enemies) and (Room.Enemies.is_empty==false)) then
   Message_AlsoHere = " Also here: "
   for person in pairs(Room.Enemies) do
      Message_AlsoHere = Message_AlsoHere .. Room.Enemies[person]
   end
end

-- Assemble the complete call out for ring if it is enabled
Message = "Now targetting: ["..currTarget1.. "], " .. currTarget2 .. ", " .. currTarget3 .. 
   Message_vNum..Message_AlsoHere
Berkana.Message(Message)

if (Config.CallTargets==true) then
   send("rt "..Message)
end
207 208 209 210 211 212 213

-- dealloc
Message = nil
Message_vNum = nil
Message_AlsoHere = nil
currTarget1 = nil
currTarget2 = nil
214 215 216 217
currTarget3 = nil

-- END OF SCRIPT
-- =============================================================================</script>
218 219
				<command></command>
				<packageName></packageName>
220
				<regex>^(t|tar|target) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+)$</regex>
221
			</Alias>
222
			<Alias isActive="yes" isFolder="no">
223 224 225 226 227 228 229 230 231 232 233 234 235 236
				<name>four targets</name>
				<script>-- Call targets out when we target them
-- Desired format same as old TF -
-- Now targetting: PersonA (v1) Also here: PersonB, PersonC, PersonD.

-- Assemble variables
Room = Room or {};
Room.Enemies = Room.Enemies or nil
Message = ""
Message_vNum = ""
Message_AlsoHere = ""
Targets = {}

-- Reset index
237
Valkryja.CurrIndex = 1
238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282

-- Set target
-- Hacky, but lua is stupid with arrays
currTarget1 = matches[3]
currTarget2 = matches[4]
currTarget3 = matches[5]
currTarget4 = matches[6]
Valkryja.Targets[1] = currTarget1
Valkryja.Targets[2] = currTarget2
Valkryja.Targets[3] = currTarget3
Valkryja.Targets[4] = currTarget4

-- Do we know the vnum we're in?  If so, include it
if (Room.vNum) then
   Message_vNum = " (@ v"..tostring(Room.vNum)..")"
end

-- Assemble "also here"
if ((Room.Enemies) and (Room.Enemies.is_empty==false)) then
   Message_AlsoHere = " Also here: "
   for person in pairs(Room.Enemies) do
      Message_AlsoHere = Message_AlsoHere .. Room.Enemies[person]
   end
end

-- Assemble the complete call out for ring if it is enabled
Message = "Now targetting: ["..currTarget1.. "], " .. currTarget2 .. ", " .. currTarget3 .. ", " .. currTarget4 .. 
   Message_vNum..Message_AlsoHere
Berkana.Message(Message)

if (Config.CallTargets==true) then
   send("rt "..Message)
end

-- dealloc
Message = nil
Message_vNum = nil
Message_AlsoHere = nil
currTarget1 = nil
currTarget2 = nil
currTarget3 = nil
currTarget4 = nil

-- END OF SCRIPT
-- =============================================================================</script>
283 284
				<command></command>
				<packageName></packageName>
285
				<regex>^(t|tar|target) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+)$</regex>
286
			</Alias>
287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746
			<Alias isActive="yes" isFolder="no">
				<name>five targets</name>
				<script>-- Call targets out when we target them
-- Desired format same as old TF -
-- Now targetting: PersonA (v1) Also here: PersonB, PersonC, PersonD.

-- Assemble variables
Room = Room or {};
Room.Enemies = Room.Enemies or nil
Message = ""
Message_vNum = ""
Message_AlsoHere = ""
Targets = {}

-- Reset index
Valkryja.CurrIndex = 1

-- Set target
-- Hacky, but lua is stupid with arrays
currTarget1 = matches[3]
currTarget2 = matches[4]
currTarget3 = matches[5]
currTarget4 = matches[6]
currTarget5 = matches[7]
Valkryja.Targets[1] = currTarget1
Valkryja.Targets[2] = currTarget2
Valkryja.Targets[3] = currTarget3
Valkryja.Targets[4] = currTarget4
Valkryja.Targets[5] = currTarget5

-- Do we know the vnum we're in?  If so, include it
if (Room.vNum) then
   Message_vNum = " (@ v"..tostring(Room.vNum)..")"
end

-- Assemble "also here"
if ((Room.Enemies) and (Room.Enemies.is_empty==false)) then
   Message_AlsoHere = " Also here: "
   for person in pairs(Room.Enemies) do
      Message_AlsoHere = Message_AlsoHere .. Room.Enemies[person]
   end
end

-- Assemble the complete call out for ring if it is enabled
Message = "Now targetting: ["..currTarget1.. "], " .. currTarget2 .. ", " .. currTarget3 .. ", " .. currTarget4 .. ", " ..
   currTarget5 ..
   Message_vNum..Message_AlsoHere
Berkana.Message(Message)

if (Config.CallTargets==true) then
   send("rt "..Message)
end

-- dealloc
Message = nil
Message_vNum = nil
Message_AlsoHere = nil
currTarget1 = nil
currTarget2 = nil
currTarget3 = nil
currTarget4 = nil
currTarget5 = nil

-- END OF SCRIPT
-- =============================================================================</script>
				<command></command>
				<packageName></packageName>
				<regex>^(t|tar|target) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+)$</regex>
			</Alias>
			<Alias isActive="yes" isFolder="no">
				<name>six targets</name>
				<script>-- Call targets out when we target them
-- Desired format same as old TF -
-- Now targetting: PersonA (v1) Also here: PersonB, PersonC, PersonD.

-- Assemble variables
Room = Room or {};
Room.Enemies = Room.Enemies or nil
Message = ""
Message_vNum = ""
Message_AlsoHere = ""
Targets = {}

-- Reset index
Valkryja.CurrIndex = 1

-- Set target
-- Hacky, but lua is stupid with arrays
currTarget1 = matches[3]
currTarget2 = matches[4]
currTarget3 = matches[5]
currTarget4 = matches[6]
currTarget5 = matches[7]
currTarget6 = matches[8]
Valkryja.Targets[1] = currTarget1
Valkryja.Targets[2] = currTarget2
Valkryja.Targets[3] = currTarget3
Valkryja.Targets[4] = currTarget4
Valkryja.Targets[5] = currTarget5
Valkryja.Targets[6] = currTarget6

-- Do we know the vnum we're in?  If so, include it
if (Room.vNum) then
   Message_vNum = " (@ v"..tostring(Room.vNum)..")"
end

-- Assemble "also here"
if ((Room.Enemies) and (Room.Enemies.is_empty==false)) then
   Message_AlsoHere = " Also here: "
   for person in pairs(Room.Enemies) do
      Message_AlsoHere = Message_AlsoHere .. Room.Enemies[person]
   end
end

-- Assemble the complete call out for ring if it is enabled
Message = "Now targetting: ["..currTarget1.. "], " .. currTarget2 .. ", " .. currTarget3 .. ", " .. currTarget4 .. ", " ..
   currTarget5 .. ", " .. currTarget6 ..
   Message_vNum..Message_AlsoHere
Berkana.Message(Message)

if (Config.CallTargets==true) then
   send("rt "..Message)
end

-- dealloc
Message = nil
Message_vNum = nil
Message_AlsoHere = nil
currTarget1 = nil
currTarget2 = nil
currTarget3 = nil
currTarget4 = nil
currTarget5 = nil
currTarget6 = nil

-- END OF SCRIPT
-- =============================================================================</script>
				<command></command>
				<packageName></packageName>
				<regex>^(t|tar|target) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+)$</regex>
			</Alias>
			<Alias isActive="yes" isFolder="no">
				<name>seven targets</name>
				<script>-- Call targets out when we target them
-- Desired format same as old TF -
-- Now targetting: PersonA (v1) Also here: PersonB, PersonC, PersonD.

-- Assemble variables
Room = Room or {};
Room.Enemies = Room.Enemies or nil
Message = ""
Message_vNum = ""
Message_AlsoHere = ""
Targets = {}

-- Reset index
Valkryja.CurrIndex = 1

-- Set target
-- Hacky, but lua is stupid with arrays
currTarget1 = matches[3]
currTarget2 = matches[4]
currTarget3 = matches[5]
currTarget4 = matches[6]
currTarget5 = matches[7]
currTarget6 = matches[8]
currTarget7 = matches[9]
Valkryja.Targets[1] = currTarget1
Valkryja.Targets[2] = currTarget2
Valkryja.Targets[3] = currTarget3
Valkryja.Targets[4] = currTarget4
Valkryja.Targets[5] = currTarget5
Valkryja.Targets[6] = currTarget6
Valkryja.Targets[7] = currTarget7

-- Do we know the vnum we're in?  If so, include it
if (Room.vNum) then
   Message_vNum = " (@ v"..tostring(Room.vNum)..")"
end

-- Assemble "also here"
if ((Room.Enemies) and (Room.Enemies.is_empty==false)) then
   Message_AlsoHere = " Also here: "
   for person in pairs(Room.Enemies) do
      Message_AlsoHere = Message_AlsoHere .. Room.Enemies[person]
   end
end

-- Assemble the complete call out for ring if it is enabled
Message = "Now targetting: ["..currTarget1.. "], " .. currTarget2 .. ", " .. currTarget3 .. ", " .. currTarget4 .. ", " ..
   currTarget5 .. ", " .. currTarget6 .. ", " .. currTarget7 ..
   Message_vNum..Message_AlsoHere
Berkana.Message(Message)

if (Config.CallTargets==true) then
   send("rt "..Message)
end

-- dealloc
Message = nil
Message_vNum = nil
Message_AlsoHere = nil
currTarget1 = nil
currTarget2 = nil
currTarget3 = nil
currTarget4 = nil
currTarget5 = nil
currTarget6 = nil
currTarget7 = nil

-- END OF SCRIPT
-- =============================================================================</script>
				<command></command>
				<packageName></packageName>
				<regex>^(t|tar|target) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+)$</regex>
			</Alias>
			<Alias isActive="yes" isFolder="no">
				<name>eight targets</name>
				<script>-- Call targets out when we target them
-- Desired format same as old TF -
-- Now targetting: PersonA (v1) Also here: PersonB, PersonC, PersonD.

-- Assemble variables
Room = Room or {};
Room.Enemies = Room.Enemies or nil
Message = ""
Message_vNum = ""
Message_AlsoHere = ""
Targets = {}

-- Reset index
Valkryja.CurrIndex = 1

-- Set target
-- Hacky, but lua is stupid with arrays
currTarget1 = matches[3]
currTarget2 = matches[4]
currTarget3 = matches[5]
currTarget4 = matches[6]
currTarget5 = matches[7]
currTarget6 = matches[8]
currTarget7 = matches[9]
currTarget8 = matches[10]
Valkryja.Targets[1] = currTarget1
Valkryja.Targets[2] = currTarget2
Valkryja.Targets[3] = currTarget3
Valkryja.Targets[4] = currTarget4
Valkryja.Targets[5] = currTarget5
Valkryja.Targets[6] = currTarget6
Valkryja.Targets[7] = currTarget7
Valkryja.Targets[8] = currTarget8

-- Do we know the vnum we're in?  If so, include it
if (Room.vNum) then
   Message_vNum = " (@ v"..tostring(Room.vNum)..")"
end

-- Assemble "also here"
if ((Room.Enemies) and (Room.Enemies.is_empty==false)) then
   Message_AlsoHere = " Also here: "
   for person in pairs(Room.Enemies) do
      Message_AlsoHere = Message_AlsoHere .. Room.Enemies[person]
   end
end

-- Assemble the complete call out for ring if it is enabled
Message = "Now targetting: ["..currTarget1.. "], " .. currTarget2 .. ", " .. currTarget3 .. ", " .. currTarget4 .. ", " ..
   currTarget5 .. ", " .. currTarget6 .. ", " .. currTarget7 .. ", " .. currTarget8 ..
   Message_vNum..Message_AlsoHere
Berkana.Message(Message)

if (Config.CallTargets==true) then
   send("rt "..Message)
end

-- dealloc
Message = nil
Message_vNum = nil
Message_AlsoHere = nil
currTarget1 = nil
currTarget2 = nil
currTarget3 = nil
currTarget4 = nil
currTarget5 = nil
currTarget6 = nil
currTarget7 = nil
currTarget8 = nil

-- END OF SCRIPT
-- =============================================================================</script>
				<command></command>
				<packageName></packageName>
				<regex>^(t|tar|target) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+)$</regex>
			</Alias>
			<Alias isActive="yes" isFolder="no">
				<name>nine targets</name>
				<script>-- Call targets out when we target them
-- Desired format same as old TF -
-- Now targetting: PersonA (v1) Also here: PersonB, PersonC, PersonD.

-- Assemble variables
Room = Room or {};
Room.Enemies = Room.Enemies or nil
Message = ""
Message_vNum = ""
Message_AlsoHere = ""
Targets = {}

-- Reset index
Valkryja.CurrIndex = 1

-- Set target
-- Hacky, but lua is stupid with arrays
currTarget1 = matches[3]
currTarget2 = matches[4]
currTarget3 = matches[5]
currTarget4 = matches[6]
currTarget5 = matches[7]
currTarget6 = matches[8]
currTarget7 = matches[9]
currTarget8 = matches[10]
currTarget9 = matches[11]
Valkryja.Targets[1] = currTarget1
Valkryja.Targets[2] = currTarget2
Valkryja.Targets[3] = currTarget3
Valkryja.Targets[4] = currTarget4
Valkryja.Targets[5] = currTarget5
Valkryja.Targets[6] = currTarget6
Valkryja.Targets[7] = currTarget7
Valkryja.Targets[8] = currTarget8
Valkryja.Targets[9] = currTarget9

-- Do we know the vnum we're in?  If so, include it
if (Room.vNum) then
   Message_vNum = " (@ v"..tostring(Room.vNum)..")"
end

-- Assemble "also here"
if ((Room.Enemies) and (Room.Enemies.is_empty==false)) then
   Message_AlsoHere = " Also here: "
   for person in pairs(Room.Enemies) do
      Message_AlsoHere = Message_AlsoHere .. Room.Enemies[person]
   end
end

-- Assemble the complete call out for ring if it is enabled
Message = "Now targetting: ["..currTarget1.. "], " .. currTarget2 .. ", " .. currTarget3 .. ", " .. currTarget4 .. ", " ..
   currTarget5 .. ", " .. currTarget6 .. ", " .. currTarget7 .. ", " .. currTarget8 .. ", " .. currTarget9..
   Message_vNum..Message_AlsoHere
Berkana.Message(Message)

if (Config.CallTargets==true) then
   send("rt "..Message)
end

-- dealloc
Message = nil
Message_vNum = nil
Message_AlsoHere = nil
currTarget1 = nil
currTarget2 = nil
currTarget3 = nil
currTarget4 = nil
currTarget5 = nil
currTarget6 = nil
currTarget7 = nil
currTarget8 = nil
currTarget9 = nil

-- END OF SCRIPT
-- =============================================================================</script>
				<command></command>
				<packageName></packageName>
				<regex>^(t|tar|target) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+)$</regex>
			</Alias>
			<Alias isActive="yes" isFolder="no">
				<name>ten targets</name>
				<script>-- Call targets out when we target them
-- Desired format same as old TF -
-- Now targetting: PersonA (v1) Also here: PersonB, PersonC, PersonD.

-- Assemble variables
Room = Room or {};
Room.Enemies = Room.Enemies or nil
Message = ""
Message_vNum = ""
Message_AlsoHere = ""
Targets = {}

-- Reset index
Valkryja.CurrIndex = 1

-- Set target
-- Hacky, but lua is stupid with arrays
currTarget1  = matches[3]
currTarget2  = matches[4]
currTarget3  = matches[5]
currTarget4  = matches[6]
currTarget5  = matches[7]
currTarget6  = matches[8]
currTarget7  = matches[9]
currTarget8  = matches[10]
currTarget9  = matches[11]
currTarget10 = matches[12]
Valkryja.Targets[1]  = currTarget1
Valkryja.Targets[2]  = currTarget2
Valkryja.Targets[3]  = currTarget3
Valkryja.Targets[4]  = currTarget4
Valkryja.Targets[5]  = currTarget5
Valkryja.Targets[6]  = currTarget6
Valkryja.Targets[7]  = currTarget7
Valkryja.Targets[8]  = currTarget8
Valkryja.Targets[9]  = currTarget9
Valkryja.Targets[10] = currTarget10

-- Do we know the vnum we're in?  If so, include it
if (Room.vNum) then
   Message_vNum = " (@ v"..tostring(Room.vNum)..")"
end

-- Assemble "also here"
if ((Room.Enemies) and (Room.Enemies.is_empty==false)) then
   Message_AlsoHere = " Also here: "
   for person in pairs(Room.Enemies) do
      Message_AlsoHere = Message_AlsoHere .. Room.Enemies[person]
   end
end

-- Assemble the complete call out for ring if it is enabled
Message = "Now targetting: ["..currTarget1.. "], " .. currTarget2 .. ", " .. currTarget3 .. ", " .. currTarget4 .. ", " ..
   currTarget5 .. ", " .. currTarget6 .. ", " .. currTarget7 .. ", " .. currTarget8 .. ", " .. currTarget9.. ", " ..
   currTarget10 ..
   Message_vNum..Message_AlsoHere
Berkana.Message(Message)

if (Config.CallTargets==true) then
   send("rt "..Message)
end

-- dealloc
Message = nil
Message_vNum = nil
Message_AlsoHere = nil
currTarget1  = nil
currTarget2  = nil
currTarget3  = nil
currTarget4  = nil
currTarget5  = nil
currTarget6  = nil
currTarget7  = nil
currTarget8  = nil
currTarget9  = nil
currTarget10 = nil

-- END OF SCRIPT
-- =============================================================================</script>
				<command></command>
				<packageName></packageName>
				<regex>^(t|tar|target) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+) ([A-Za-z]+)$</regex>
			</Alias>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
747
		</AliasGroup>
748 749 750 751 752 753 754 755 756
		<Alias isActive="yes" isFolder="no">
			<name>tattoos</name>
			<script>-- clear the stored tattoos when the player scrapes them
Character.Tattoos = nil
Character.Tattoos = {}</script>
			<command></command>
			<packageName></packageName>
			<regex>^tattoos$</regex>
		</Alias>
Maiyannah Bishop's avatar
Maiyannah Bishop committed
757 758 759 760 761 762 763
	</AliasPackage>
	<ActionPackage />
	<ScriptPackage />
	<KeyPackage />
	<HelpPackage>
		<helpURL></helpURL>
	</HelpPackage>
764
</MudletPackage>