else
{
HudMessage (s:"Sorry Dynamite, you need more sapphire gems."; HUDMSG_TYPEON, 1, CR_GREEN, 0.5, 0.35 , 1873 * 25);
}
}
This is a script I am working on so far. All it does is check whether the player (aka Dynamite) has collected at least 3 gems. In total they can find 5 (not counting secrets) in the first "hub".
The else statement works fine but for some reason I can't seem to get the IF statement to work...
script 10 (void)
{
if (CheckActorInventory (0, "SapphireGemmy") >= 3)
{
Floor_LowerByValue (8, 16, 127);
}
else
{
HudMessage (s:"Sorry Dynamite, you need more sapphire gems."; HUDMSG_TYPEON, 1, CR_GREEN, 0.5, 0.35 , 1873 * 25);
}
}
This is a script I am working on so far. All it does is check whether the player (aka Dynamite) has collected at least 3 gems. In total they can find 5 (not counting secrets) in the first "hub".
The else statement works fine but for some reason I can't seem to get the IF statement to work...
Any ideas?
Share this post
Link to post