Quote:
Originally Posted by pig132
The thing is, it is for a shop (in a level). Unless I can trigger a weapon from a level npc? If not, i'm not really sure what you mean
|
Yes, you can.
In the level NPC:
PHP Code:
(@ "-Shop").trigger("showBuyWindow", temp.itemName, ...);
then in -Shop
PHP Code:
function onShowBuyWindow(temp.itemName, ...) {
// show GUI
}