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

Integers and number stuff #15

Closed
TPGamesNL opened this issue Jun 10, 2020 · 2 comments
Closed

Integers and number stuff #15

TPGamesNL opened this issue Jun 10, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@TPGamesNL
Copy link
Member

effect test %number%:
	trigger:
		broadcast "int %expr-1%"

expression test expr:
	get:
		return 1

command /bug:
	trigger:
		test test expr

works, %number% -> %integer% doesn't

@TPGamesNL
Copy link
Member Author

TPGamesNL commented Jun 13, 2020

Even more interesting:

effect bc %integer%:
	trigger:
		broadcast "int %expr-1%"

expression some number:
	return type: integer
	get:
		return 1

command /bug:
	trigger:
		bc some number

error: some number is not an integer

EDIT:
syntax registered with mirror that has a %integer% expression is weird, since it uses java.lang.Integer instead of java.lang.Long (which is used everywhere else for Skripts integers)

@TPGamesNL TPGamesNL self-assigned this Jun 13, 2020
@TPGamesNL TPGamesNL added the bug Something isn't working label Jun 13, 2020
@TPGamesNL
Copy link
Member Author

I'm attributing this to SkriptLang/Skript#1602 and SkriptLang/Skript#2326, mainly because it seems to all be internally handled by Skript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant