Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Question) Changing parameters mid-cast #1397

Open
NightScythe1 opened this issue Nov 29, 2024 · 2 comments
Open

(Question) Changing parameters mid-cast #1397

NightScythe1 opened this issue Nov 29, 2024 · 2 comments
Assignees
Labels

Comments

@NightScythe1
Copy link
Member

Is there any way to alter or change a spell's parameters mid-cast? I'd like to make a spell that uses CheckRequirements to see if a player has a certain attribute, and modify the parameters based on that, but the only way I can think of to do this is to have two branches for the actions and fail sections under the Requirement, and giving them the exact same sub-actions with just the one parameter changed between them. This wouldn't be a huge issue, but it gets a little messy when there's multiple of these instances within a spell, changing multiple different parameters depending on different CheckRequirements etc...

I noticed there's the ModifyParameters and ChangeParameters actions, but I haven't been able to figure out how they work nor find examples/descriptions for them. Do these actions work for this usecase?

@NathanWolf
Copy link
Member

One of those two actions is meant for changing parameters mid-spell... but I don't remember which one offhand, nor why there are two different actions :(

@NathanWolf NathanWolf self-assigned this Dec 2, 2024
@NightScythe1
Copy link
Member Author

From what I could glean from old discord messages, ChangeParameters seems to be deprecated, though I'm still not sure what/how ModifyParameters works or how to use it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants