Page 1 of 1

[Fixed for V0.39] Can't gain experience via damage actions

Posted: Tue May 16, 2006 4:00 pm
by KlausM
Hi George,

You wrote here that its possible to use negative strength in actions.
(especially for experience awards)

but RTC bumps out an critical error , like this :

Code: Select all

.
.
.

*** CRITICAL ERROR (line 355, item reference ref000403-1 - WALLITEM_ACTION): String "-50" not supported. Expecting an integer with a value 0 or greater.
.
.
.
**** RTC FILE HAS NOT BEEN CREATED ****
The line in the dungeon text file is this (for only the action)

Code: Select all

ref000403-1	WALLITEM_ACTION			4	3	0	CENTRE	ACTION=(ACTION_DAMAGE_BYMONSTER_EXPERIENCE_FIGHTER,NULL,NULL)	STRENGTH=(-50)

Posted: Tue May 16, 2006 4:35 pm
by George Gilbert
Hmm - I think that might be a bug with my post rather than RTC :oops:

Negative strengths are generally speaking a bad thing and all sorts of things could go wrong with them (which is why the compiler is correctly complaining).

This is probably best turned into a request for a set of GAIN_EXPERIENCE actions to allow you to do what you want, however I'll have to have a bit more of a think about the best thing to do here!

Posted: Wed May 17, 2006 12:11 pm
by George Gilbert
Fixed for V0.39 (by adding new actions to directly alter the experience values)