Difference between revisions of "Creating Custom Couriers"
m
no edit summary
imported>RedwoodElf |
imported>Thingy Person m |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 482: | Line 482: | ||
Note the Quest property ReloadOptionals - | Note the Quest property ReloadOptionals - | ||
That will be a quest that has 3 aliases for the closest, next closest, and third closest spawn points in the nearby areas. | That will be a quest that has 3 aliases for the closest, next closest, and third closest spawn points in the nearby areas. ("GVAR" is the same quest, but cast to CourierSpawnPointScript for easy access to the properties.) | ||
They are all "Find Matching", "Closest", and "In Loaded Area". Their conditions are: | They are all "Find Matching", "Closest", and "In Loaded Area". Their conditions are: | ||
Line 490: | Line 490: | ||
* NextNearest: | * NextNearest: | ||
*: HasKeyword (the keyword we defined above) == 1.0 | *: HasKeyword (the keyword we defined above) == 1.0 | ||
*: | *: GetIsAliasRef (Nearest) != 1.0 | ||
* ThirdNearest: | * ThirdNearest: | ||
*: HasKeyword (the keyword we defined above) == 1.0 | *: HasKeyword (the keyword we defined above) == 1.0 | ||
*: | *: GetIsAliasRef (Nearest) != 1.0 | ||
*: | *: GetIsAliasRef (NextNearest) != 1.0 | ||
The quest loads these aliases into three properties, Near, Mid, and Far with a script like this: | The quest loads these aliases into three properties, Near, Mid, and Far with a script like this: | ||
Line 528: | Line 528: | ||
In addition to simple couriers, this could be adapted to spawn encounters with hostile mobs, by simply leaving in the hostile AI, adding a Global WICCPOD {"Place objects on NPC on death"} that kills the delivery scene, and adding a script to the KillableCourier alias that catches the OnDeath event, and places the items from the chest into the "Courier" instead of giving it to the player. (You would also need to make another alias "KillableCourier" that only loads if the WICCPOD property is 1.0, and put code in the Delivery state code that clears the Courier alias once the KillableCourier finds the player, making the Essential property fall off so it can be killed. | In addition to simple couriers, this could be adapted to spawn encounters with hostile mobs, by simply leaving in the hostile AI, adding a Global WICCPOD {"Place objects on NPC on death"} that kills the delivery scene, and adding a script to the KillableCourier alias that catches the OnDeath event, and places the items from the chest into the "Courier" instead of giving it to the player. (You would also need to make another alias "KillableCourier" that only loads if the WICCPOD property is 1.0, and put code in the Delivery state code that clears the Courier alias once the KillableCourier finds the player, making the Essential property fall off so it can be killed. | ||
==See Also== | |||
*[[Simple custom courier]] | |||
*[[Using the Vanilla Courier]] |