Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Variables

10 years ago

Let's say I had a character who attempted to use magic.  I had the variable "MAGXP" which dictated which spells he could use.  But, I wanted the option to use the magic that wasn't at their level yet to be present, so I could deduct health if they clicked that choice, but if they had the appropriate variable amount, they could use it.  So the link essentially could go two different ways.

Is it possible?  If so, how?

Variables

10 years ago

Anyone?

Variables

10 years ago

@Aman

@ISentinelPenguinI

@jamescoker1226

@BerkaZerka

@Sethaniel

@madglee

@JJJ-thebanisher

Variables

10 years ago

Yeah... that would help.

Variables

10 years ago
Let me get this right? Spells have MAGXP requirements. If the player doesn't meet these requirements, he can still use the spells at the cost of health. Am I understanding you correctly.

Variables

10 years ago

Yep. But using them would be unsuccessful and cause them to lose health.

Variables

10 years ago
If the 'spell' is a link that shows up in combat sequences, then you would put something like this in the link script:

IF %MAGXP < (number) THEN %HEALTH := %HEALTH - (number)

Variables

10 years ago

Gotcha.  Thanks.

Variables

10 years ago
If I need to extend or elaborate on that, let me know.

Variables

10 years ago

And I ditched the cliche zombie story for something more interesting.  Thought you might want to know.