Page 4 of 5

Re: Secert Project "Unnammed Title"

Posted: July 30th, 2010, 3:52 pm
by InHumanUnit
...........................................

Re: Secert Project "Unnammed Title"

Posted: July 31st, 2010, 7:23 am
by PizzaLover101
InHumanUnit wrote:...........................................
Please do no post unless you have something to say.

Re: Secert Project "Unnammed Title"

Posted: July 31st, 2010, 11:09 am
by InHumanUnit
.................................................CHESE!!!

Re: Secert Project "Unnammed Title"

Posted: August 2nd, 2010, 7:39 am
by Leo_V117
One vital mistake there arcones...
You made the code like this:

Code: Select all

    apples = 0

    "level_trigger_#" = [ echo "You picked up an apple!"]

    newgui main [
    guibutton "Inventory"    "showgui inventory"
    ]

    newgui inventory [
    guitext (format "You have %1 apples." $apples)
    guibutton "Back"    "showgui main"
    ]
When it should be Like This:

Code: Select all

    apples = 0

    "level_trigger_#" = [ echo "You picked up an apple!"; apples = (+ $apples 1)]

    newgui main [
    guibutton "Inventory"    "showgui inventory"
    ]

    newgui inventory [
    guitext (format "You have %1 apples." $apples)
    guibutton "Back"    "showgui main"
    ]
And for the Chests it should be more like this:

Code: Select all

    chests = 0

    "level_trigger_#" = [ echo "You found a Chest!"; chests = (+ $chests 1)]

    newgui main [
    guibutton "Inventory"    "showgui inventory"
    ]

    newgui inventory [
    guitext (format "You have %1 chests." $chests)
    guibutton "Back"    "showgui main"
    ]

That should fix your problem.

Re: Secert Project "Unnammed Title"

Posted: August 2nd, 2010, 7:48 am
by PizzaLover101
ok, but will It help so that if I make a cfg file in notepad and say in every map

Code: Select all

read name.cfg
will that work

Re: Secert Project "Unnammed Title"

Posted: August 2nd, 2010, 3:00 pm
by Leo_V117

Code: Select all

exec "name.cfg"
Would be useful If you used the correct code... Especially when its in the GUI Menus Tutorial...

Re: Secert Project "Unnammed Title"

Posted: August 2nd, 2010, 7:29 pm
by InHumanUnit
This hurts my head.....

Re: Secert Project "Unnammed Title"

Posted: August 2nd, 2010, 8:03 pm
by PizzaLover101
Leo_V117 wrote:

Code: Select all

exec "name.cfg"
Would be useful If you used the correct code... Especially when its in the GUI Menus Tutorial...
I didn't know what the code was, I was only guessing :p

BTW, if I do that, the code puts the chests automatically at 0, will It stay the same or change from map to map?

Re: Secert Project "Unnammed Title"

Posted: August 3rd, 2010, 8:22 am
by InHumanUnit
My head blew up just now....

Re: Secert Project "Unnammed Title"

Posted: August 3rd, 2010, 9:35 am
by PizzaLover101
Leo_V117 wrote:

Code: Select all

exec "name.cfg"
Would be useful If you used the correct code... Especially when its in the GUI Menus Tutorial...

.........didn't work.............