So I'm trying to spawn objects by expression to try to streamline my events, but I've run into a little problem. As far as I understand, under normal circumstances when you spawn in object in Construct that object is automatically the one picked for any following actions, which is cool. However, I don't know how to modify that same object if the object created is through a string variable in an expression. Basically...
I want to doPlayer presses Attack Control
--> Player create object Player.Value('CurrentWeapon')
--> Set (Player.Value('CurrentWeapon').Value('Power') = blahblahblahstupidmathblahblahblah
I don't want to do, but will I guess if I have toPlayer presses Attack Control
--> If Player.Value('CurrentWeapon') = WimpyGun
----> Player create object WimpyGun
----> Set WimpyGun.Value('Power') = blahblahblahwimpymathblahblahblah
--> Elseif Player.Value('CurrentWeapon') = NotWimpyGun
----> Player create object NotWimpyGun
----> Set NotWimpyGun.Value('Power') = blahblahblah1337mathblahblahblah
--> Elseif etc..., etc...
Am I just gonna have to suck it up and make a condition for each object as outlined in Example B?
Or is there a way to make Example A work?