Magic

Magic

190k Downloads

(Question) Changing parameters mid-cast

NightScythe1 opened this issue ยท 2 comments

commented

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?

commented

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

commented

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 :(