forked from Mirrors/openclonk
Tutorials: Removed Desc**.txt, added some scenario descriptions and fixed the goal message in tut03
parent
a1b69dc040
commit
d1db702be9
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
Erste Schritte in der Welt von OpenClonk.
|
|
@ -1 +0,0 @@
|
|||
The scenario is completed if all crew members have reached the flag.
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
Name=Reach the flag
|
||||
Description=The scenario is completed if all crew members have reached the flag.
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
Name=Reach the flag
|
||||
Description=The scenario is completed if all crew members have reached the flag.
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Setzt ein Objekt zu sein vorherigen Position oder Container zurück.
|
|
@ -1 +0,0 @@
|
|||
Restores a lost object to its original location or container.
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
Name=Objektregenerierung
|
||||
Description=Setzt ein Objekt zu sein vorherigen Position oder Container zurück.
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
Name=Object restorer
|
||||
Description=Restores a lost object to its original location or container.
|
||||
|
|
Binary file not shown.
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
|
@ -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.
|
Loading…
Reference in New Issue