Stealing

» Settlers Map Source Forums » Siedler DEdK Script Forum » Stealing

Pages: 1

SH
#1
21-07-2018 21:18
Posts: 62

Stealing

Is there a function through which a thief can steal resources from a given building?

____________________
It's important to understand the scripts you use.

mcb
#2
21-07-2018 23:19
Posts: 1367

Yes, it is part of the S5Hook (PostEvent to be exact).

SH
#3
22-07-2018 10:33
Posts: 62

Thank you!
But code to S5Hook is long and I haven't space in my script. What can I do?

____________________
It's important to understand the scripts you use.

mcb
#4
22-07-2018 11:52
Posts: 1367

Do you use the mapeditor to edit your script? It has a limit on how big the lua filesize can be, but you can easyly extend this with tinyscript, or load external scripts (which is extremely helpful for testing, because you can edit your script file and then simply restart the map). But other than that mapeditor limit there is no size limit for scripts (i can easily load my 20000 lines script with Script.Load).

SH
#5
22-07-2018 12:54
Posts: 62

Thank you, tinyscript works.
How to use the ScriptLoad?

____________________
It's important to understand the scripts you use.

mcb
#6
22-07-2018 16:02
Posts: 1367

Script.Load(pathToLuaFile)

Pages: 1

SiteEngine v1.5.0 by nevermind, ©2005-2007
Design by SpiderFive (www.siedler-games.de) - English translation by juja

Impressum