Game scoring question - Multiply two attributes to create another new one

ZombiebrainsZombiebrains www.zombiebrains.co.ukMember, PRO Posts: 296
edited May 2012 in Working with GS (Mac)
Hello

I am working on my next project and I have a question!

I have two game integer attributes called 'Blips Caught' and 'Blip Shots' - both are just numbers

When a attribute called Blip Caught' is true I want the two above attributes to multiply themselves together and save under a new attribute called 'Stage Score' and then I would like this to be added to the existing 'Main Score'

Can someone please show me how to do this? I have tried - game.Blips Caught*game.Blip Shots in the expression manager but it keeps showing '0'.

I have an invisible actor displaying the 'Stage score' and one also for the 'Main Score'

Any ideas would be great.

Thanks

Anthony @ ZB.

Best Answer

  • tenrdrmertenrdrmer Posts: 9,934
    Accepted Answer
    you have to actually select each attribute from the drop down. you cannot just type them in.

    you would use change attribute game.stagescore to game.blipscaught*game.blipsshot

Answers

  • ZombiebrainsZombiebrains www.zombiebrains.co.ukMember, PRO Posts: 296
    Thanks Tendrmer

    That works a treat...I knew you had to use the drop downs and not type. Turned out I was using the wrong attribute, had one with a similar name.

    Thanks again for showing me the right expression.
Sign In or Register to comment.