1. The texture needs to switch from No Fuse to inserted fuse.
2. The fuse needs to be deleted from my inventory.
3. A line portal must be activated.
Problems i have is that i can't set multiple actions under one if condition if i want an else condition. I have to use several if conditions.
Or is it possible to trigger several things with one if condition. For now it works with several ifs, but the last point, that is for setting the portal, is still an issue.
I want to use the switched texture as the trigger, but i don't know how to code that. Something like: IF texture on line 25 is "Fusein texture", line_setportal target xy.
Code: Select all
script "Fusein" (int tag)
{
if (CheckInventory("Fuse"))
SetLineTexture (23, SIDE_FRONT, TEXTURE_BOTTOM,"MITFUSE");
if (CheckInventory("Fuse"))
TakeInventory("Fuse",1);
Line_SetPortalTarget(24,25);
}