Not logged inOpenClonk Forum
Up Topic New Physical Implementation

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to MrBeast
Then the problem is that effects can only be added to objects but not to values ;)

But yeah, that could work.

func Fx*ValModifierStart([...], string property)
{
  EffectVar(0, [...]) = property;
}

func Fx*ValModifierIsForProperty([...], string property)
{
  return EffectVar(0, [...]) == property;
}

func Fx*ValModifierCalculate([...], value)
{
  return value; // +25 or something, dependant what kind of modifier
}


+ Some code to handle those effects.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill