okay but how do i make so the process is automatic without delay? Like update the info the moment it happens? Cause i only want the message to display while the player is around the vendor of the specific item and it updates the ammounts and pictures the moment you buy the thing in question and fades out the moment you go somewhere else
EDIT: I think i may have figured something, but i need to figure how to make a script break the loop of another script. Ima try to make a hudmessage that loops very rapidly and stops once another sector is hit
EDIT 2: Okay i think i solved it, thanks for the help!
EDIT 3: Nevermind, my idea was to make a sector with another sector inside of it. The exterior sector would terminate the script and the inner sector would execute it. Problem is that the inner sector's script only executes once i have touched another face/corner of it instead of working directly. Executealways and executewithresult makes the loop never go away despite telling it to stop, im running outta ideas :(
Here's the script in question:
Code: Select all
#include "zcommon.acs"
script 1 (void)
{
SetFont("BIGFONT");
HudMessage(s:"you currently own ",
d:CheckInventory("Shell"),
s:" of these!";
HUDMSG_PLAIN, 1, CR_YELLOW, 0.1, 0.1, 0.1);
delay(1);
Restart;
}
It works pretty well, but problem is either it doesn't start correctly or simply won't stop