The Sinister Design Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the new Sinister Design forums!

Pages: [1] 2 3 ... 10
 1 
 on: Today at 09:33:35 AM 
Started by CraigStern - Last post by cialisCam
10 mg levitra viagra farmacia dove bologna comprare   Se o in tutte polistena viagra 20 farmaci mezza da internet farmacia cialis pillola 10 lazio danmark impotenza mentale billig i brescia durata e emorroidi paypal effetto erettile viagra disfunzione tadalafil prezzo acquistare levitra in farmacia cialis e viagra generici per impotenza uomo cialis 60 gambassi online medicina generici bancoposta mg terme comprare visa postepay compresse   Levitra opinioni
Cialis scadenza rimini

 2 
 on: Yesterday at 05:17:15 PM 
Started by CraigStern - Last post by bugfartboy
Gotcha. I guess my question is, what would you be using it for?
That's a valid question.  A simple system that comes to mind is a weapon repair service that could charge the player variable amount of Aura based on the item's consumedAfter stat, or could perhaps enhance a stat on the weapon (maybe enabling whetstones to boost the weapon's strPlus stat instead of directly modifying the character's stats).

Another, much more complex, system that comes to mind is one that would allow the player to collect herbs and mix concoctions for healing wounds, boosting abilities and resistances, or cure status effects, by modifying the stats on a single item.  It'd effectively be custom potion brewing, themed a bit more in line with the Telepath universe, without requiring a unique item class for each potential combination of effects.

(It would be rather difficult to develop a scripting framework for item stat modification based upon inventory List position that would actually be useful to modders, since any kind of item can be in any position--there would need to be a variety of Actions just relaying the various properties of items at any given inventory position just to let you discern which item to act upon!)
That's true.  Another potential method of accessing an item (that comes to mind) could involve adding a read-only id to each and every item instance that could be used in lieu of characterName,itemIndex to pick an item. Without knowing the intricacies of the engine, this could simplify the issue you mentioned, although it would bring with it a set of new complications.  Passing that item id to the script would require a new action, and the calling script would, at least once, need to go through extra work to determine if that id corresponds to the item or item type it wants. I could also see determining which character/object is actually carrying the item (which could be necessary to actually get/set an item's stats), if an item with that id even exists within the current map or shared inventory, increasing time complexity in a very nasty way (since nested for loops, one for the units on the map and one for the items in each inventory, are an O(n2) operation).

Spoiler
Another alternative method would be adding in support for a vetted scripting language, such as Lua, although I imagine that would require a total overhaul of both the game engine and already existing maps.

TL;DR: I can imagine a couple use cases for being able to more directly manipulate items, but I can definitely understand not wanting to implement it.

 3 
 on: Yesterday at 02:29:18 PM 
Started by CraigStern - Last post by CraigStern
-- worked on character background dialogues some more.

-- fixed a handful of issues regarding the formatting and behavior of pop-up item tooltips, particularly in the reserve supplies screen.

-- fixed a bug that would cause certain weapons to generate with unlimited durability.

 4 
 on: Yesterday at 08:47:36 AM 
Started by CraigStern - Last post by CraigStern
Gotcha. I guess my question is, what would you be using it for? (It would be rather difficult to develop a scripting framework for item stat modification based upon inventory List position that would actually be useful to modders, since any kind of item can be in any position--there would need to be a variety of Actions just relaying the various properties of items at any given inventory position just to let you discern which item to act upon!)

 5 
 on: Yesterday at 08:41:08 AM 
Started by CraigStern - Last post by CraigStern
Ha ha, thanks! :D

 6 
 on: January 18, 2018, 09:16:55 PM 
Started by CraigStern - Last post by Duskling
WOOHOOHOO! Excited! No worries about the project not getting funded - my belief in its success will manifest itself! By March, I might even be able to help in the Kickstarter. Third time's the charm!

 7 
 on: January 18, 2018, 04:12:42 PM 
Started by CraigStern - Last post by CraigStern
-- the reserve supplies screen now supports an unlimited number of pages of items (displaying 48 items max per page).

-- there are now Next and Previous buttons to let you flip between pages of items when there are more than 48 items in your reserve supplies.

 8 
 on: January 18, 2018, 04:00:10 PM 
Started by CraigStern - Last post by bugfartboy
While I was thinking something a bit more general use, you got the gist of it. Something like GetItemStatTo/characterName,itemIndex,statName,targetVariable, which could set the specified variable to the requested stat, and SetItemStat/characterName,itemIndex,statName,operation,modifyingValue which could modify the specified stat in a manner similar to the actions used to set character stats. itemIndex, in these cases, would be the position of an item in a character's inventory, assuming the data structure you're using to store items on characters is numerically indexed (such as an array).

 9 
 on: January 18, 2018, 12:07:12 PM 
Started by CraigStern - Last post by CraigStern
I'm not sure I understand what you're requesting. You want the ability to modify one or more properties of an individual item via scripting? Something like: ModifyEquipped/characterName,slotName,statName,modification ?

 10 
 on: January 18, 2018, 11:43:44 AM 
Started by CraigStern - Last post by bugfartboy
Would the ability to more directly manage inventory via scripting be a possibility?  If you're storing a unit's inventory in memory in an array (or anything else that implements System.Collections.Generic.IList(T)), perhaps actions to get/set values using the inventory to manage, the item's index within that inventory, and the item property you want to access?  (I'm making the very broad assumption that inventory in save files will continue to store the individual stats of every item in that inventory, such as below from the old engine.)
Code: [Select]
<Inv>Practice Sword,Weapon Hand,c:Swordsman::Fencer::Hero::Champion,,,Sword,16,25,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,20,0,10,,Sword Wooden,Flimsy practice sword. Strength -1.||Bandages,triggered,,,,,2,16,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,,Bandages,Restores 12 health.</Inv>

Pages: [1] 2 3 ... 10