Problem with logistics [SOLVED]

BasGoodboyBasGoodboy Member, PRO Posts: 310
edited September 2013 in Working with GS (Mac)
Hey all,

So I have two scenes. A main scene and a blacksmith one.

Once the player buys the complete tier1 set of a dagger, sword and crossbow, the tier set attribute changes to 1, and a new tier of weapons will be unlocked. This all works.

The simplest thing I won't get to work tho, I want the player back on the main scene to have the message: 'you completed a tier set and unlocked new weapons'.

I made the next rules on my main scene:

if daggertier=1
if swordtier=1
if crossbowtier=1
change attribute tier to 1

if attribute tier=1, change attribute tiergratz=1

if attribute tiergratz=1, spawn actor 'display message you completed the set blabla'
after 3 seconds, change attribute tiergratz=2

I did the last attribute change because otherwise I tought the message would keep popping up each time player goes to blacksmith and goes back, untill the tier changes.

BUT.. like this the message will still keep spawning back after player changes scenes.

I want the message just to be popped once, and once only.

How to do this? Please help.

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Create another Boolean Attribute starting as false and set it to true after the message has been displayed the first time. Then add a check for this new Boolean when displaying the message and only display the message when it's false.
  • BasGoodboyBasGoodboy Member, PRO Posts: 310
    Thanks a lot mate. Worked. Cheers.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    glad to hear it! :)
Sign In or Register to comment.