• 🏆 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!

[Trigger] Crystal System Help Please

Status
Not open for further replies.
Level 6
Joined
Aug 19, 2007
Messages
109
Hello all! I have been working alongside a few others on this new RPG (So far called 'Hells Gate RPG' and have encountered a problem with our 'Crystal System'. Basically you are allowed to add crystals to a Multiboard which is set up at the start of the game.

There are six players altogether(Thats the array-6 for each variable).

Well, everything works EXCEPT the Remove Crystal trigger.
-When the hero clicks remove crystal ability. The Multiboard removes the name of the item-BUT the item does not get created in the hero's inventory.
-I know the problem lies within my Hashtable-I just do not know what.

Please, Please help me! Would appreciate very much! :grin:

For the entire system here is the Map:
 

Attachments

  • Crystal Triggers.w3x
    26.5 KB · Views: 75
Level 37
Joined
Mar 6, 2006
Messages
9,240
As you use the item, it ceases to exist, and you can't save the handle of it.

I took a different approach. Save item types to an array, and save the integer that tells what item type the used item is. Then create an item of that type in the other trigger, based on the integer.
 

Attachments

  • Crystal Triggers.w3x
    26.8 KB · Views: 73
Level 6
Joined
Aug 19, 2007
Messages
109
Thanks Maker: Hmm, saving items types to a Variable array eh? Yes although it would work I ruled it out because there are so many items in the map that i would have to record down 100 or so items in that array-which I would find tiring...Moreover I would have to keep refering to that record to look for which item-type I set as a certain number.

E.g. Oh dear...what was Strength Stone again? (Looks through the whole list of 100s of item-types in variables)-Takes ages XD. Ah there found it!

Perhaps if you could please tell me a way of using hashtables but...maybe something like saving the item-type as a string value which records the raw data name of the item. - Or maybe another way not as time consuming and tiring as this xD.

I appreciate the help though! Yes our way would work i admit ^^.:grin:

Still looking for a viable method though :confused:
 
Status
Not open for further replies.
Top