Aller au contenu

Photo

usable items


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
DukeVega

DukeVega
  • Members
  • 205 messages

So i just started playing around making some custom items..like Beer and Smokes and Stimpacks etc

As i havnt really played around with this side of the toolset yet i was in wonder as to why you dont attack scripts to these things

Seems like they just cast a spell

 

ermmm really?

 

 

 

Godam it nwn2 toolset the shame

 

 

 

What wize words can you all share upon this matter?



#2
DukeVega

DukeVega
  • Members
  • 205 messages

like lets say i want a bottle of whiskey that when you drink it

 

it makes you stronger, dumber and slower

 

 

 

or i want cigarettes that when you use them, it creates *blows out smoke* or *inhales smoke* etc...

 

 

i dont really get it lol



#3
PJ156

PJ156
  • Members
  • 2 985 messages

You can have the item in the inventory with an on used script there or in the game. 

 

Your beer bottle would be on the bar and usable. On used you attach a script that temp removes the stats you want gone and adds them later. I am pretty sure Lilac souls will do that for you and that is ported to the new vault if you don't have it.

 

PJ



#4
Dann-J

Dann-J
  • Members
  • 3 161 messages

Yes, most usable items ultimately cast a spell. There are a host of item property 2DAs that intermediate between the item itself and the spell scripts in spells.2DA. They can be tricky to understand and manipulate, but once you get the gist of them they allow you to create entirely new item properties.

 

I created a bunch of new alcohol types with different effects by hijacking the standard alchohol drinking script, and having it search the item for a local variable. Piggy-backing off the standard scripts is generally easier than creating entirely new item properties.

 

If you don't like the thought of editing 2DAs, then you can also use tag-based scripting to have items run your own set of scripts. There's bound to be a tutorial somewhere about tag-based scripting, but I'll be damned if I can find one.



#5
Morbane

Morbane
  • Members
  • 1 883 messages

lilacsoul's script generator has a built-in tutorial on tag-based scripting!


  • DukeVega aime ceci