Author Topic: VCE Help.  (Read 1735 times)

Sense i cannot edit..

Using Vce i have figured out:
Brick HP.
Store.

What i'm needing too figure out:
Max HP increased.

Some other things that are gonna come in handy.

Im in the same boat mate. I aint figured nothin out...

What you could do, is have a loop on the player. It checks to see if the players life is less than 100, and stores how much damage the player has taken, then heals the player. You can subtract the damage taken variable from another custom made variable that the player has, newHealth for example, and then you can have another check to see if that newHealth variable is below zero. If it is, kill the player.

You could also instead set the players health to 50, then you can use healing items to have the player heal. Getting a custom playertype with massive amounts of life, and setting the players health to the halfway point gives you extra leeway between healing and damage.

See if you can try to implement this on your own, just post here again if you can't figure it out.

Stole this from Boom:

Code: [Select]
[X] 0 [0] onActivate -> Self -> VCE_stateFunction -> [<var:cl:bl_id>] [ ]
[X] 1 [0] onActivate -> Self -> VCE_callFunction -> [<var:cl:bl_id>] [ ]
[X] 2 [33] onVariableFunction -> Self -> VCE_callFunction -> [<var:cl:bl_id>] [ ]
[X] 4 [0] onActivate -> Player -> VCE_modVariable -> [MaxShield] Set [100]
[X] 3 [0] onActivate -> Player -> VCE_modVariable -> [Shield] Set [<var:pl:maxShield>]
[X] 5 [0] onActivate -> Client -> CenterPrint -> [<color:FFFF00>You have picked up body armor!] [3]
[X] 6 [0] onVariableFunction -> Self -> VCE_ifValue -> [<var:pl:health>] < [<var:pl:maxHealth>] [7 7]
[X] 7 [0] onVariableTrue -> Self -> VCE_ifValue -> [<var:pl:shield>] > [0] [8 9]
[X] 8 [0] onVariableTrue -> Player -> AddHealth -> [1]
[X] 9 [0] onVariableTrue -> Player -> VCE_modVariable -> [Shield] Subtract [1]
[X] 10 [0] onVariableFunction -> Self -> VCE_ifValue -> [<var:pl:shield>] < [0] [11 12]
[X] 11 [0] onVariableTrue -> Player -> VCE_modVariable -> [Shield] Set [0]
[X] 12 [0] onVariableFalse -> Self -> VCE_ifValue -> [<var:pl:shield>] > [<var:pl:maxShield>] [13 13]
[X] 13 [0] onVariableTrue -> Player -> VCE_modVariable -> [Shield] Set [<var:pl:maxShield>]
[X] 14 [0] onVariableFunction -> Player -> VCE_modVariable [HP] Set [<color:66FF66><var:pl:health>]
[X] 15 [0] onVariableFunction -> Player -> VCE_modVariable [HP] Ceil [ ]
[X] 16 [0] onVariableFunction -> Player -> VCE_modVariable [SHLD] Set [<color:66FFFF><var:pl:shield>]
[X] 17 [0] onVariableFunction -> Player -> VCE_modVariable [ALL] Set [<var:pl:HP> <color:FFFFFF>/ <var:pl:SHLD>]
[X] 18 [33] onVariableFunction -> Client -> BottomPrint -> [<color:FFFF00>Health<color:FFFFFF>: <var:pl:ALL>] [3]

He's really good a this.

He wrote the manual.

Alright,I messed up the armor last night so i'm gonna try that again.
But now i'm back too a basic:Stores.

I figured it out with variables (V4) Now i gotta do the same with Vce.

What you could do, is have a loop on the player. It checks to see if the players life is less than 100, and stores how much damage the player has taken, then heals the player. You can subtract the damage taken variable from another custom made variable that the player has, newHealth for example, and then you can have another check to see if that newHealth variable is below zero. If it is, kill the player.

You could also instead set the players health to 50, then you can use healing items to have the player heal. Getting a custom playertype with massive amounts of life, and setting the players health to the halfway point gives you extra leeway between healing and damage.

See if you can try to implement this on your own, just post here again if you can't figure it out.
That wil be if boom's code doesn't work.Btw nice mario & luigi superstar saga avatar.

Noedit:I also need too figure out custom hitpoints,So i can make some enemies have more then 100 HP,To atleast about 125 or 165.

But now i'm back too a basic:Stores.
Are you looking to make it a var link(a link in the chat you click) or a chat message(you say a chat message and you click the brick)?

Download the VCE client guide. I dont know were it is but it really helps getting started with VCE


Alright,I messed up the armor last night so i'm gonna try that again.
But now i'm back too a basic:Stores.

I figured it out with variables (V4) Now i gotta do the same with Vce.
I could help tomorrow with a store if u want i know exactly how to do it

Download the VCE client guide. I dont know were it is but it really helps getting started with VCE
It comes with the VCE download and Zack fixed it so it works again.

Noedit:I also need too figure out custom hitpoints,So i can make some enemies have more then 100 HP,To atleast about 125 or 165.

You can do this with additional playertypes, just minor edits. No biggie.

Noedit:I also need too figure out custom hitpoints,So i can make some enemies have more then 100 HP,To atleast about 125 or 165.

What you could do, is have a loop on the player bot. It checks to see if the players bots life is less than 100, and stores how much damage the player bot has taken, then heals the player bot. You can subtract the damage taken variable from another custom made variable that the player bot has, newHealth for example, and then you can have another check to see if that newHealth variable is below zero. If it is, kill the player bot.