Aller au contenu

Photo

How do I set and item in a module to infinite use


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

#1
warpax2176

warpax2176
  • Members
  • 15 messages
How do i set an item Ive made to infinite use? ive found how to set an item as infinite use through editing the saved game, but i cant seem to find how to do it when crating a module.

thanks

Modifié par warpax2176, 16 novembre 2009 - 04:46 .


#2
warpax2176

warpax2176
  • Members
  • 15 messages
anyone have a clue?

#3
DangerousFat

DangerousFat
  • Members
  • 18 messages
Without any experience looking at those files I can only offer you my 2 cents as a programmer. Is there anything anywhere that shows the number of uses? If so, I would say -1 could be a possible override for infinite (it's what I would use), if not... then find out what the variable is... and if it's an int, which I could expect, set it to some asininely high number like: 2147483647, which would be signed int max... which should be enough I think to be essentially infinite. lol

#4
warpax2176

warpax2176
  • Members
  • 15 messages
I still havent been able to figure to how exactly to do when creating an item. However the line to set infinite use is plan as day when messing around in the toolset with a saved game. anyone figure this out for sure yet?

#5
AlphaMagnum

AlphaMagnum
  • Members
  • 66 messages
If you check the scripts, one of them is directed to reduce the "stack size" by one if the ability is from an item.



Afaik, all you would need to do is add an if-then such that this only applies if the item is *not* the one you want to be infinite.