HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Cacheing to keep track of items, starting location and dead bosses?

12-12-2004, 07:56 PM#1
Sardius
Are these cracheing tirggers complicated???

Keeping track of items that have been aqquired so when you leave a map and return to it, items you've picked up wont be there?

Changeing up starting locations so if you leave the map out the north exit, when you return to it you'll start on the northern side?

Keeping track of a dead boss?
12-13-2004, 02:15 PM#2
AIAndy
Not really complicated, since it is just a matter of storing the info with the game cache actions that allow you to store variables and then later retrieving them and applying them.
But it can be a lot of work depending on how much info you want to store. Storing if a boss is dead would be a simple boolean info that you store. But if you have 100 items and for each you want to keep if it is picked up, that would require a lot of actions unless you come up with a clever pattern.
It can also help to save the map in a savegame before the next map is started if you want to return like Blizzard does in the Orc campaign in TFT. That automatically keeps a lot of info without having to use gamecache.
12-13-2004, 08:09 PM#3
Sardius
I don't have many items on each of my maps, usually like 10 in my smaller action-rpg style maps...

I looked at the TFT Orc campaign maps, but I couldn't make heads or tales out of it. Those orc maps are extremely complex in terms of triggers and cacheing but those maps are also a hell of a lot more complex then the ones Im trying to do.

Can anyone do some less complex example triggers then so I have something easier to base my triggers off of?

1.) Say I pick up a ring of protection +2, and leave the map, when I return back to the map I don't want the ring of protection +2 to still be there.

2.) Say I have two entrances in my map, the south side entrance (where you originally start) and the northside entrance... And say when you leave through the north and you return back to the map, I want it so you'll come out of the northern entrance.

3.) Say I killed a boss and I don't want the boss to be there anymore when I return to the map, how can I ensure the boss remains dead?