• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to customize

Status
Not open for further replies.
Level 4
Joined
Jan 3, 2012
Messages
60
Hey guys!

I want to make some scrolls that give an advice, but i dont want the same scroll to give the same advice every game. So is there any way to costomize it?

I have an other problem too. I've maded an item combiner so when you put the right things into it, it will make a new item. Like the scrolls i want the materials to be different each game. Also the materials needs to be written in a scrol you can buy. So i need to have the materials and the scrolls customized, but then agian, the scrolls and the materials have to match so you dont buy a scroll saying you need something and then you actually need something completely different.
 
1) You can use something like this:
  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Custom script: set udg_S_Hash = InitHashtable()
      • -------- ------- --------
      • Set ItemType = Book of the Legionnaire
      • Custom script: call SaveStr (udg_S_Hash, udg_ItemType, 0, "This book was originally written by Leonad the Great.")
      • -------- ------- --------
      • Set ItemType = Book of the Destruction
      • Custom script: call SaveStr (udg_S_Hash, udg_ItemType, 0, "This book holds the secrets to the most destructive magic of the ancient kingdoms.")
      • -------- ------- --------
      • Set ItemType = Book of the Damned
      • Custom script: call SaveStr (udg_S_Hash, udg_ItemType, 0, "The cursed villagers of Enushai'ar have gathered their suffer within these pages.")
  • Script
    • Events
      • Unit - A unit Uses an item
    • Conditions
    • Actions
      • Set ItemType = (Item-type of (Item being manipulated))
      • Custom script: if HaveSavedString (udg_S_Hash, udg_ItemType, 0) then
      • Custom script: set udg_LoadScript = LoadStr (udg_S_Hash, udg_ItemType, 0)
      • Custom script: call DisplayTimedTextToPlayer (GetTriggerPlayer(), 0, 0, 5, udg_LoadScript)
      • Custom script: endif
View attachment t1.w3x

2) Not sure what you mean.
 
Level 4
Joined
Jan 3, 2012
Messages
60
1) Okay what i mean is: if you buy a scroll that says "Hey" it will maybe say "Hi" the next game... So the same scroll will not say the same thing each game.

2) If i for example maded 2 scrolls and the first one said:" You need a Bloodstone to upgrade this item" and the second one said:" You need a Goldbar to upgrade this item". Now i want the scrolls to customize. So you dont know what you need to upgrade before you have bought the scroll. For example if i want to upgrade my sword i need to know if i need a Goldbar or a Bloodstone...
 
Status
Not open for further replies.
Top