• 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.

Need help with game cache

Status
Not open for further replies.
Level 8
Joined
Jul 22, 2008
Messages
331
can anyone give me trigers how to store
hero, item in his invertory, quest, current gold and lumber. i'm giving credz...

I'm making campaign and opened demo campaign in WE.
From there copied trigers related on storing hero in game cache. It works.
Now:
  1. ... to store Hero?
  2. ... to store item in his invertory?
  3. ... to store Quest in Quest log?
  4. ... to store current gold and lumber?
Note: U can help with 1st question so i don't have to open demo ampaign again
and copy/paste trigers. (I deleted them:cry:)
Thanks in advance...
 
Last edited by a moderator:
  • Angry
Reactions: Rui
for the first one you need a variable(unit group-array[your # of heroes]) then make a trigger that does this(note this is off the top of my head so i dont think its percise but you should get the idea)-
set-hero group[1]= your hero
set-hero group[2]= your hero
set-hero group[3]= your hero
set-hero group[4]= your hero
and so on untill all your units have been stored
 
Level 7
Joined
Nov 13, 2006
Messages
243
store every unit you want to be sent to the next mission in a variable (as shown above) and the use game cache

  • Events
  • Conditions
  • Actions
    • Game Cache - Create a game cache from YourMapName.w3v
    • Game Cache - Store UNIT as LABEL of CATEGORY in (Last created game cache)

for lumber and gold you need to store a real variable and for items in inventory i suggest you check the campaigns made by blizzard... to make it acurate (but i think storing a unit stores items in inventory too)
and then use game cache triggers to reload all back
 
Status
Not open for further replies.
Top