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 do
Player 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 to
Player 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...
----> blahblahblahlotsofeventsblahblahblah
Am I just gonna have to suck it up and make a condition for each object as outlined in Example B? <img src="smileys/smiley19.gif" border="0" align="middle" /> Or is there a way to make Example A work?