The Dink Network

Reply to Re: Spawn and external!

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:
 
 
January 20th 2014, 06:34 AM
wizardb.gif
Kyle
Peasant He/Him Belgium
 
Sure there's some ways to do this. The easiest one is to use a global variable, one that you reserved for scripting tricks such as this. If you make use of the variable (set it to a local in the spawned script) without a wait() in between you'll never run into issues with it.

The other way is writing the data to a sprite on screen and retrieving it from that, for example in its sp_gold() or editor_seq. You could use a sp(5) or whatever to target it, as long as there are 5 sprites on the screen. I wouldn't use this method, but it's functional.

I also like Leprochaun's solution, it would work fine. If you could, try it with the globals though, it's much more reliable and doesn't count on sprites to do their job.