tutorial3: dynamically add name of interaction button into dialogues

Also fixed one or two minor typos.
shapetextures
David Dormagen 2015-11-15 17:37:48 +01:00
parent 0067a6dbfe
commit a035239406
5 changed files with 12 additions and 12 deletions

View File

@ -256,7 +256,7 @@ protected func InitializePlayer(int plr)
// Create tutorial guide, add messages, show first.
guide = CreateObject(TutorialGuide, 0, 0, plr);
var interact = GetPlayerControlAssignment(plr, CON_Interact, true, true);
var interact = GetPlayerControlAssignment(plr, CON_Interact, true);
guide->AddGuideMessage(Format("$MsgTutorialWipfville$", interact));
guide->ShowGuideMessage(0);
var effect = AddEffect("TutorialTalkedToLumberjack", nil, 100, 5);
@ -333,7 +333,7 @@ global func FxTutorialFoundLorryTimer(object target, proplist effect)
{
if (FindObject(Find_OCF(OCF_CrewMember), Find_Owner(effect.plr), Find_InRect(168, 576, 104, 72)))
{
guide->AddGuideMessage("$MsgTutorialDynamiteLorry$");
guide->AddGuideMessage(Format("$MsgTutorialDynamiteLorry$", GetPlayerControlAssignment(effect.plr, CON_Contents, true)));
guide->ShowGuideMessage(2);
var new_effect = AddEffect("TutorialObtainedDynamite", nil, 100, 5);
new_effect.plr = effect.plr;
@ -374,7 +374,7 @@ global func FxTutorialObtainedRockTimer(object target, proplist effect)
var clonk = FindObject(Find_OCF(OCF_CrewMember), Find_Owner(effect.plr));
if (clonk && ObjectCount(Find_ID(Rock), Find_Container(clonk)) >= 3)
{
guide->AddGuideMessage("$MsgTutorialSawmill$");
guide->AddGuideMessage(Format("$MsgTutorialSawmill$", GetPlayerControlAssignment(effect.plr, CON_Contents, true)));
guide->ShowGuideMessage(5);
var new_effect = AddEffect("TutorialSawmillFinished", nil, 100, 5);
new_effect.plr = effect.plr;
@ -477,7 +477,7 @@ global func FxTutorialHasOreCoalTimer(object target, proplist effect)
var clonk = FindObject(Find_OCF(OCF_CrewMember), Find_Owner(effect.plr));
if (FindObject(Find_ID(Ore), Find_Container(clonk)) && FindObject(Find_ID(Coal), Find_Container(clonk)))
{
guide->AddGuideMessage("$MsgTutorialProduceMetal$");
guide->AddGuideMessage(Format("$MsgTutorialProduceMetal$", GetPlayerControlAssignment(effect.plr, CON_Contents, true)));
guide->ShowGuideMessage(11);
var new_effect = AddEffect("TutorialMetalFinished", nil, 100, 5);
new_effect.plr = effect.plr;

View File

@ -11,15 +11,15 @@ MsgRepeatRoundDesc=Restart this scenario.
# Tutorial messages
MsgTutorialWipfville=This guidepost reads Wipfville, probably the reason why your wipf ran off. It seems that this little village has been under attack, maybe you can find out more by talking to that lumberjack over there. Stand in front of an NPC and press [%s] to start a conversation.
MsgTutorialFindRock=Okay, we need to find some rock to finish the construction of this sawmill over here. Let's have a look at the mines of this village, maybe we can find something there.
MsgTutorialDynamiteLorry=There is a lorry filled with dynamite. You can access the contents of many vehicles and buildings by pressing [E], which opens the interaction menu. You can interchange items between different containers by clicking them. Grab a stick of dynamite!
MsgTutorialDynamiteLorry=There is a lorry filled with dynamite. You can access the contents of many vehicles and buildings by pressing [%s], which opens the interaction menu. You can interchange items between different containers by clicking them. Grab a stick of dynamite!
MsgTutorialBlastRock=Perfect, with dynamite you can blast the rock at the ceiling, rock is used as a construction material. Hang onto the rock material and select one of the dynamite sticks, press the left mouse button once to fuse it and press it another time in the direction of the rock to stick it into the wall. Then jump off and run!
MsgTutorialPickUpRock=Great, pick up three pieces of rock, so that you can finish the sawmill construction.
MsgTutorialSawmill=Go up to the sawmill construction site and put the three pieces of rock into construction site via the interaction menu (press [E] to open). If all building materials are put into a construction site the building will be constructed automatically.
MsgTutorialSawmill=Go up to the sawmill construction site and put the three pieces of rock into construction site via the interaction menu (press [%s] to open). If all building materials are put into a construction site the building will be constructed automatically.
MsgTutorialTalkToFireman=The villagers seem to need a little more help, talk to the fireman standing next to the burned hut and to the builder next to the mine entrance.
MsgTutorialConstructFlagpole=Get the hammer from the chest, then use it to open the construction menu. From the construction menu you can select a building you wish to construct, select the flagpole and place it at the indicated position.
MsgTutorialFlagpoleMaterials=Now that the construction site is placed we need some wood and metal. Talk to the lumberjack again to obtain some wood.
MsgTutorialAxeChopping=Find the axe in the mine and use it chop down a tree for wood, then put three pieces of wood into the construction site for the flagpole. Stand next to a tree and use the axe to start chopping, be sure to not stand exactly in front of it and keep holding down the mouse button. The fallen tree can either be pushed into the sawmill or chopped to wood manually.
MsgTutorialOreMining=Good, now only one piece of metal is needed to finish the flagpole. This can be produced at the foundry using ore and coal. Descend into the mine again and get on piece of ore by blasting the ore material and one piece of coal by digging the coal material.
MsgTutorialProduceMetal=With ore and coal you can smelt metal, which is used as construction material for many structures and items. Go to the foundry and use the interaction menu (press [E] to open) to transfer the coal and ore to the foundry. For production facilities like the foundry there is an additional section in the interaction menu, select metal production here and wait for it to finish.
MsgTutorialProduceMetal=With ore and coal you can smelt metal, which is used as construction material for many structures and items. Go to the foundry and use the interaction menu (press [%s] to open) to transfer the coal and ore to the foundry. For production facilities like the foundry there is an additional section in the interaction menu, select metal production here and wait for it to finish.
MsgTutorialMetalToSite=The metal is finished, pick it up and put it into the flagpole construction site to finish the flagpole.
MsgTutorialCompleted=Well done! You have mastered the basics of construction, using rock, wood and metal. The villagers of Wipfville will be grateful. Let's proceed to the next tutorial.

View File

@ -11,15 +11,15 @@ MsgRepeatRoundDesc=Restart this scenario.
# Tutorial messages
MsgTutorialWipfville=This guidepost reads Wipfville, probably the reason why your wipf ran off. It seems that this little village has been under attack, maybe you can find out more by talking to that lumberjack over there. Stand in front of an NPC and press [%s] to start a conversation.
MsgTutorialFindRock=Okay, we need to find some rock to finish the construction of this sawmill over here. Let's have a look at the mines of this village, maybe we can find something there.
MsgTutorialDynamiteLorry=There is a lorry filled with dynamite. You can access the contents of many vehicles and buildings by pressing [E], which opens the interaction menu. You can interchange items between different containers by clicking them. Grab a stick of dynamite!
MsgTutorialDynamiteLorry=There is a lorry filled with dynamite. You can access the contents of many vehicles and buildings by pressing [%s], which opens the interaction menu. You can interchange items between different containers by clicking them. Grab a stick of dynamite!
MsgTutorialBlastRock=Perfect, with dynamite you can blast the rock at the ceiling, rock is used as a construction material. Hang onto the rock material and select one of the dynamite sticks, press the left mouse button once to fuse it and press it another time in the direction of the rock to stick it into the wall. Then jump off and run!
MsgTutorialPickUpRock=Great, pick up three pieces of rock, so that you can finish the sawmill construction.
MsgTutorialSawmill=Go up to the sawmill construction site and put the three pieces of rock into construction site via the interaction menu (press [E] to open). If all building materials are put into a construction site the building will be constructed automatically.
MsgTutorialSawmill=Go up to the sawmill construction site and put the three pieces of rock into construction site via the interaction menu (press [%s] to open). If all building materials are put into a construction site the building will be constructed automatically.
MsgTutorialTalkToFireman=The villagers seem to need a little more help, talk to the fireman standing next to the burned hut and to the builder next to the mine entrance.
MsgTutorialConstructFlagpole=Get the hammer from the chest, then use it to open the construction menu. From the construction menu you can select a building you wish to construct, select the flagpole and place it at the indicated position.
MsgTutorialFlagpoleMaterials=Now that the construction site is placed we need some wood and metal. Talk to the lumberjack again to obtain some wood.
MsgTutorialAxeChopping=Find the axe in the mine and use it chop down a tree for wood, then put three pieces of wood into the construction site for the flagpole. Stand next to a tree and use the axe to start chopping, be sure to not stand exactly in front of it and keep holding down the mouse button. The fallen tree can either be pushed into the sawmill or chopped to wood manually.
MsgTutorialOreMining=Good, now only one piece of metal is needed to finish the flagpole. This can be produced at the foundry using ore and coal. Descend into the mine again and get on piece of ore by blasting the ore material and one piece of coal by digging the coal material.
MsgTutorialProduceMetal=With ore and coal you can smelt metal, which is used as construction material for many structures and items. Go to the foundry and use the interaction menu (press [E] to open) to transfer the coal and ore to the foundry. For production facilities like the foundry there is an additional section in the interaction menu, select metal production here and wait for it to finish.
MsgTutorialProduceMetal=With ore and coal you can smelt metal, which is used as construction material for many structures and items. Go to the foundry and use the interaction menu (press [%s] to open) to transfer the coal and ore to the foundry. For production facilities like the foundry there is an additional section in the interaction menu, select metal production here and wait for it to finish.
MsgTutorialMetalToSite=The metal is finished, pick it up and put it into the flagpole construction site to finish the flagpole.
MsgTutorialCompleted=Well done! You have mastered the basics of construction, using rock, wood and metal. The villagers of Wipfville will be grateful. Let's proceed to the next tutorial.

View File

@ -16,7 +16,7 @@ DlgFiremanFurryFriend=That is bad, I hope they won't take my little furry friend
DlgFiremanFlagpole=We need to construct a new flag pole, to reconnect the power supply in our village.
# Dialogue: Builder
DlgBuilderHello=Hi there, My name is %s and I am a builder.
DlgBuilderHello=Hi there, my name is %s and I am a builder.
DlgBuilderReply=Then you have lots of work. Do you need a hand?
DlgBuilderFlagpole=Yes, can you construct a flagpole over here?
DlgBuilderWhyHere=Of course, but why over here?

View File

@ -16,7 +16,7 @@ DlgFiremanFurryFriend=That is bad, I hope they won't take my little furry friend
DlgFiremanFlagpole=We need to construct a new flag pole, to reconnect the power supply in our village.
# Dialogue: Builder
DlgBuilderHello=Hi there, My name is %s and I am a builder.
DlgBuilderHello=Hi there, my name is %s and I am a builder.
DlgBuilderReply=Then you have lots of work. Do you need a hand?
DlgBuilderFlagpole=Yes, can you construct a flagpole over here?
DlgBuilderWhyHere=Of course, but why over here?