Spawn Scroll and setScrollText

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Falkenwrath
Posts: 15
Joined: Tue Aug 04, 2015 6:32 am

Re: Spawn Scroll and setScrollText

Post by Falkenwrath »

I having trouble with this. I have a floor trigger connected to a lua script to spawn a scroll message before going through a door using this script on the posts.

local message = spawn("scroll")
message.scrollitem:setScrollText("This is an important\nmessage!")

after selecting the script entity for the floor trigger. the third box the comes up after I targeted the lua script is half cut off by the border of the window. resizing doesn't help. this prevent me from using the third box.....

The most likely problem is that I don't completely understand the process.. I learn way faster if someone is talking me through it. read doesn't always click right away lol..
User avatar
THOM
Posts: 1274
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Spawn Scroll and setScrollText

Post by THOM »

You can resize the width of the mainwindow (the one with the map-layout in it) and/or the hight of the preview window. Just finde the point at their borders where you can "grap" them with the mousepointer.

Then you should be able to reach every part of the editing area.
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
Post Reply