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

Add a store method to spawn effect #6792

Closed
1 task done
EquipableMC opened this issue Jun 16, 2024 · 4 comments
Closed
1 task done

Add a store method to spawn effect #6792

EquipableMC opened this issue Jun 16, 2024 · 4 comments

Comments

@EquipableMC
Copy link
Contributor

Suggestion

I feel like you should be able to do (optionally) spawn x and store it in {_var} without having to do set {_x} to last spawned entity after the spawn effect.

Why?

What this does is, is spawn whatever x is and it will be saved in that variable so u can use it in the rest of your code. This is similar to how DiSky does their store stuff in their own addon, which I find pretty useful

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.
@Phill310
Copy link
Contributor

Why not use spawn sections instead

@ShaneBeee
Copy link
Contributor

  1. I agree with Phill, the spawn section is what should be used here
  2. While I understand Disky (and other addons do this) in my opinion it doesn't look pretty and it doesn't really flow with Skript

tl;dr:

  • spawn section
  • last spawned entity expression

@Moderocky
Copy link
Member

We don't really want to introduce this bad design of syntax, the spawn section should be able to help you with this since you can use its local event entity.

@EquipableMC
Copy link
Contributor Author

Fair enough, I understand

@EquipableMC EquipableMC closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants