Jump to content
Nairol

A NPC Copy command that works cross-phase

Recommended Posts

Hi.

With the inclusion of the addon, Arcanum, in the official Epsilon package. We can suddenly automate a series of command in a simple manner. Which is GREAT!

But... I stumbled upon an issue that I feel could be fixed/become a feature. An ability to copy the npc ID and keep it cross phase.
For example... How I want it to work;
1) Select NPC, or command that selects the nearest NPC, .npc sel near
2) Click Arcanum Cast
A> .npc go
B> .npc copy setvariable Z
C> .ph e X
D> .npc spawn variable Z
E> .ph e Y
3) Repeat
Today, step 2B and step 2D doesn't work. You have to manually input or click to accomplish this.

Basically, the command allow the player to set a variable to save a given NPC SpawnID into. Then the player can extract that onto a NPC spawn command. A bit like a lot of manual calculators store calculations into 'ans'.
But it is up to you, if you want the player to be able to store multiple different Variables under different types of Variable definitions, or if a singular variable enough. I feel a singular variable string is enough.
Basically,
A new subcommand for .npc copy and .npc spawn.
.npc copy setvariable -> Creates a <NPC SpawnID> as a variable on the local/server side.
.npc spawn variable -> Pulls <NPC SpawnID> data from set variable, from local/server side.
Variable Should clear to 0 (or placeholder ID), whenever the player logs off.

In a way, this type of command allows a manual process of copying NPCs from starter phase onto a chosen phase. For example, wildlife npc's. And if you can then add more commands into the string, like setting a random movement pattern? We suddenly accelerate that process for players.

If one were to choose to allow a player to store multiple different Variables under different types of Variable definitions, I strongly suggest these are Pre-made/Set. For example, A0 to A9 allows 10 stored NPC ID. It prevents a player to be able to store a customized string that is 250 characters long.

Basic Calculator reference below...
https://media.discordapp.net/attachments/1135949613271089233/1135949627988922368/bild.png

 

Edited by Nairol
Added a new command to step 1.

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×