Board Thread:Plants vs. Zombies 2/@comment-26491320-20150702214616/@comment-25066094-20150703121452

Jimmy2004 wrote: That's probably why they need monney to expend the shop and world's also zombie levels endless zones dr zomboss effect's Gargantuar statute map plant effect what they do trophy's Artfact to endless zone power-up's Limited time plant's new gem plant's and premium plant's world icon trap's zombosses robot almanac almanac expansion info of plant house zombosses dome zombosses broken dome coustume's piñata party's teser party's piñata's effect's to zombie's plant's movement zombie's info lawn home lawn mower's map effect's and endless zone area.

No, they don't need money to expend it.

You can just simply add a function, with a "New" slot.

No need to pay, no need to do something hard.

In my game, You just place something like this:

Void AsEntity("NewSlot", ">nameoftheplant<", ">descriptionoftheplant<", ">costs<");

Like that, but that's for one level only, you need to do a lot more for the whole "store" or inventory.

Btw, the first thing "NewSlot" you can call that whatever you want, but you need that name to do something. like this

(if you buy that plant)

Void Buy("whatyoubuyed so NewSlot" ,"Function what happens" Etc etc

And then the fuction it self, like

Void GetIt("Getplant" "snowpeashooter" etc.

Void Takeaway("RealMoney", 4.99)

etc etc.

In my games functions, it works like this.

To make sure, please do NOT try this at pvz2, since every game engin has diffirent scripts. Btw, mine is 3d horror so it won't even make sense :D