Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   referencing weapon objects (https://forums.graalonline.com/forums/showthread.php?t=134269715)

khortez 12-12-2014 04:19 PM

referencing weapon objects
 
i wanted to trigger an event from another weapon. and whenever i reference the weapon, for whatever reason this works:

PHP Code:

 temp.test "Personal/khortez/Error_Report".DisplayMSG("test3"); 


but this doesn't?

PHP Code:

  temp.npc "personal/khortez/Error_Report";
  
temp.MSG temp.npc.DisplayMSG("test"); 


and this doesn't work either:

PHP Code:

temp.npc findweapon("personal/khortez/Error_Report");
temp.MSG temp.npc.DisplayMSG("test"); 

Do i have to type out the weapons name every time or is there anything easier?

fowlplay4 12-12-2014 04:56 PM

It's case-sensitive.

PHP Code:

temp.npc findweapon("Personal/khortez/Error_Report");
temp.npc.DisplayMSG("test"); 

should work fine.

khortez 12-12-2014 05:52 PM

and here i spent my time testing out different possible methods before figuring it made no sense. only to find out case sensitive issues is my thing. oh well, anyways thanks


All times are GMT +2. The time now is 05:58 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.