wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Hosted Projects > Personal User Projects > Vexorian Spells and Systems
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 09-07-2006, 07:51 PM   #1
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Exclamation InvX 2.0 preview

I decided to post it, mostly because that would let people that uses InvX in their maps update to this pre version so they can update the caster system to CSCache 13.8. Documentation is for 1.8 . It has some features, like no longer depending on Attachable Sets, many stuff no longer cancels orders/ channeling spells and the charge stacking system has been improved (you can pick stackable items up with a full inventory, without the requirement of having multiple versions of the same item)

Notice that many to do things are missing and that this is not an official version.

[Updated]
Attached Files
File Type: w3x invx2 alpha2.w3x (224.7 KB, 1051 views)
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 09-10-2006, 02:10 AM   #2
buttoxide
User
 
buttoxide's Avatar
 
Join Date: Feb 2006
Posts: 31

buttoxide has little to show at this moment (4)

Default

Is there a possibility that a potion will autostack with each other upon acquiring?

EDIT: I mean will this feature be in it...
__________________
A convert from the crappy GUI to the awesome JASS.

My only regret in map-making is that I didn't learn JASS earlier.

Last edited by buttoxide : 09-10-2006 at 02:10 AM.
buttoxide is offline   Reply With Quote
Old 09-10-2006, 05:17 AM   #3
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

you mean even if inventory is not full? I dunno, it is simply easy to do so manually, and I hate things that do stuff automatically when you don't really need it.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 09-11-2006, 06:19 PM   #4
ArchWorm
User
 
ArchWorm's Avatar
 
Join Date: May 2006
Posts: 249

ArchWorm is on a distinguished road (14)

Send a message via ICQ to ArchWorm
Default

Oh, right, about the autouses. In game simple Archmage autoequips items, but neither does the loaded Archmage. Is that fixed?
ArchWorm is offline   Reply With Quote
Old 09-14-2006, 11:53 AM   #5
Toadcop
BuranX
 
Toadcop's Avatar
 
Join Date: Jul 2006
Posts: 1,886

Submissions (4)

Toadcop is just really nice (299)Toadcop is just really nice (299)

Approved Map: TcXSpell Making Session 10 Winner

Send a message via ICQ to Toadcop
Default

Vexorian - nice... (not good)
and FAQ is lol =) !!!
Toadcop is offline   Reply With Quote
Old 09-14-2006, 02:16 PM   #6
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Quote:
Oh, right, about the autouses. In game simple Archmage autoequips items, but neither does the loaded Archmage. Is that fixed?

Well that would be weird cause I can't think of any mechanism that would make things behave different for loaded heroes, I am gonna check it out.
Quote:
Vexorian - nice... (not good)
and FAQ is lol =) !!!
What?
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 09-14-2006, 02:26 PM   #7
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

I don't know what happened, I accidentally had an extra not somewhere, this is a patch

Collapse JASS:
function InvX_RestoreUnit takes gamecache g, string mission, string key, player p, real x, real y, real f returns unit
 local unit u=RestoreUnit(g,mission,key,p,x,y,f)
 local integer i=0
 local integer j
 local integer id
 local integer N=6
 local integer cp=GetStoredInteger(g,mission,key+"InvX_Page")
 local integer tp
 local integer sl=GetStoredInteger(g,mission,key+"InvX_TotalSlots")
 local item it
 local string k
 local integer t
 local boolean renb=GetAttachedBoolean(u,"InvX_ForgetAutoEquip")
    loop
        exitwhen i>=N
        call RemoveItem(UnitItemInSlot(u,i))
        set i=i+1
    endloop
    call InvX_EnhanceInventory(u,sl)
    call InvX_RestoreEquipment(g,mission,key,InvX(),u)
    call InvX_Goto(u,0,cp)
    set N=InvX_GetN( u,sl)
    set tp=GetAttachedInt(u,"InvX_TotalPages")
    set j=0    
    call InvX_DisableEvents(u,true)
    call AttachBoolean(u,"InvX_ForgetAutoEquip",true)
    loop
        exitwhen j>=tp
        set i=0
        set t=0
        loop
            exitwhen i>=N
            set k="InvX"+I2S(j)+";"+I2S(i)
            set id=GetStoredInteger(g,mission,key+k)

            if id!=0 and not(InvX_IsItemIdDummy(id)) then
                set t=t+1
                set it=InvX_RestoreItem(g,mission,key+k,0,0)
                call SetItemVisible(it,false)
              //  call SetItemCharges(it,GetStoredInteger(g,mission,key+k+"c"))
                if j==cp then
                    call InvX_SilentAddItemSlot(u,it,i)
                else
                    call AttachObject(u,k,it)
                endif
                call InvX_CheckGet(u,it,false,false,false,false)
                if GetStoredBoolean(g,mission,key+k+";Equiped") then
                    call InvX_Equip(u,it,GetStoredString(g,mission,key+k+";EquipSlot"),false,false)
                endif
            endif
            set i=i+1
        endloop
        call InvX_SetPageCount(u,j,t)
        set j=j+1
    endloop
    call InvX_DisableEvents(u,false)
    if not(renb) then
        call AttachBoolean(u,"InvX_ForgetAutoEquip",false)
    endif
    set bj_lastCreatedUnit=u

 set u=null
 return u
endfunction
Vexorian is offline   Reply With Quote
Old 09-14-2006, 02:32 PM   #8
ArchWorm
User
 
ArchWorm's Avatar
 
Join Date: May 2006
Posts: 249

ArchWorm is on a distinguished road (14)

Send a message via ICQ to ArchWorm
Default

Nice. Now, everything works.

Don't bother yourself with Toadcop's posts. I know him, sometimes he's just an ugly critic =|.

What I want to see in your InvX is destacking feature. Fx, you have 3 healing wards in your inventory and you want to sell only one. That'd be very helpful
____________
I didn't understand, why you vere using local N=6 instead of bj_MAX_INVENTORY. I thought the second one is faster. Isn't it?

Last edited by ArchWorm : 09-14-2006 at 02:36 PM.
ArchWorm is offline   Reply With Quote
Old 09-14-2006, 02:37 PM   #9
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

well if you have an empty slot you can destack by dropping an stacked item to another slot, only one charge is going to go there.

I said what? because I once again failed to understand his post nice (not good) I think Toadcop is short (tall)
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 09-14-2006, 02:42 PM   #10
ArchWorm
User
 
ArchWorm's Avatar
 
Join Date: May 2006
Posts: 249

ArchWorm is on a distinguished road (14)

Send a message via ICQ to ArchWorm
Default

How about my question? Locals vs. bj's?
ArchWorm is offline   Reply With Quote
Old 09-14-2006, 02:47 PM   #11
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

that seemed like part of a signature so I skipped it. Well it is probably legacy code, the most optimized would be using 6 in the loop directly, later I actually use local N for a good reason.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 09-14-2006, 02:49 PM   #12
ArchWorm
User
 
ArchWorm's Avatar
 
Join Date: May 2006
Posts: 249

ArchWorm is on a distinguished road (14)

Send a message via ICQ to ArchWorm
Default

Vexorian, maybe you don't have to try to understand. Because at least me, Diod and Toadcop are from RUSSIA so this can be a matter of knowledge of english.
__________________
Nuclear Arbitor: this is ur map so if u don't like what ppl say ignore them and make it any way. they'll laugh in ur face and tell u it still sucks afterwards if they don't like it but they're not making it.
ArchWorm is offline   Reply With Quote
Old 09-14-2006, 02:52 PM   #13
ArchWorm
User
 
ArchWorm's Avatar
 
Join Date: May 2006
Posts: 249

ArchWorm is on a distinguished road (14)

Send a message via ICQ to ArchWorm
Default

Quote:
that seemed like part of a signature so I skipped it
That would be a nice signature!

Tell me about one thing: if number of item abilities becomes higher than 11, what happens next?
__________________
Nuclear Arbitor: this is ur map so if u don't like what ppl say ignore them and make it any way. they'll laugh in ur face and tell u it still sucks afterwards if they don't like it but they're not making it.

Last edited by ArchWorm : 09-14-2006 at 06:17 PM.
ArchWorm is offline   Reply With Quote
Old 09-14-2006, 06:35 PM   #14
HunTer
User
 
Join Date: Dec 2005
Posts: 42

HunTer has little to show at this moment (0)

Send a message via ICQ to HunTer
Default

ArchWorm me too from rus.So can u post something reports in xgm, because i don't understand many things :). ToJlbko Ha xgm 9l u3BecTeH kak p01nTT.
HunTer is offline   Reply With Quote
Old 09-15-2006, 12:00 PM   #15
ArchWorm
User
 
ArchWorm's Avatar
 
Join Date: May 2006
Posts: 249

ArchWorm is on a distinguished road (14)

Send a message via ICQ to ArchWorm
Default

A 9 c uHdekcoM 12612!
__________________
Nuclear Arbitor: this is ur map so if u don't like what ppl say ignore them and make it any way. they'll laugh in ur face and tell u it still sucks afterwards if they don't like it but they're not making it.
ArchWorm is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 04:15 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services