Aller au contenu

Photo

[help] waypoint scripting?


4 réponses à ce sujet

#1
KigenBarzhad

KigenBarzhad
  • Members
  • 132 messages
Is it possible to create a waypoint for the map via scripting? Do I have to rely on editing the arealis?

Also if anyone knows how to code a merchant to set an item to infinitie, that would really help me out.

#2
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
You can place waypoints and set them to be innactive by default, then activate them using scripting. I don't think you can create them dynamicaly. I can't remember the function name, but filter for map or pin and it should show up.



I don't remember how to make items infinite on a merchant, I'll try and look into it.

#3
KigenBarzhad

KigenBarzhad
  • Members
  • 132 messages
Thank you so much, I'm also trying to figure out how to give an item/money to an existing npc and make it stealable.

#4
KigenBarzhad

KigenBarzhad
  • Members
  • 132 messages
Bleh are these tasks impossible? My programming background is failing me.

#5
Craig Graff

Craig Graff
  • Members
  • 608 messages
While there is no SetItemStealable function, there is an event sent to the area, EVENT_TYPE_STEALING_SUCCESS, which will let you add whatever items you want to the creature doing the stealing, based on whatever conditions you choose (including who is being stolen from, etc.)

If you are creating the creature in the toolset, you can just add the items and money (in the form of coppers) to the inventory and mark them as stealable.

Modifié par Craig Graff, 11 mars 2010 - 09:20 .