Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

The "check armour" script isn't working for me

A topic by Mr_dododo created 32 days ago Views: 88 Replies: 2
Viewing posts 1 to 3
(+1)

I was trying to test out a mechanic that checks how much armour you have for a specific area and it just never works at all.


the script in question


player check armour $global.armour

if $global.armour == 0 {

player speed 200

} else {

player speed 120

}


I really can't figure out what's wrong, it just doesn't register the fact I have 100 armour at all

Hi Mr_dododo, I think I might have found the problem!


The first line should read: "player check armour global.armour" without the dollar sign before the variable name! I think that should work

It worked! Thank you.