SkriptLang / Skript

Skript is a Spigot plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
https://docs.skriptlang.org
GNU General Public License v3.0
1.02k stars 358 forks source link

Add a store method to spawn effect #6792

Closed EquipableMC closed 4 days ago

EquipableMC commented 2 weeks ago

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

Phill310 commented 2 weeks ago

Why not use spawn sections instead

ShaneBeee commented 2 weeks ago

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:

Moderocky commented 2 weeks ago

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 commented 4 days ago

Fair enough, I understand