| 02-13-2005, 11:38 AM | #1 |
Could anyone tell me where i can find those action? 1-game cache-load interger-->In action store interger it's say use this action to load interger but i cant find it 2-game cache-load real-->In action store real it's say use this action to load real but i cant find it 3-game cache-load string-->In action store string it's say use this action to load string but i cant find it -I search alot but cant find those action,i even try WEU but still cant find >_< plz help me ![]() |
| 02-13-2005, 03:00 PM | #2 |
Guest | There isn't at specific action but you don't need either. If you want to load a string into a text message you could do like this: 1. Find the 'Game - TextMessage(Autotimed action)' 2. Click the on 'Text' 3. Now don't choose Concatenate Strings scroll down until you find 'Game Cache - Load String Value' That should be it. Now it should be easy for you finding the others. |
| 02-14-2005, 09:00 AM | #3 |
load integer can be accessed whenever you set an integer variable. load real can be done with that too. and string also. example for load integer is when you want to set a player's gold. found it there? |
| 02-15-2005, 12:10 AM | #4 |
Thank alot guy but now i got another problem plz help me again: I try a save&load hero by trigger so when player type +save then do those actions: -Set password001[player number of triggering player]=randomstring[random number 1 and 10] -Set password002[player number of triggering player]=randomstring[random number 1 and 10] -Set password003[player number of triggering player]=randomstring[random number 1 and 10] -Set fullpass[player number of triggering player]=password001[player number of triggering player]+password002[player number of triggering player]+password003[player number of triggering player]. -Set X_hero001[player number of triggering player]=X position of hero001[player number of triggering player] -Set Y_hero001[player number of triggering player]=Y position of hero001[player number of triggering player] -Set Havesavefile[player number o triggering player]=true -Game cache-create game cache from SLT.w3v -Set gamecache001[player number of triggering player]=lastcreated game cache -Store hero001[player number of triggering player] as Hero in Hero from gamecache[player number of triggering player] -Store fullpass[player number of triggering player] as fullpass in String from gamecache001[player number of triggering player]. -Store havesavefile[player number of triggering player] as havesavefile in Boolean from gamecache001[player number of triggering player] -Store X_heroo001[player number of triggering player] as X-heroposition in Real from gamecache001[player number of triggering player] -Store Y_heroo001[player number of triggering player] as Y-heroposition in Real from gamecache001[player number of triggering player] -Save gamecache001[player number of triggering unit] ///Load hero trigger\\\ Event:Player enter +load as a substring Condition: Action: If then else do multiactions -all condition equal to true +enter chat string equal to +load+fullpass[player number of triggering unit] +havesavefile equal to true -Loop action: +Load all gamecache from disk. +Set X_hero001[player number of triggering unit]=game cache-load X-heroposition in Real from gamecache001[player number of triggering player] +Set Y_hero001[player number of triggering unit]=game cache-load Y-heroposition in Real from gamecache001[player number of triggering player] +Restore Hero from Hero in gamecache001[player number of triggering unit] for owner of triggering player at X_hero001[player number of triggering player],Y_hero001[player number of triggering player] +Set hero001[player number owner of last restored unit]=last restored unit +Set havesavefile=false. I can restore unit after at his position before saved but when i restart i cant load my hero T_T |
| 02-15-2005, 08:24 AM | #5 |
Guest | Things stored in the gamecache in a multiplayer game will be removed when you leave. So it is not possible if you are making a multiplayer map. Then you have to use Save/Load codes. There is a lot of them on wc3sear.ch |
