Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
find entity "script" (in "Logic" list).
click on it, then add it anywhere into your map.
then switch to edit mode ("arrow symbol" top-left), click on the script entity (it shows as "lua" in the grid).
Once you do, you will see a large gray space in its properties -- this is room for writing a script.
write in the following (you can copy this in safely):
Of course, this code will only work if you have an ALCOVE, an ALTAR or a SACK with the proper id (= add one of those objects to the map, then click on it with the edit tool, and change its ID to myAlcove, myAltar or mySack, respectively).
Since the code is NOT in any function, it will get executed immediately when the map is loaded.
Let me know if this helped.
Everything else stays the same.