| 09-17-2002, 07:03 PM | #16 |
heh I think bag and stat attribution demo was enough description. But I guess I was wrong. Oh Dataangel want to make this a bit more user usable? Or have suggestion how to do make it more user freindly? As right now unless your me or have a strong understanding of programing this probably is as confusing as looking at french. |
| 09-17-2002, 07:40 PM | #17 |
Hey weaaddar. I just stored my backpack in the backpack! lol! Put an item on slot 1. Put the backpack on slot 2. Store slot 2. Then the backpack was gone and I had no access to my stored items left. Sad day! :p You could periodically check the items and their slots to prevent that. |
| 09-17-2002, 07:52 PM | #18 |
Okay I think I isolated the problem with that one. I tell it to create a bag first then store the item, if you have something in slot 1 you'll be able to put a bag in there. I may release an update to fix it, or just tell you how to fix it. Okay its in reponse under the subsection Response 2 more intense. find this peice of code Code:
if ( GetClickedButtonBJ() == udg_db[Index2(bj_forLoopBIndex,bj_forLoopAIndex)] and udg_VS[Index2(bj_forLoopBIndex,bj_forLoopAIndex)] == null ) then
call UnitAddItemById( bj_ghoul[bj_forLoopAIndex], 'pspd' )
set udg_VS[Index2(bj_forLoopBIndex,bj_forLoopAIndex)] = UnitItemInSlotBJ(bj_ghoul[bj_forLoopAIndex], (bj_forLoopBIndex - 2))
call UnitRemoveItemFromSlotSwapped( (bj_forLoopBIndex - 2), bj_ghoul[GetForLoopIndexA()] )
call SetItemPositionLoc( udg_VS[Index2(bj_forLoopBIndex,bj_forLoopAIndex)], GetRectCenter(gg_rct_debugregion) )
return
endifCode:
if ( GetClickedButtonBJ() == udg_db[Index2(bj_forLoopBIndex,bj_forLoopAIndex)] and udg_VS[Index2(bj_forLoopBIndex,bj_forLoopAIndex)] == null ) then
set udg_VS[Index2(bj_forLoopBIndex,bj_forLoopAIndex)] = UnitItemInSlotBJ(bj_ghoul[bj_forLoopAIndex], (bj_forLoopBIndex - 2))
call UnitRemoveItemFromSlotSwapped( (bj_forLoopBIndex - 2), bj_ghoul[GetForLoopIndexA()] )
call SetItemPositionLoc( udg_VS[Index2(bj_forLoopBIndex,bj_forLoopAIndex)], GetRectCenter(gg_rct_debugregion) )
call UnitAddItemById( bj_ghoul[bj_forLoopAIndex], 'pspd' )
return
endif |
| 09-17-2002, 08:04 PM | #19 |
Works so far. But if I restore Item 2 and all item slots are full, I won't get my item back. It's just lost. |
| 09-17-2002, 08:29 PM | #20 |
Intresting it ussually apears at your feet becareful if your next to my invisible border (unshaded boundries) IT MIGHT DISAPEAR I only was able to pull this off once. And pretty much its your fualt for restoring when you have a full inventory! I think its readable to some degree. I understand what its doing, barely...I only moved to using variables like bj_ghoul becuase that decreased the chance of error in variable naming. I think the most impressive peice of code is in Response under the subsection Response 2 but I could be wrong. As before I cleaned it up it used to use 12 variable array (EWW) and was 10 different if then statements. THANKFULLY I was able to cut it down and reduce the legibility absurdly to 2 pairs of If then elses and down to 2 variables. |
| 09-17-2002, 11:34 PM | #21 |
Who stickied this!? |
| 09-19-2002, 08:17 PM | #22 |
Guest | Weaddaar i was wonderin if u could help me out with the basics of triggers.U seem to know a lot about them. I would really appreciate it if u could send me the coding or tutorials on how to do it into my email. [email protected] is my email. Thank u for ur time!!!!!!!!! Unreal_Cruelty |
| 09-20-2002, 01:49 AM | #23 |
try doms guide. I didn't use it but aparently it is good. And Ofcourse mentioning it ussually prompts him to apear with a link...Also Blizzard.j and Common.j make excellent tools for learning jass. The best tip of Jass learning is Create a trigger in the GUI then convert it to JASS compare the two of them. If it looks like GREEK to you hit Ctrl-Z and never ever mention this to anyone... We won't think any lesser of you many cowar...people don't use JASS its just so intimidating.. |
| 09-22-2002, 09:01 PM | #24 |
Eeps I forgot to mention something this uses a region called debugregion I'm sorry I didn't even remember it but to use this you must create a region called debugregion.. |
| 09-23-2002, 07:23 PM | #25 |
dis be awesome... I'm working on a MOD based on DnD (wanna make it look/feel like the baldur's gate series as much as possible, but will be set in the oriental world of Rokugan instead of Forgotten Realms.) I'll be sure to use this. :) Think you could also make a random base-stat generator? Like, a dialog button pops up, prompting you to click it to choose your beggining stats (when/after chosing your hero or whatever), it gives you 3 starting stats, like 3d6 for each stat, if you dont like em, you can re-roll them etc...? That would be = very kthx |
| 09-23-2002, 09:25 PM | #26 |
Honestly the dialogs wouldn't be the hard part I've never played DnD so I wouldn't know how to do this dice rolling thingy... |
| 09-24-2002, 12:36 AM | #27 |
Guest | Dice rolling is actually implemented rather explicitly in Warcraft 3, in a psuedo-sense, for damage calculations. You'd have to use the psuedo-random numbers computers can generate either way. |
| 09-25-2002, 11:31 PM | #28 |
Actually, making a dialog for stats is really simple. I'm using it in a map for leveling up. A dialog pops up and you pick what stats you want. I think strength is better than all of the stats though so i use +2 for agility and intelligence. |
| 09-26-2002, 02:50 AM | #29 |
well I make it simpiler :) As I actually don't have the effect and my code is as obscenely clean as possible. I also keep a record of your str and such ofcourse don't actually expect to call these numbers except in custom text.. And it works MP... Edit: I even got the fun old and very creepy click the cross and bring up the stat menu thing. Your method may work, but if it pops up after you level up its not a great idea as you have no time to get your hero to safety if he leveled up and was getting assraped by 50 guys. |
| 09-29-2002, 09:51 PM | #30 | |
Guest | Quote:
Hi weaaddar, Showing my green side here, but what are "Blizzard.j and Common.j "? Files? Websites? I've got some experience with VB, so I'm ready to take the jass plunge. Could you provide links to your favorite sites, files, tutorials, etc? Thanks man! |
