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 05-24-2012, 03:53 AM
greggiles greggiles is offline
Registered User
greggiles's Avatar
Join Date: Sep 2007
Posts: 149
greggiles has a spectacular aura about
Setting set values

Quick question forums!

I am triggering an npc from a distance so I increased the value of the x-value.
Problem I'm having, is it only works from the left side because if I were facing left (on the right side of the NPC) the value would have to be negitive.

temp.tnpcs = findareanpcs(temp.x, temp.y, 10, 2);

^
So I want to make this '10' a 10 through -10.

Iv'e tried some different ways but I get errors. Any thoughts?
Reply With Quote
  #2  
Old 05-24-2012, 03:56 AM
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
Offset the x position, and add the amount you offset to your width.

temp.tnpcs = findareanpcs(temp.x - 10, temp.y, 20, 2);
__________________
Quote:
Reply With Quote
  #3  
Old 05-24-2012, 05:31 AM
greggiles greggiles is offline
Registered User
greggiles's Avatar
Join Date: Sep 2007
Posts: 149
greggiles has a spectacular aura about
Thank you fowlplay!!!!
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:52 AM.


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