Stranded


Commands
Player (46)

air Airtime

Categories: player
Gives the player new breath while he is diving. The parameter airtime is the time value for which the player gets new air (in milliseconds). The value is limited by the maximum diving time (specified per definition), so it cannot be higher.

compass

Categories: interface, player
Sorry, info not available in english!
Zeigt (1, Standard) oder versteckt den Kompass (0). Nach jedem Ladevorgang ist der Kompass standardmäßig aktiv und wird im Interface angezeigt. Man muss ihn also nach jedem laden deaktivieren (load-Event), wenn man ihn nicht sehen möchte

consume [Health] [,Hunger] [,Thirst] [,Exhaustion]

Categories: player
Alters the values of the player. If the command is executed at an item, it will be deleted resp. its number will be decreased by 1

count_behaviourinrange "Class", "Behaviour" [,Radius] [,"Class2", ID2]

Categories: return, player, objects
Returns the number of those objects located within a radius (standard length: 300) around the player (or an object), that belong to a certain Class and have a certain Behaviour.

count_inrange "Class", Type [,Radius] [,"Class2", ID2]

Categories: return, player
Returns the number of objects of a certain type that are located within a radius (standard length: 300) around the player (or an object)

drink [Health] [,Hunger] [,Thirst] [,Exhaustion]

Categories: player
Plays a drinking sound and changes the player's values. If the command is executed at an item, it will be deleted resp. its number will be decreased by 1

eat [Health] [,Hunger] [,Thirst] [,Exhaustion]

Categories: player
Plays an eating sound and changes the player's values. If the command is executed at an item, it will be deleted resp. its number will be decreased by 1

equip [Item Type]

Categories: interface, player, items
If you attach the parameter Item Type, the item of the specified type will be selected as weapon resp. tool, that is to say: the player produces it. (still, he can only use it, if he does already have at least one item of the type).
If the parameter Item Type is not added, the "naked" command can be used to assort the currently selected item to a numeric key. That way, it will be made selectable by pressing that key. This only works when the inventory is opened and exactly one item type is marked.

find

Categories: player, items
Sorry, info not available in english!
Lässt den Spieler das Item des angegeben Typs finden - inklusive Nachricht und 2D Effekt wie beim Aufsammeln. Die Menge ist standardmäßig 1. Der Befehl erzeugt das Item und lagert es sofort beim Spieler ein

freeskill "Skill"

Categories: skills, player, free
Deletes a skill

freeze

Categories: object, player
Sorry, info not available in english!
"Friert" eine Einheit, welche über Unit-ID angegeben wurde, ein (Modus 1, standard) bzw. "taut" sie wieder auf (Modus 0). Wird als ID 0 angegeben, so werden ALLE Einheiten eingefroren bzw. aufgetaut.
Eingefrorene Einheiten sind komplett bewegungsunfähig. Sie stehen/schweben/schwimmen still an ihrer Position und rühren sich nicht. Sie lassen sich jedoch töten und benutzen.
Wenn man den Spieler einfriert (Unit-ID 1) so kann er nicht mehr bewegt werden. Auch Angreifen und Benutzen ist nicht mehr möglich. Menüaktionen (z.B. Items im Inventar benutzen und kombinieren) sowie Umsehen mit der Maus sind trotzdem noch möglich.
Man kann auch ermitteln, ob eine bestimmte Einheit eingefroren ist oder nicht, in dem man deren ID angibt und bei Modus eine 2 angibt. Der Befehl ändert den Zustand dann nicht, sondern gibt 1 für eingefroren oder 0 für nicht eingefroren zurück

fry

Categories: effects, player
A fry effect and sound. Effect only visible if item is used with inventory

getoff

Categories: player
Player stops riding a unit

getplayerammo

Categories: player, return
Returns the type of the current ammo the player is using

getplayervalue

Categories: player, return
Returns a value of the player:
1 - Health
2 - Hunger
3 - Thirst
4 - Fatigue

getplayerweapon

Categories: player, return
Returns the type of the current weapon/tool of a player

gotskill "Skill"

Categories: skills, player, return
Returns 1 if a skill exists else 0

incskill "Skill" [,Value] [,"Name"]

Categories: skills, player
Increases a skill by value (default 1). Use negative values to decrease it.
You can also change the name with this command.
The skill will be created with the right value if it does not exist already.

inrange "Class", ID [,Radius] [,"Class2", ID2]

Categories: return, player
Checks wether the object is within a radius (standard length: 300) of the player (or a second object) and returns 1 or 0

inview "Class", ID

Categories: return, player
Returns 1 of the object is currently in the field of view and 0 if it is not

jade Value

Categories: player
Alters hunger, thirst and exhaustion - all by the same stated value

jumpfactor

Categories: player
Sorry, info not available in english!
Ändert den Wert jumpfactor aus der game.inf und erlaubt somit die Sprungweite des Spielers zu regulieren

jumptime

Categories: player
Sorry, info not available in english!
Ändert den Wert jumptime aus der game.inf wodurch die Sprungdauer (und somit auch Höhe) festgelegt werden kann

playerdistance "Class", ID

Categories: return, player
Returns the distance between the player and an object

playergotitem Type

Categories: return, player, items
Returns the number of items of the specified type that the player has in his posession

playerspotted

Categories: player, return
Returns 1 if the player is currently hunted/followed/spotted by an aggressive unit

player_ammo Type

Categories: player
Switches the ammo type for the current weapon. The player has to have this ammo item in his inventory and it has to be usable as ammunition for the currently selected weapon/tool

player_attackrange Value

Categories: player
Changes the attack range of the player with bare hands. This is not saved in savegames!

player_damage Value

Categories: player
Changes the damage a player causes with bare hands. This is not saved in savegames!

player_mat "Material"

Categories: player
Changes the material of the player. This may change his properties. Stone is resistant against fire for example. This is not saved in savegames!

player_maxweight Value

Categories: player
Changes the max. weight the player can carry. This is not saved in savegames!

player_speed Value

Categories: player
Changes the speed of the player. This is not saved in savegames!

player_weapon Type

Categories: player
Switches the item the player has in his hands. The player has to have this item in his inventory.

ride [ID]

Categories: player
Player rides the unit with the given ID or the unit were you execute the script.

riding

Categories: player, return
Returns the ID of the unit which the player is currently riding or 0 if he is not riding anything

scantarget

Categories: player
Sorry, info not available in english!
Prüft auf was der Spieler bzw. die Kamera gerade zeigt. Hierbei werden alle Objekte berücksichtigt, die in der angegebenen Reichweite liegen (Standard 10.000).
Nach Nutzung des Befehls lassen sich mit den target-Befehlen (targetclass, targetid, targetx, targety, targetz und targetdistance) die Resultate auswerten.

Achtung: Der Himmel ist die einzige Fläche, die von scantarget nicht erfasst werden kann. Wenn man auf den Himmel zeigt sind daher alle target-Werte 0.

setskill "Skill" [,Value] [,"Name"]

Categories: skills, player
Creates or changes a skill. They are displayed in your character menu and are like variables.
The value is 0 by default. "Skill" is the internal name for you skill. It will automatically be the visible name for your skill if you do not enter a "Name" value. If you enter a name value then this value will be displayed. Enter "" as name if you want to have a skill which is not visible in the character menu.
A click on a skill in the char menu creates a global even called skill_XXXXX while XXXXX is the internal name of the skills (spaces are replaced with _ there)

skillvalue "Skill"

Categories: skills, player, return
Returns the value of a skill

sleep

Categories: player
Sorry, info not available in english!
Lässt den Spieler schlafen

sleeping

Categories: player, return
Sorry, info not available in english!
Gibt zurück ob der Spieler gerade schläft (1) oder nicht (0).
Vor allem für Scripts beim changeday-Event sinnvoll

targetclass

Categories: player, return
Sorry, info not available in english!
Gibt die ermittelte Klasse vom letzten scantarget-Aufruf zurück.
-2 - Wasser
-1 - Boden
0 - Nichts
1 - Object
2 - Unit
3 - Item

targetdistance

Categories: player, return
Sorry, info not available in english!
Gibt die Distanz zwischen dem Spieler/der Kamera und den Koordinaten vom letzten scantarget-Aufruf zurück.

Achtung: Wenn bei scantarget nichts erfasst wurde, liefert der Befehl die Entfernung zwischen der Kamera und dem Punkt 0,0,0.

targetid

Categories: player, return
Sorry, info not available in english!
Gibt die ermittelte ID vom letzten scantarget-Aufruf zurück (0 wenn kein Objekt im Zielvisier ist)

targetx

Categories: player, return
Sorry, info not available in english!
Gibt die X-Koordinate des Zielpunktes vom letzten scantarget-Aufruf zurück

targety

Categories: player, return
Sorry, info not available in english!
Gibt die Y-Koordinate des Zielpunktes vom letzten scantarget-Aufruf zurück

targetz

Categories: player, return
Sorry, info not available in english!
Gibt die Z-Koordinate des Zielpunktes vom letzten scantarget-Aufruf zurück

Stranded I, Stranded II & Stranded III are games by Unreal Software 2003-2023 | Contact | Disclaimer