(01-01-2011, 04:49 AM)Equil Wrote: No, do not delete this thread. I am quite a "noob" scripter as well and also quite new to the idea of using scripts for multiple maps. Could you explain what you did? My custom story is also going to be across several maps and I will probably be using similar concepts as you, unfortunately I'm not really sure how scripts work across multiple maps, so any explanations can help.
Its easy.. Write your script there where are hub doors not where the hub doors go.. Like this
AddUseItemCallback("", "Dungeon Key <- This is other map key", "level_celler_2", "KeyOnDoor4", true);
void KeyOnDoor4(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("level_celler_2", false, false);
SetLevelDoorLocked(asEntity, false);
RemoveItem("Dungeon Key");
PlaySoundAtEntity("", "unlock_door.snt", "level_celler_2", 0.0f, false);
AddDebugMessage("Type anything you want here", false);
}
And if you have locked hub door and u need script to open with key..
SetLevelDoorLocked(asEntity, false); this is important to add..
Thats all its simple when you got it!