安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题
Hopefully this is me not filling in the code fields properly or a bug, but if not, i think that your recommendation is a guaranteed method. Thank you.
Edit: I'm testing it and that flag does nothing, the game carries on.
I have tried the Script of an event. There is a function "IsDead(id)". I created a Zombie (entity), surrounded it with steel walls, gave it the id "EndGameZombie". In the script, I added the action "Execute Code". For the Condition, I typed IsDead(EndGameZombie). For the Execute property I typed EndGameWon(). Nothing happens in the game. I kill the zombie, game carries on.
Maybe you can play more with the scripts.
That should work fine. You can just set in the event the Game Won check and no need to set more actions with code.
Make sure that in the start time for the event is zero, otherwise the event won't evaluate the condition until their start time has been reached.
We have modified the editor so that the event start time is by default (0) instead of (1 day) as it can lead to confusion when dealing with script conditions.
I have a variable in variables and functions called wincon with initial value of 0
I have a UnitMapEventMessage 5x5 that has text and in the advanced options Execute box 'wincon=1;' (no quotes)
I have an event ID game won with condition wincon=1
repeat period 1h (tried leaving this blank and has same effect of not firing)
max repetitions 0 (left this alone, have tried 999, but that fails as well)
Game Won? checked Yes
Will add link to the game on workshop in a moment.
https://steamcommunity.com/sharedfiles/filedetails/?id=1573244755
You are right, it was a really weird bug with the operator comparison equal.
It is fixed and tested it in your level. Just restart Steam to force the game update.
Thanks for the feedback.
About triggering events you don't need to set repetitions. The event is continuously evaluating the StartTime and the condition (if any), until both are true and then it triggers. And If it has repetitions the event will trigger when the time is reached and the condition is true again.
By the way, don't put buildings outside the buildable area of the map as it can cause weird problems.