Okay, I'm not sure what I'm doing wrong here. Basically, I want to convert an upgrade that is located in a record to a string. However, using the "Convert Game Link To String" and changing the type from "Unit type" to "- Game Link: Upgrade" doesn't work. The record doesn't show up in the variables list.
Here's the weird parts: If I create a normal variable of the same type, but outside the record, it shows up in the variable list.
If I use another action like "Add Upgrade Level For Player", it shows up fine in the variable list.
As you can see, I have a record with a "Game link - Upgrade" variable in it. I also have a - Record variable set to my record. I also have another "Game link - Upgrade" variable outside the record.
Now, in my debug message action, I'm trying to print the name of the upgrade. As you can see, the parameter type is set to "Game link - upgrade" but I only see the Game link - upgrade OUTSIDE the record. The one inside is hidden.
If I were to do this with integer variables instead, I would see them both in the list(if I changed to convert an integer to text instead of a game link)
Hm... that makes no sense indeed, seems to be some kind of bug.
However, since game Links are nothing else than strings in galaxy, you should be able to avoid the problem accessing the variable in custom script instead of making a game link to string conversion.
Okay, I'm not sure what I'm doing wrong here. Basically, I want to convert an upgrade that is located in a record to a string. However, using the "Convert Game Link To String" and changing the type from "Unit type" to "- Game Link: Upgrade" doesn't work. The record doesn't show up in the variables list.
Here's the weird parts: If I create a normal variable of the same type, but outside the record, it shows up in the variable list.
If I use another action like "Add Upgrade Level For Player", it shows up fine in the variable list.
I'm not certain I follow clearly the issue here. Could you include screenshots?
Go play Antioch Chronicles Remastered!
Also, coming soon, Antioch Episode 3: Thoughts in Chaos!
Dont like mapster's ugly white? Try Mapster's Classic Skin!
make sure your struct init is above calling function.
Records are no variables, you need to create a variable first and set it's type to -Record -> Your record.
I know all this and I have a working record with the "Game link - upgrade" variable inside it. I also have a variable set to my record.
Here's just a new map I set up to demonstrate my problem.
First picture
As you can see, I have a record with a "Game link - Upgrade" variable in it. I also have a - Record variable set to my record. I also have another "Game link - Upgrade" variable outside the record.
Second picture
Now, in my debug message action, I'm trying to print the name of the upgrade. As you can see, the parameter type is set to "Game link - upgrade" but I only see the Game link - upgrade OUTSIDE the record. The one inside is hidden.
If I were to do this with integer variables instead, I would see them both in the list(if I changed to convert an integer to text instead of a game link)
Hm... that makes no sense indeed, seems to be some kind of bug. However, since game Links are nothing else than strings in galaxy, you should be able to avoid the problem accessing the variable in custom script instead of making a game link to string conversion.
For whatever reason 'Any game link' doesn't like structs.
make famous 'takes string returns string function' and it will work