Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-01-2008, 04:13 PM
Benwick Benwick is offline
Registered User
Join Date: Oct 2008
Posts: 1
Benwick is on a distinguished road
Troubles with Default Weapons

So, i'm fairly new here, still fiddling with GScript and learning it, mostly through small scripts at the moment.

Right now on my dev server I just want to try things out using the default sword, arrow, bombs etc.

My troubles are with NPCs/Baddies. Obviously the generic baddies from the Editor are deprecated and useless, so I've managed to work around that and create my own (very simple) baddy for random mobs, while I use Gambet's GBaddy (This thing kick's my arse...over...and over...even after i've tweaked him lol) for a boss.

My problem is that using the default weapons, sword mostly (Gbaddy cannot be harmed by anything else right now). I do not hurt them at all, any NPCs I have, my sword goes right through them and does not injure them. I thought Perhaps it was something with the Function OnWasH.it (Minus the .) - I used the default code from GBaddy for this function but it still didn't let me hit him, I even tweaked the line if (this.health[0]-(player.swordpower/2) > 0) to read if (this.health[0) > 0) so it should force the NPC to get hurt without doing any sword checks. But I still do not damage to an NPC.

Perhaps it's something with the default weapons as I have no weapons scripted? Any advice would be great Thanks
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 02:36 AM.


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