Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Doubt about a puzzle idea (script)
Spelos Away
Banned

Posts: 231
Threads: 19
Joined: Sep 2014
#12
RE: Doubt about a puzzle idea (script)

Ok, so I think Mudbill made a mistake.
It's not OnBreak, it's just Break.
And you should also change the 4 to the max number of your vases like this:

PHP Code: (Select All)
int vasesBroken 1;

void BreakVase(string &in asEntitystring &in type)
{
    if(
type != "Break") return;

    if(
asEntity == "vase_" vasesBroken)
    {
        if(
vasesBroken == 19//This should correspond to the last vase
        
{
            
//The Player got it right!
            
return;
        }
        
vasesBroken++;
        return;
    }

    
vasesBroken 1;
    
ResetProp("vase_*");

03-09-2016, 07:19 AM
Find


Messages In This Thread
RE: Doubt about a puzzle idea (script) - by Spelos - 03-09-2016, 07:19 AM



Users browsing this thread: 5 Guest(s)