The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
WTF Scriptlines!
P44RTHURN4X Offline
Junior Member

Posts: 35
Threads: 16
Joined: Apr 2012
Reputation: 0
#1
WTF Scriptlines!

Hello to all here!

I downloaded some custom stories last time. Then I looked at the script files they have (.hps files). I was wondering about this scriptlines:
SetLocalVarInt("Var1", 0);

...
...
...

void chemical_1(string &in asItem, string &in asEntity)
{
RemoveItem("chemical_1");
PlaySoundAtEntity("", "puzzle_add_chemical.snt", "acidbarrel", 0, false);
AddLocalVarInt("Var1", 1);
func01();
}

void chemical_2(string &in asItem, string &in asEntity)
{
RemoveItem("chemical_2");
PlaySoundAtEntity("", "puzzle_add_chemical.snt", "acidbarrel", 0, false);
AddLocalVarInt("Var1", 1);
func01();
}

void chemical_3(string &in asItem, string &in asEntity)
{
RemoveItem("chemical_3");
PlaySoundAtEntity("", "puzzle_add_chemical.snt", "acidbarrel", 0, false);
AddLocalVarInt("Var1", 1);
func01();
}

void func01()
{
if(GetLocalVarInt("Var1") == 3)
{
AddUseItemCallback("", "jar_1", "acidbarrel", "giveacid", true);
PlaySoundAtEntity("", "quest_completed.snt", "Player", 0, false);
}
}

I didn't saw them in my live yet!! What the **** is "LocalVarInt"???
Please tell me, what effects these scripts have.
(This post was last modified: 04-21-2012, 09:43 PM by P44RTHURN4X.)
04-21-2012, 09:40 PM
Find


Messages In This Thread
WTF Scriptlines! - by P44RTHURN4X - 04-21-2012, 09:40 PM
RE: WTF Scriptlines! - by Cranky Old Man - 04-21-2012, 10:23 PM



Users browsing this thread: 1 Guest(s)