fix: remove code duplication with optionnal parameters
add: script bindings
fix: scriptevent variable and value getters return type