Increments to SDFs
Author | Topic: Increments to SDFs |
---|---|
Agent
Member # 4506
|
written Thursday, June 9 2005 21:53
Profile
Homepage
IS there a way to increment an SDF higher (or lower). I want to simulate "Reputation" like there was in the Avernum series for my scenario, but I don't know how... :( :( :( - Archmagi Micael -------------------- "You dare Trifle with Avernum?" ~ Erika the Archmage -------------------- My Scenarios: Undead Valley : A small Undead problem, what could possibly go wrong? -------------------- Richard Black - PROOF of his existance (the Infernal one's website). -------------------- MY FORUM! Randomosity at it's highest! :) Posts: 1370 | Registered: Thursday, June 10 2004 07:00 |
...b10010b...
Member # 869
|
written Thursday, June 9 2005 22:18
Profile
Homepage
Caution: depending on what you want to do with this, you may also need to add checks to make sure the variable's value is within the legal range for an SDF after you increment it. [ Thursday, June 09, 2005 22:29: Message edited by: Thuryl ] -------------------- The Empire Always Loses: This Time For Sure! Posts: 9973 | Registered: Saturday, March 30 2002 08:00 |
? Man, ? Amazing
Member # 5755
|
written Thursday, June 9 2005 22:27
Profile
Ephesos used the following in Druids of Krell in order to gather the approval rating for Oakleaf. inc_flag (x,y,inc_value); so inc_flag(2,15,2); would increment flag 2,15 by 2 points. I assume you could use negative values as well. Edit - This works perfectly. This code... Produced this text "Start 0 then 15 then 5" Nice... [ Thursday, June 09, 2005 22:44: Message edited by: Smoked Salmon ] -------------------- WWtNSD? Posts: 4114 | Registered: Monday, April 25 2005 07:00 |
...b10010b...
Member # 869
|
written Thursday, June 9 2005 22:30
Profile
Homepage
There's an inc_flag call? Whoops. I guess that'd make things easier. -------------------- The Empire Always Loses: This Time For Sure! Posts: 9973 | Registered: Saturday, March 30 2002 08:00 |
? Man, ? Amazing
Member # 5755
|
written Thursday, June 9 2005 22:47
Profile
Further testing shows that it will Not exceed the sdf ranges. No way to exceed 255 or go negative. :) Edit - Explanation inc_flag (x,y,355) produces a SDF value of 255 inc_flag (x,y,-355) produces a SDF value of 0 [ Thursday, June 09, 2005 22:50: Message edited by: Smoked Salmon ] -------------------- WWtNSD? Posts: 4114 | Registered: Monday, April 25 2005 07:00 |
Agent
Member # 4506
|
written Friday, June 10 2005 03:17
Profile
Homepage
Can you use this call to lower the SDF as well? I need the "Reputation" to be able to be lowered as well, so they can either be famous, or infamous. - Archmagi Micael -------------------- "You dare Trifle with Avernum?" ~ Erika the Archmage -------------------- My Scenarios: Undead Valley : A small Undead problem, what could possibly go wrong? -------------------- Richard Black - PROOF of his existance (the Infernal one's website). -------------------- MY FORUM! Randomosity at it's highest! :) Posts: 1370 | Registered: Thursday, June 10 2004 07:00 |
Post Navel Trauma ^_^
Member # 67
|
written Friday, June 10 2005 06:10
Profile
Homepage
Yes. -------------------- Barcoorah: I even did it to a big dorset ram. New Mac BoE Posts: 1798 | Registered: Thursday, October 4 2001 07:00 |