Suggestion Issue: Set an attribute from a game attribute by string


Pages: 1

makaydenko

  • Junior Stencyler
December 24, 2020, 02:13:21 pm
Stencyl v4.0.4 allows you to use a game attribute only if its name is known.

I would be grateful if in the new version of Stencyl you would implement the feature for set an attribute from a game attribute with the same type by string.

For example:

1. Create game attributes with type "Map" and names "Table, "Chair" and "Sofa". Each attribute has the same keys but with different values.
2. Create an attribute with type "Map" and name "Item".
3. Set the attribute named "Item" to value of the game attribute named "Table", "Chair" or "Sofa"  depending on the game scenario.

"set {Attribute} to [...]" + "create map from [text]" --> "set Item to create map from Chair"

This feature will make it possible to use different values of the game attributes with the same type.
« Last Edit: December 24, 2020, 02:34:57 pm by makaydenko »


Luyren

  • Master Stencyler
  • *
December 24, 2020, 03:01:28 pm

Use this. The rest you have to manage with your own code.
« Last Edit: December 24, 2020, 03:02:03 pm by Luyren »


makaydenko

  • Junior Stencyler
December 25, 2020, 01:11:42 am
Thanks!


Pages: 1

Details

  • Reported
    December 24, 2020, 02:13:21 pm
  • Updated
    December 25, 2020, 01:11:42 am

  • View Status
    Public
  • Type
    Suggestion
  • Status
    New
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Game Attributes

Tags