Page 101 of 396

Re: Ask a simple question, get a simple answer

Posted: Sat Nov 21, 2015 10:11 pm
by THOM
Hey Isaac - would this be a script that I have to trigger with a timer?

Re: Ask a simple question, get a simple answer

Posted: Sat Nov 21, 2015 10:12 pm
by Isaac
No, it triggers when the monster ends its move into the same tile (and elevation) as the script_entity.

*You replace the demo print instructions with your own, and/or a call to a different script/function; but you would have to pass along the target or target's id, if you want to have that available to the called script.

Re: Ask a simple question, get a simple answer

Posted: Sat Nov 21, 2015 10:15 pm
by THOM
Well, but - how is it getting started? Or in other words: where do I have to put it?

Re: Ask a simple question, get a simple answer

Posted: Sat Nov 21, 2015 10:23 pm
by Isaac
Use the script entity itself just as you would a pressure plate. Whenever the monster moves it executes the check conditions, and when the monster is on the same tile (and same elevation) as the script entity, the instructions are triggered.

The only other requirement is to add the monster's ID into the monster table. For performance reasons the script only works with the ids listed in the table.

(More than one monster ID can be added, and they will each trigger the script individually ~when they "step on it".)

** Duplicates of this script (with different triggered instructions) can be used in other locations; or optionally all of the duplicates can instead call a specific custom script/function rather duplicating it in each copy.

Re: Ask a simple question, get a simple answer

Posted: Sun Nov 22, 2015 1:24 am
by THOM
Great, Isaac. Implemented it several times and it works perfect. Thanks!

Re: Ask a simple question, get a simple answer

Posted: Tue Nov 24, 2015 7:03 am
by Eleven Warrior
beach_ocean Object:

Is it possible to make the (AB) object cover the whole map? If you have a Island in the middle of the map and water all around you have to add 2 beach_ocean objects to the map to get the distant ocean effect. North, South etc...

Re: Ask a simple question, get a simple answer

Posted: Tue Nov 24, 2015 8:26 am
by Isaac
Eleven Warrior wrote:beach_ocean Object:

Is it possible to make the (AB) object cover the whole map? If you have a Island in the middle of the map and water all around you have to add 2 beach_ocean objects to the map to get the distant ocean effect. North, South etc...
I tried it with two some time back, and hid the seam reasonably well with shipwrecks.

Re: Ask a simple question, get a simple answer

Posted: Wed Nov 25, 2015 11:24 am
by Eleven Warrior
Yeah thxs Issac I did that but it's the distant beyond the actual map mate. So I want to make one that covers the whole map so I don't have to use objects to cover

Re: Ask a simple question, get a simple answer

Posted: Wed Nov 25, 2015 2:09 pm
by AndakRainor
The 3D model is too small for that, but maybe it could be done with a bigger custom model.

Re: Ask a simple question, get a simple answer

Posted: Wed Nov 25, 2015 2:11 pm
by Isaac
Then it will take five of them to pull that off; and the island cannot approach the edge of the map too close.

But the main problem will be flooded stairwells if you have any on the island.