The Dink Network

Reply to Re: two questions about maps and scripts

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
April 6th 2018, 03:01 PM
peasantm.gif
shevek
Peasant They/Them Netherlands
Never be afraid to ask, but don't demand an answer 
If it needs to happen when entering the screen, like the traveller who is assaulted by the guards near Stonebrook in the original game, you will need a script attached to the map screen. That is the only way to add new sprites to a screen before it is drawn.

You can add a forever-running script to decide when to trigger the event, but the event itself needs to be in the map screen's script. And if you have that script anyway, there isn't much value in the forever-running script, I think. But I don't know your exact use case, so I could be wrong.