7thbeatgames / rd

This repository is to track player feedback for a rhythm game 'Rhythm Doctor'.
https://7thbe.at
9 stars 0 forks source link

Tag parameters #40

Open 9thCore opened 1 year ago

9thCore commented 1 year ago

Please Check

What problem motivated you to submit the suggestion?

Tags cannot have parameters passed to them, which makes it tough to do a recursive function like a flood fill algorithm, or just have a tag that does different things based on its parameters.

Suggestion / Solution

When doing RunTag(str:myTag, 1, 2, 3, 4.0, true, 1.02) or any of its aliases, the tagged events and conditionals on those events could set and read the variables ti0 (= 1), ti1, (= 2), ti2 (= 3), tf0 (= 4.0), tb0 (= true) and tf1 (=1.02). ti0-ti9 could be integers, tf0-tf9 floats and tb0-tb9 booleans.

Alternatives & Workarounds

Using some of the global variables such as i0 works:tm: but it uses up one of the valuable global variables we have + making recursive stuff harder to pull off.

Demo & Mockup

No response

Note

No response