Tutorials: Removed Desc**.txt, added some scenario descriptions and fixed the goal message in tut03

floating-point
Maikel de Vries 2010-08-24 13:36:26 +02:00
parent a1b69dc040
commit d1db702be9
15 changed files with 31 additions and 9 deletions

Binary file not shown.

View File

@ -1 +0,0 @@
Erste Schritte in der Welt von OpenClonk.

View File

@ -1 +0,0 @@
The scenario is completed if all crew members have reached the flag.

View File

@ -34,7 +34,7 @@ public func CreateGoalFlag(int x, int y)
protected func Activate(int plr)
{
return MessageWindow(GetDesc(), plr);
return MessageWindow(GetProperty("Description", this), plr);
}
/*-- Proplist --*/
@ -42,4 +42,5 @@ protected func Activate(int plr)
func Definition(def)
{
SetProperty("Name", "$Name$", def);
SetProperty("Description", "$Description$", def);
}

View File

@ -1 +1,2 @@
Name=Reach the flag
Description=The scenario is completed if all crew members have reached the flag.

View File

@ -1,2 +1,3 @@
Name=Reach the flag
Description=The scenario is completed if all crew members have reached the flag.

View File

@ -1 +0,0 @@
Setzt ein Objekt zu sein vorherigen Position oder Container zurück.

View File

@ -1 +0,0 @@
Restores a lost object to its original location or container.

View File

@ -171,4 +171,5 @@ global func FxRestoreModeStop(object target, int num, int reason, bool temporar
func Definition(def)
{
SetProperty("Name", "$Name$", def);
SetProperty("Description", "$Description$", def);
}

View File

@ -1 +1,2 @@
Name=Objektregenerierung
Description=Setzt ein Objekt zu sein vorherigen Position oder Container zurück.

View File

@ -1 +1,2 @@
Name=Object restorer
Description=Restores a lost object to its original location or container.

Binary file not shown.

View File

@ -2,6 +2,12 @@
#appendto Goal_ReachFlag
protected func Initialize()
{
SetProperty("Description", "$NewGoalDescription$", this);
return _inherited(...);
}
public func IsFulfilled()
{
// No flag, goal fulfilled.
@ -12,10 +18,20 @@ public func IsFulfilled()
{
var balloon_count = ObjectCount(Find_ID(PracticeTarget));
if (balloon_count == 0)
{
// Balloon_count zero, hence goal fulfilled.
return true;
}
else
flag->Message("$MsgTargetsLeft$", balloon_count);
{
// Notify the player.
if (balloon_count == 1)
flag->Message("$MsgOneTargetLeft$");
else
flag->Message("$MsgTargetsLeft$", balloon_count);
}
}
// Otherwise unfulfilled.
return false;
}
}

View File

@ -1 +1,3 @@
MsgTargetsLeft=Noch %d Ziele zum vernichten übrig.
MsgOneTargetLeft=Noch ein Ziel zum vernichten übrig.
MsgTargetsLeft=Noch %d Ziele zum vernichten übrig.
NewGoalDescription=The scenario is completed if all targets are destroyed and your crew member has reached the flag on the far right side.

View File

@ -1 +1,3 @@
MsgTargetsLeft=Still %d targets left to destroy.
MsgOneTargetLeft=Still one target left to destroy.
MsgTargetsLeft=Still %d targets left to destroy.
NewGoalDescription=The scenario is completed if all targets are destroyed and your crew member has reached the flag on the far right side.