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
programmatic text
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: programmatic text

I don't think this is achievable. You may be able to toy with events which occur in game which will modify a string in script, but I do not think you can create lang entries on the go.

Something like this, as far as I know, may be possible. (Untested)
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player""ScriptArea_1""Increment"false1);
SetLocalVarString("Pass""Pass_");       //Pass_ is a constant. Don't think it can be modified, but can be appended?
SetLocalVarInt("Number"0);
}

void Increment(string &in asParentstring &in asChildint alState
{
AddLocalVarInt("Number"0);
SetMessage("Custom"GetLocalVarString("Pass")+GetLocalVarInt("Number"), 0.0f);


And so, the game would keep track of how many times you pass through a Script Area. The problem is, you'll have to specify in the lang file for each possible pass through the Player can perform - for example, if the player can pass through the ScriptArea 100 times, that is 100 lines of lang file entries.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 10-25-2014, 03:37 PM by Romulator.)
10-25-2014, 03:35 PM
Find


Messages In This Thread
programmatic text - by MrBehemoth - 10-25-2014, 01:47 PM
RE: programmatic text - by Romulator - 10-25-2014, 03:35 PM
RE: programmatic text - by MrBehemoth - 10-26-2014, 10:56 PM
RE: programmatic text - by Daemian - 10-27-2014, 01:15 PM
RE: programmatic text - by MrBehemoth - 10-27-2014, 06:20 PM
RE: programmatic text - by FlawlessHappiness - 10-28-2014, 12:08 PM
RE: programmatic text - by MrBehemoth - 10-28-2014, 06:10 PM
RE: programmatic text - by FlawlessHappiness - 10-28-2014, 07:08 PM
RE: programmatic text - by Romulator - 10-27-2014, 09:24 AM
RE: programmatic text - by Ongka - 10-27-2014, 12:21 PM
RE: programmatic text - by Mudbill - 10-28-2014, 12:19 PM
RE: programmatic text - by FlawlessHappiness - 10-28-2014, 12:27 PM
RE: programmatic text - by Mudbill - 10-28-2014, 01:15 PM
RE: programmatic text - by MrBehemoth - 11-01-2014, 03:51 PM
RE: programmatic text - by Daemian - 11-01-2014, 04:04 PM
RE: programmatic text - by MrBehemoth - 11-01-2014, 04:23 PM
RE: programmatic text - by Mudbill - 11-01-2014, 04:38 PM
RE: programmatic text - by Daemian - 11-01-2014, 06:53 PM
RE: programmatic text - by MrBehemoth - 11-01-2014, 08:13 PM



Users browsing this thread: 1 Guest(s)