[Trigger] Some important questions

Status
Not open for further replies.
Level 2
Joined
Oct 17, 2010
Messages
12
Hi, i m trying to create a major RPG like Durotar of WC3. Yet i got some problems ><

Firstly, how do u clean items from map. U know, after some monster killing, items are everywhere and if u dont pick them up, they r gonna flood the map. So how do u clear the items?

Secondly, how do u store Game Constants in a hashtable/game cache?

Thirdly, my maps are connected like Durotar's Act 1. This means when u finish a quest or the whole map, and u head off to the next map, but u want to return to the previous map u just finished. How do u ensure that everything u done on the previous map is saved?

Thats all my questions. Please help me as these 3 issues are the main problems i m trying to solve now.
 
Level 9
Joined
Dec 17, 2008
Messages
312
Firstly, how do u clean items from map. U know, after some monster killing, items are everywhere and if u dont pick them up, they r gonna flood the map. So how do u clear the items?

There should be a function to remove all the items from the map (via group selection, under the Items section of functions). Just use "select all items on playable map area" or something of this sort, and then "remove picked item." That's the basic way to do it.

Secondly, how do u store Game Constants in a hashtable/game cache?

Not sure here.

Thirdly, my maps are connected like Durotar's Act 1. This means when u finish a quest or the whole map, and u head off to the next map, but u want to return to the previous map u just finished. How do u ensure that everything u done on the previous map is saved?

Your map is a campaign with multiple linked maps? I'm not quite sure what to do here (storing the entire map setting and what not), only know that you can store hero values.
 
Level 17
Joined
Apr 3, 2010
Messages
1,101
For saving everything which is done in a previous map. You could set for every Quest a Bollean or an Integer variable which return 1/True if its completed and you set it to 0/Fals if its uncompleted. Then you can save Lots of 1's and 0's in a game cache. each reffering to a trigger. which if its true creates the effects for each quest ending if there are any changes. I do not know how to implement this system though as i dont know game cache. I suggest you check
http://world-editor-tutorials.thehelper.net or something, because they have a nice save load system turtorial there. There also might be one on hive but im not sure.
Basically all you want to do in theory is save a True or False integer contstants which set if a quest is comeplete or not. You can save the items and heros via Cache
 
Status
Not open for further replies.
Top