Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-16-2003, 01:14 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Unhappy weapons and events

for some reason when I use a weapon that uses events offline, it wont work when I go into the editor and load a level without the weapon (to re-add it to the weapons).

NPC Code:

// NPC made by Chad (VIP)
if (created&&!isweapon) {
toweapons testweapon;
destroy;
}
if (keypressed) {
setplayerprop #c,Key!!;
}


put that into a level, load it, then go into the editor and load a different level, now it doesn't work!? They'll start working again if they are called with weaponfired, but this is really annoying and not all my weapons can be called that way...
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #2  
Old 03-16-2003, 01:28 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
It should be Clientside if you are using it on a NPC-Server, and use addweapon and not to weapons.
__________________
new account: Trevor
Reply With Quote
  #3  
Old 03-16-2003, 01:46 AM
alarid0 alarid0 is offline
~~Paul
alarid0's Avatar
Join Date: Jan 2003
Location: Wisconsin, USA
Posts: 1,060
alarid0 will become famous soon enough
Send a message via AIM to alarid0 Send a message via MSN to alarid0
Why would you put destroy; after toweapons?
__________________
Reply With Quote
  #4  
Old 03-16-2003, 03:11 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by alarid0
Why would you put destroy; after toweapons?
To destroy the NPC.
__________________
new account: Trevor
Reply With Quote
  #5  
Old 03-16-2003, 03:17 AM
alarid0 alarid0 is offline
~~Paul
alarid0's Avatar
Join Date: Jan 2003
Location: Wisconsin, USA
Posts: 1,060
alarid0 will become famous soon enough
Send a message via AIM to alarid0 Send a message via MSN to alarid0
But that also destroys the weapon unless he uses addweapon
__________________
Reply With Quote
  #6  
Old 03-16-2003, 05:42 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Re: weapons and events

Quote:
Originally posted by Dach
for some reason when I use a weapon that uses events offline
I don't make stuff online, so I'm not using npc-server, nor do I even know it well enough to even worry about it... If anyone wants to test this online, be my guest, try to see if you can get the problem to actually occur though, otherwise you're simply wasting time

NPC Code:
if (created&&!isweapon)


it won't destroy when it's a weapon
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #7  
Old 03-16-2003, 01:31 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Oh yes, I noticed that too. Online it was even worse on Classic because sometimes the system scripts didn't work or weapons didn't initialize correctly. But I thought that was fixed in v2.16 rev2:

Quote:
newfeatures2002.txt
- weapons are initialized correctly on classic servers
But maybe it was not fixed for the offline mode. I remember now that when you look in the debugger before you fire the weapon it's even empty.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
  #8  
Old 03-19-2003, 10:39 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm will become famous soon enough
scripts end after toweapons, so that destroy; is just taking up space. =_=

Oh yeah. And keypressed is clientside only, isn't it? So this'd have to be clientside...if that command works on nonNPCServers at all, and I'm not convinced it does...
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
Reply


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 11:05 AM.


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