A Warhammer 40k MOBA by Grasshopper72
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Log in

I forgot my password

Current Version: v0.0.01A

Alpha version


Changelogs to come



Poll

Changes to the way I release versions? (read the thread)

New Item Buying System I_vote_lcap63%New Item Buying System I_vote_rcap 63% [ 5 ]
New Item Buying System I_vote_lcap38%New Item Buying System I_vote_rcap 38% [ 3 ]

Total Votes : 8

Latest topics
» With everyone dead
New Item Buying System I_icon_minitimeThu Mar 05, 2020 5:09 am by Occuli.Imperator.Aquillon

» Faction creeps
New Item Buying System I_icon_minitimeSun Dec 21, 2014 12:49 am by Grass Hopper

» [SCII] [Inquisition] Hector Rex
New Item Buying System I_icon_minitimeThu Dec 18, 2014 9:06 am by Grass Hopper

» [necrons] Orikan, the Diviner
New Item Buying System I_icon_minitimeTue Dec 16, 2014 5:58 pm by Grass Hopper

» Talent System
New Item Buying System I_icon_minitimeMon Dec 15, 2014 10:59 am by Grass Hopper

» Capture Points system
New Item Buying System I_icon_minitimeFri Dec 12, 2014 2:36 pm by Grass Hopper

» [SCII] [Orks] Warboss(es)
New Item Buying System I_icon_minitimeFri Dec 12, 2014 11:44 am by Grass Hopper

» Game Guide
New Item Buying System I_icon_minitimeThu Dec 11, 2014 2:12 pm by Grass Hopper

» [Inquisition] Mordrak
New Item Buying System I_icon_minitimeWed Dec 10, 2014 3:28 pm by Grass Hopper

» [inquiition] Kaldor Draigo
New Item Buying System I_icon_minitimeWed Dec 10, 2014 3:07 pm by Grass Hopper

Version Progress
Changes for v0.02.0A
||||||||||||||||||||[] [general]
||||||||||||||||||||[] [Heroes]
||||||||||||||||||||[] [Items]
||||||||||||||||||||[] [Bugs]
||||||||||||||||||||[] [Total]

New Item Buying System

2 posters

Go down

New Item Buying System Empty New Item Buying System

Post by DarkWanderer Wed Sep 02, 2009 2:22 pm

.


Last edited by DarkWanderer on Mon Sep 14, 2009 8:27 pm; edited 7 times in total

DarkWanderer
Contributor
Contributor

Posts : 122
Join date : 2009-07-19

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by Grass Hopper Wed Sep 02, 2009 4:43 pm

kk, added globals. and tis teh first 4 letters of the items name right?
Grass Hopper
Grass Hopper
Admin

Posts : 3839
Join date : 2009-03-30

https://40kaos.forumotion.com

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by DarkWanderer Wed Sep 02, 2009 7:42 pm

Not for everything. Some items have the same first 4 letters and Wc3 can't detect spaces in strings; you have to run a loop to check that it does not = all 26 letters. I just used elseifs for whatever doesn't. It's in the buy event script above.



-edit We'll also need the global "button array udg_BuyAll"

DarkWanderer
Contributor
Contributor

Posts : 122
Join date : 2009-07-19

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by Grass Hopper Wed Sep 02, 2009 10:32 pm

kk, added the global. and kk
Grass Hopper
Grass Hopper
Admin

Posts : 3839
Join date : 2009-03-30

https://40kaos.forumotion.com

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by DarkWanderer Thu Sep 03, 2009 7:08 pm

Ok, It's finally ready for testing. Now I just need the raw unit type id of the carrier squigs from you.

DarkWanderer
Contributor
Contributor

Posts : 122
Join date : 2009-07-19

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by Grass Hopper Thu Sep 03, 2009 10:29 pm

right, need to add that in still XD just a summon spell that summons a unit with an inventory right?
Grass Hopper
Grass Hopper
Admin

Posts : 3839
Join date : 2009-03-30

https://40kaos.forumotion.com

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by DarkWanderer Sat Sep 05, 2009 5:50 pm

Ok, I've corrected a lot of the bugs that showed up and updated the code in the op post.

Some items were being skipped because it was increasing digit 4 by 1 right after I set it to A or 0 thus skipping right over them.
Btw, the power weapon recipe name needs to be changed from "Power Weapon Recipie" to "Power Weapon Recipe". ( Found that because it didn't end in A or O lol.)

I fixed some other minor issues too with text messages showing when they shouldn't.

Overall, I think the system working and ready to go into the release version of the map. Although, we should definitely still do more playtesting with it to be sure.

I'll continue to improve and update the system as I get time.

Also, don't forget to add your additions again.
O, can you give me the store rect name for each team and the squig unit type id; so, I can put them into the system?

-edit Almost forgot, we need a new string array, "udg_ChatString"

DarkWanderer
Contributor
Contributor

Posts : 122
Join date : 2009-07-19

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by Grass Hopper Sat Sep 05, 2009 7:18 pm

its udg_PlayerCourier[pid] btw for the squig.

and why does the recipe need to be changed?

and how about i post my version of the system, so u can add in my changes, so i dont have to change it *every* time u update Razz
Grass Hopper
Grass Hopper
Admin

Posts : 3839
Join date : 2009-03-30

https://40kaos.forumotion.com

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by DarkWanderer Sat Sep 05, 2009 7:34 pm

Good idea, I'll add in the squig and rect changes.

Also, FYI, the "GetUnitWithinRange" native stops giving compile errors if you save the map, exit editor, and save again.

DarkWanderer
Contributor
Contributor

Posts : 122
Join date : 2009-07-19

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by Grass Hopper Sat Sep 05, 2009 7:37 pm

it wouldnt let me save thats the thing

and its gg_rct_Spawn1(humans) and Spawn2 (orks)
Grass Hopper
Grass Hopper
Admin

Posts : 3839
Join date : 2009-03-30

https://40kaos.forumotion.com

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by Grass Hopper Sat Sep 05, 2009 10:23 pm

i did this

Code:
    //if triggering player is in team 1 but not within 600 range team 1's shops
    if pid < 6 and IsUnitInRangeXY(udg_PlayerHero[pid], GetRectCenterX(gg_rct_Revive1), GetRectCenterY(gg_rct_Revive1), 800) == false and IsUnitInRangeXY(udg_PlayerCourier[pid], GetRectCenterX(gg_rct_Revive1), GetRectCenterY(gg_rct_Revive1), 800) == false then
        call DisplayTextToPlayer(p,0,0,"You can't buy anything if you're not at the shops")
        set cs =""
        set p = null
        return
    //if triggering player is in team 2 but not within 600 range of team 2's shops
    elseif pid > 6 and IsUnitInRangeXY(udg_PlayerHero[pid], GetRectCenterX(gg_rct_Revive2), GetRectCenterY(gg_rct_Revive2), 800) == false and IsUnitInRangeXY(udg_PlayerCourier[pid], GetRectCenterX(gg_rct_Revive2), GetRectCenterY(gg_rct_Revive2), 800) == false then
        call DisplayTextToPlayer(p,0,0,"You can't buy anything if you're not at the shops")
        set cs =""
        set p = null
        return
    endif
Grass Hopper
Grass Hopper
Admin

Posts : 3839
Join date : 2009-03-30

https://40kaos.forumotion.com

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by Grass Hopper Sun Sep 06, 2009 10:16 am

inlcuded bio-regeneration, and bio-mechanical limb
Code:

    // Bio-Mechanical limb
    elseif cs == "-b bmec" then
        set udg_BoughtItem[pid] = CreateItem('I01X',0,0)
    // Bio-Regeneration
    elseif cs == "-b breg" then
        set udg_BoughtItem[pid] = CreateItem('I029',0,0)
    // Mark of Chaos Undevided
    elseif cs == "-b mocu" then
        set udg_BoughtItem[pid] = CreateItem('I020',0,0)
    // Mark of Khorne
    elseif cs == "-b mok" then
        set udg_BoughtItem[pid] = CreateItem('I037',0,0)
    // Mark of Nurgle
    elseif cs == "-b mon" then
        set udg_BoughtItem[pid] = CreateItem('I035',0,0)
    // Mark of Slaanesh
    elseif cs == "-b mos" then
        set udg_BoughtItem[pid] = CreateItem('I033',0,0)
    // Mark of Tzeench
    elseif cs == "-b mot" then
        set udg_BoughtItem[pid] = CreateItem('I031',0,0)
Grass Hopper
Grass Hopper
Admin

Posts : 3839
Join date : 2009-03-30

https://40kaos.forumotion.com

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by DarkWanderer Sun Sep 06, 2009 10:28 am

I've updated op with the new code; try it out and see what you think.

I think the hotkeys are a major improvement.

DarkWanderer
Contributor
Contributor

Posts : 122
Join date : 2009-07-19

Back to top Go down

New Item Buying System Empty Re: New Item Buying System

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum