Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

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

A topic by Mr_dododo created Apr 06, 2024 Views: 152 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.