#I wrote a macro to simulate astral

1 messages · Page 1 of 1 (latest)

young flicker
#
let token = (await canvas.tokens.controlled)[0];

if(token == null) {
    return;
}

let tokenData = token.document.toObject();
token.toggleEffect(CONFIG.statusEffects.find(e => e.id === 'sleep'), {active: true})

let newToken = await TokenDocument.implementation.create(tokenData, {parent: canvas.scene});
await newToken.update({ 'actorLink': false });

await newToken.update({ 'system': {
    'visibilityChecks' : {
        'astral': {
            'hasAura': true ,
            'astralActive': true
        },
        'meat' : {
            'hasHeat': false
        },
        'matrix': {
            'hasIcon': false
        }
    }
    }});
    
    

newToken.object.toggleEffect(CONFIG.statusEffects.find(e => e.id === CONFIG.specialStatusEffects.INVISIBLE), {active: true})

await newToken.updateVisionMode('astralPerception')

let rotationX = tokenData.rotation * (Math.PI / 180);
let rotationY = (tokenData.rotation+90) * (Math.PI / 180);

let xDirection = Math.sin(rotationX)
let yDirection = Math.sin(rotationY)

await newToken.update({
    x: newToken.x - xDirection*canvas.grid.size,
    y: newToken.y + yDirection*canvas.grid.size
});
chrome shadow
#

Looks like it spawns a new token, but it doesn't adjust the attributes of that new token to the astral ones.

Also, what's all the rotation stuff for?

young flicker
#

It spawns a copy token in front of the selected one, adjust the visibilityChecks (when the fix is live), set vision to astral (detection mode needs to be pre-configured) and makes it invisible

#

What attributes do you want to have set? Projections dont change them. Or do you talk about astral combat?

chrome shadow
#

Sure they do - when astrally projecting, physical attributes are replaced with mental attributes. You'll also want to adjust the new token's initiative setting.

young flicker
#

I intended it to mimic scouting, feel free to take it and adjust the stats. The token is intended to throw away after returning to the body

chrome shadow
#

You've definitely got a good start here.

young flicker
#

Reminder: mark original token as sleeping

young flicker
#

@echo crescent feel free to add it to your module. No credits needed

echo crescent
chrome shadow
echo crescent
#

shouldn't the astral combat skill already have the correct attributed tied to it?

chrome shadow
#

SR5, p 314:

echo crescent
#

I am not arguing that point T.J.
I am saying the system should already have this in it should it not

chrome shadow
#

There are plenty of other places across the system that are not astral-projection-aware, like the entire damage workflow.

#

It's not going to swap in Willpower when making a Damage Resistance Test against an astral attack.

echo crescent
#

My point is, shouldn't that be in the system itself and not the macro. Especially since this macro is for after a change that is being worked on is released

chrome shadow
#

Should it be? Yes.
Is it currently? No.
If one is making a macro to monkey patch the things the system doesn't currently do, and some of those things are relatively low-hanging fruit, they should be included in the macro.

#

I was trying to be gentle about it, but here goes... this macro in it's current state is half-baked. It doesn't do what the initial post claims - "simulate astral projection". It creates a token with some vision properties set.

echo crescent
#

And when they shared it, they mentioned it was not designed for current release of the system. As stated at the start of this thread

chrome shadow
#

I don't see what that has to do with all the things it's leaving out that are doable now?

echo crescent
#

How much of what you are talking about will be fixed when the macro actually is able to work

#

I know you want to use it now. but that was not the intent

young flicker
#

Nothing of @chrome shadow requests will change when the fix is live

#

This would be needed to be added completly to the macro

echo crescent
#

You are telling me that if I go look at the astral combat skill it does not have willpower as its attribute and the resist is not intuition+logic?

young flicker
#

I think you are missing his point

chrome shadow
echo crescent
#

Well you would need to make an action for astral combat as the skill itself does not give a versus roll.

young flicker
#

Certain rules behave differently when you are astral projecting. The system currently don't have an innate ability to switch to these rules

echo crescent
#

In that action you can set the resist and defense

echo crescent
young flicker
#

A part of the rules, liking switching the attributes could be faked with the macro

#

So when you know strength is replaced with ith charisma, make the macro set the strength value to the charisma value

#

This should handle 75% of checks

echo crescent
#

My point is why switch it all around when it is all focused on one skill

young flicker
#

Getting hit does not use this skill

echo crescent
#

In the astral?

#

The only way to do combat outside of spells is the skill

young flicker
#

Body + Armor becomes will + magical armor

echo crescent
#

No

chrome shadow
#

No? Then what does a projecting magician use for a Damage Resistance Test?

echo crescent
#

It is like all direct combat spells. There is no damage resist only attack resist

#

So the magical armor would apply to the attack resist

chrome shadow
#

You're gonna need to cite something to support that.

#

Note that the first line of "Astral Combat" on p. 315 is "Astral combat is resolved the same way as physical combat." then goes on to list the substituations. It doesn't say it's resolved like combat spells.

echo crescent
#

Yet it never mentions anything about what your damage resist changes to. Not even about magical armor applying

chrome shadow
#

It tells you what substitutions to make. You can thank CGL for having the table on the page before the text that references it.

#

The critter power Mystic Armor doesn't provide anything that supports your like-direct-combat-spells claim, either. It says it works like Armor, which means there's a Damage Resistance Test involved:

echo crescent
#

The mystic armor adept power has better wording

#

And I will concede that they missed wording somewhere as 6e and 4e have the resist part in their table for astral combat

chrome shadow
#

They're two different powers with different rules, who happen to have the same name. It's not the only place CGL has done that.

chrome shadow
echo crescent
echo crescent
chrome shadow
echo crescent
chrome shadow
#

At this point, it sounds like you're arguing for the sake of arguing, so I'm out. I've got work to do.

echo crescent