• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

random stats for items

Status
Not open for further replies.
Level 5
Joined
Jan 13, 2008
Messages
96
Hello! I wish to make a map where items can have random stats like: example: Stormcall Belt (My Item) to give random number stats from 1 to all stats to 20 to all stats (for every 1 to all stats to be different skill like +1to all stats is an items skill, +2 to all stats to be another item skill, +3 to all stats to be another item skill etc...), another skill to give damage like random between 1 - 50 same as first one. As i know 1 item can have maximum 4 skills. So I want my item to have random item skills like i said... Is this possible?? Final item to be like this: Stormcall with: 15 to all stats, 20 damage, 1500 hp, 1200 mana. But the same item ,,Stormcall,, can have by triggers: 20 to all stats, 13 damage, 1800 hp, 500 mana...
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
It's possible, but it isn't possible to have the item's tooltip show these values.

As for the values themselves, you need a system to link each item type to a set of abilities using either an array or a hashtable. Add those abilities and set their levels when the item is acquired, and remove them again when the item is lost.

You'll need another array/hashtable to keep track of each individual item's stats.
 

Deleted member 242951

D

Deleted member 242951

Uh... U can use this trigger :-

  • Events :-
  • A unit uses an item
  • Conditions :-
  • Item being used equal to *your item*
  • Actions -
  • If all conditions are true then do then actions else do else actions
  • -If Conditions
    • random real number between 1.00 and 100.00 less than or equal to 25
  • -Then actions :-
    • *ur actions here*

this will give you 25% chances of doing something.
And about the random stats you should contact a active spell maker they know a lot about these stuff.
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
If you want a system that displays the tooltips like this
129906d1381532624-full-screen-inventory-system-2.png
than it's beyond the scope of your ability.

Otherwise, you can use hashtables along with this
 
Status
Not open for further replies.
Top