Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-12-2014, 04:19 PM
khortez khortez is offline
PrototypeX
khortez's Avatar
Join Date: Dec 2008
Posts: 91
khortez will become famous soon enough
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?
Reply With Quote
  #2  
Old 12-12-2014, 04:56 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
It's case-sensitive.

PHP Code:
temp.npc findweapon("Personal/khortez/Error_Report");
temp.npc.DisplayMSG("test"); 
should work fine.
__________________
Quote:
Reply With Quote
  #3  
Old 12-12-2014, 05:52 PM
khortez khortez is offline
PrototypeX
khortez's Avatar
Join Date: Dec 2008
Posts: 91
khortez will become famous soon enough
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:36 PM.


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